Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo", uses=false) Using package Buildings with version 11.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck,fileNamePrefix="Buildings_latest_Buildings_Fluid_BaseClasses_FlowModels_Validation_BasicFlowFunction_m_flow_DerivativeCheck",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck,fileNamePrefix="Buildings_latest_Buildings_Fluid_BaseClasses_FlowModels_Validation_BasicFlowFunction_m_flow_DerivativeCheck",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001161/0.001161, allocations: 108 kB / 15.61 MB, free: 152 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001266/0.001266, allocations: 195.2 kB / 16.53 MB, free: 6.664 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.522/1.522, allocations: 222.9 MB / 240.2 MB, free: 4.422 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.795/2.795, allocations: 469.4 MB / 0.742 GB, free: 7.738 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001528/0.001529, allocations: 62.2 kB / 0.9083 GB, free: 34.51 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2752/0.2768, allocations: 159.1 MB / 1.064 GB, free: 14.53 MB / 0.8262 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck): time 0.002482/0.2793, allocations: 1.286 MB / 1.065 GB, free: 13.22 MB / 0.8262 GB Notification: Performance of NFInst.instExpressions: time 0.001017/0.2803, allocations: 0.6088 MB / 1.066 GB, free: 12.61 MB / 0.8262 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.757e-05/0.2804, allocations: 0 / 1.066 GB, free: 12.61 MB / 0.8262 GB Notification: Performance of NFTyping.typeComponents: time 1.689e-05/0.2804, allocations: 3.938 kB / 1.066 GB, free: 12.61 MB / 0.8262 GB Notification: Performance of NFTyping.typeBindings: time 3.824e-05/0.2805, allocations: 3.984 kB / 1.066 GB, free: 12.61 MB / 0.8262 GB Notification: Performance of NFTyping.typeClassSections: time 0.0006056/0.2811, allocations: 146.1 kB / 1.066 GB, free: 12.46 MB / 0.8262 GB Notification: Performance of NFFlatten.flatten: time 6.435e-05/0.2812, allocations: 27.86 kB / 1.066 GB, free: 12.44 MB / 0.8262 GB Notification: Performance of NFFlatten.resolveConnections: time 4.475e-05/0.2812, allocations: 11.92 kB / 1.066 GB, free: 12.43 MB / 0.8262 GB Notification: Performance of NFEvalConstants.evaluate: time 3.612e-05/0.2812, allocations: 8 kB / 1.066 GB, free: 12.42 MB / 0.8262 GB Notification: Performance of NFSimplifyModel.simplify: time 4.485e-05/0.2813, allocations: 7.938 kB / 1.066 GB, free: 12.41 MB / 0.8262 GB Notification: Performance of NFPackage.collectConstants: time 1.208e-05/0.2813, allocations: 0 / 1.066 GB, free: 12.41 MB / 0.8262 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0004821/0.2818, allocations: 347.3 kB / 1.066 GB, free: 12.07 MB / 0.8262 GB Notification: Performance of NFScalarize.scalarize: time 1.405e-05/0.2818, allocations: 3.984 kB / 1.066 GB, free: 12.07 MB / 0.8262 GB Notification: Performance of NFVerifyModel.verify: time 2.626e-05/0.2819, allocations: 15.94 kB / 1.066 GB, free: 12.05 MB / 0.8262 GB Notification: Performance of NFConvertDAE.convert: time 0.0002513/0.2821, allocations: 144 kB / 1.066 GB, free: 11.91 MB / 0.8262 GB Notification: Performance of FrontEnd - DAE generated: time 7.464e-06/0.2821, allocations: 0 / 1.066 GB, free: 11.91 MB / 0.8262 GB Notification: Performance of FrontEnd: time 1.152e-06/0.2821, allocations: 3.938 kB / 1.066 GB, free: 11.91 MB / 0.8262 GB Notification: Performance of Transformations before backend: time 6.443e-06/0.2821, allocations: 0 / 1.066 GB, free: 11.91 MB / 0.8262 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 4 * Number of variables: 4 Notification: Performance of Generate backend data structure: time 0.0003934/0.2825, allocations: 365.4 kB / 1.067 GB, free: 11.5 MB / 0.8262 GB Notification: Performance of prepare preOptimizeDAE: time 3.762e-05/0.2826, allocations: 8.031 kB / 1.067 GB, free: 11.49 MB / 0.8262 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.018e-05/0.2826, allocations: 30.75 kB / 1.067 GB, free: 11.45 MB / 0.8262 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.978e-05/0.2827, allocations: 16.78 kB / 1.067 GB, free: 11.44 MB / 0.8262 GB Notification: Performance of preOpt evaluateParameters (simulation): time 9.505e-05/0.2828, allocations: 160.4 kB / 1.067 GB, free: 11.24 MB / 0.8262 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.112e-05/0.2828, allocations: 8.375 kB / 1.067 GB, free: 11.23 MB / 0.8262 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.057e-05/0.2828, allocations: 4.375 kB / 1.067 GB, free: 11.23 MB / 0.8262 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001013/0.2829, allocations: 38.25 kB / 1.067 GB, free: 11.19 MB / 0.8262 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.716e-06/0.2829, allocations: 7.938 kB / 1.067 GB, free: 11.18 MB / 0.8262 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.528e-06/0.2829, allocations: 0 / 1.067 GB, free: 11.18 MB / 0.8262 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.322e-06/0.283, allocations: 0 / 1.067 GB, free: 11.18 MB / 0.8262 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.885e-05/0.283, allocations: 11.92 kB / 1.067 GB, free: 11.17 MB / 0.8262 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001504/0.2832, allocations: 161.7 kB / 1.067 GB, free: 10.96 MB / 0.8262 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001768/0.2833, allocations: 42.61 kB / 1.067 GB, free: 10.91 MB / 0.8262 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.247e-05/0.2834, allocations: 16.86 kB / 1.067 GB, free: 10.89 MB / 0.8262 GB Notification: Performance of preOpt evalFunc (simulation): time 1.842e-05/0.2834, allocations: 0 / 1.067 GB, free: 10.89 MB / 0.8262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.246e-05/0.2834, allocations: 34.64 kB / 1.067 GB, free: 10.85 MB / 0.8262 GB Notification: Performance of pre-optimization done (n=4): time 9.01e-07/0.2834, allocations: 0 / 1.067 GB, free: 10.85 MB / 0.8262 GB Notification: Performance of matching and sorting (n=6): time 0.0006077/0.2841, allocations: 318.4 kB / 1.067 GB, free: 10.48 MB / 0.8262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.289e-05/0.2841, allocations: 55.41 kB / 1.067 GB, free: 10.42 MB / 0.8262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.739e-05/0.2842, allocations: 97.84 kB / 1.068 GB, free: 10.31 MB / 0.8262 GB Notification: Performance of collectPreVariables (initialization): time 1.27e-05/0.2842, allocations: 29.7 kB / 1.068 GB, free: 10.28 MB / 0.8262 GB Notification: Performance of collectInitialEqns (initialization): time 2.863e-05/0.2842, allocations: 80.14 kB / 1.068 GB, free: 10.2 MB / 0.8262 GB Notification: Performance of collectInitialBindings (initialization): time 3.179e-05/0.2842, allocations: 19.72 kB / 1.068 GB, free: 10.18 MB / 0.8262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.258e-05/0.2843, allocations: 17.72 kB / 1.068 GB, free: 10.15 MB / 0.8262 GB Notification: Performance of setup shared object (initialization): time 8.992e-05/0.2844, allocations: 314.8 kB / 1.068 GB, free: 9.836 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 2.546e-05/0.2844, allocations: 16 kB / 1.068 GB, free: 9.82 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 2.47e-05/0.2844, allocations: 19.97 kB / 1.068 GB, free: 9.801 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization): time 5.936e-05/0.2845, allocations: 28.86 kB / 1.068 GB, free: 9.77 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.365e-06/0.2845, allocations: 0 / 1.068 GB, free: 9.77 MB / 0.8262 GB Notification: Performance of matching and sorting (n=7) (initialization): time 0.000101/0.2846, allocations: 81.55 kB / 1.068 GB, free: 9.684 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 1.425e-05/0.2846, allocations: 8 kB / 1.068 GB, free: 9.676 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.01e-06/0.2847, allocations: 0 / 1.068 GB, free: 9.676 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.249e-05/0.2847, allocations: 0 / 1.068 GB, free: 9.676 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.337e-05/0.2847, allocations: 8 kB / 1.068 GB, free: 9.668 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.45e-06/0.2847, allocations: 0 / 1.068 GB, free: 9.668 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.029e-05/0.2848, allocations: 8 kB / 1.068 GB, free: 9.66 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.441e-06/0.2848, allocations: 0 / 1.068 GB, free: 9.66 MB / 0.8262 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (7): * Single equations (assignments): 7 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 6.828e-05/0.2849, allocations: 117.8 kB / 1.068 GB, free: 9.535 MB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.569e-05/0.2849, allocations: 3.938 kB / 1.068 GB, free: 9.531 MB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000138/0.285, allocations: 73.53 kB / 1.068 GB, free: 9.453 MB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.747e-06/0.285, allocations: 4 kB / 1.068 GB, free: 9.449 MB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.238e-06/0.285, allocations: 0 / 1.068 GB, free: 9.449 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.506e-06/0.285, allocations: 0 / 1.068 GB, free: 9.449 MB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003101/0.2854, allocations: 323.5 kB / 1.069 GB, free: 9.074 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.144e-06/0.2854, allocations: 0 / 1.069 GB, free: 9.074 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.825e-05/0.2854, allocations: 12 kB / 1.069 GB, free: 9.062 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.445e-06/0.2855, allocations: 0 / 1.069 GB, free: 9.062 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.183e-06/0.2855, allocations: 0 / 1.069 GB, free: 9.062 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.703e-06/0.2855, allocations: 0 / 1.069 GB, free: 9.062 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.615e-06/0.2855, allocations: 4 kB / 1.069 GB, free: 9.059 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001843/0.2857, allocations: 184.3 kB / 1.069 GB, free: 8.859 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 4.235e-05/0.2857, allocations: 85.05 kB / 1.069 GB, free: 8.758 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.408e-05/0.2857, allocations: 8.016 kB / 1.069 GB, free: 8.75 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.995e-05/0.2858, allocations: 0 / 1.069 GB, free: 8.75 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.582e-05/0.2858, allocations: 4 kB / 1.069 GB, free: 8.746 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.1e-06/0.2858, allocations: 0 / 1.069 GB, free: 8.746 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 3.287e-05/0.2859, allocations: 83.28 kB / 1.069 GB, free: 8.664 MB / 0.8262 GB Notification: Performance of sort global known variables: time 1.1e-07/0.2859, allocations: 0 / 1.069 GB, free: 8.664 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.0002481/0.2861, allocations: 27.92 kB / 1.069 GB, free: 8.637 MB / 0.8262 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 1 (dp_comp) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (6): * Single equations (assignments): 6 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0004666/0.2866, allocations: 0.7334 MB / 1.07 GB, free: 7.875 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 9.534e-05/0.2867, allocations: 35.98 kB / 1.07 GB, free: 7.84 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 2.014e-06/0.2867, allocations: 0 / 1.07 GB, free: 7.84 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 3.182e-05/0.2868, allocations: 20.05 kB / 1.07 GB, free: 7.82 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002171/0.287, allocations: 11.94 kB / 1.07 GB, free: 7.809 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00113/0.2881, allocations: 1.319 MB / 1.071 GB, free: 6.402 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002184/0.2884, allocations: 0.6807 MB / 1.072 GB, free: 5.695 MB / 0.8262 GB Notification: Performance of simCode: alias equations: time 3.075e-05/0.2884, allocations: 7.984 kB / 1.072 GB, free: 5.688 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.215e-05/0.2884, allocations: 15.44 kB / 1.072 GB, free: 5.672 MB / 0.8262 GB Notification: Performance of SimCode: time 3.7e-07/0.2884, allocations: 0 / 1.072 GB, free: 5.672 MB / 0.8262 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01833/0.3068, allocations: 1.609 MB / 1.073 GB, free: 4.223 MB / 0.8262 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.542/7.849, allocations: 14.34 kB / 1.073 GB, free: 4.215 MB / 0.8262 GB (rm -f Buildings_latest_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck.pipe ; mkfifo Buildings_latest_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck.pipe ; head -c 1048576 < Buildings_latest_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck.pipe >> ../files/Buildings_latest_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck.sim & python3 -m fmpy simulate --output-file Buildings_latest_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck_res.csv --start-time -2 --stop-time 2 --timeout 50 --relative-tolerance 1e-08 --interface-type ModelExchange --solver CVode --output-interval 0.0016 Buildings_latest_Buildings_Fluid_BaseClasses_FlowModels_Validation_BasicFlowFunction_m_flow_DerivativeCheck.fmu > Buildings_latest_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck.pipe 2>&1)