Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Modelica_3.2.2_cpp_Modelica.Thermal.FluidHeatFlow.Examples.OneMass.conf.json Using package ModelicaServices with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.2/package.mo) Using package Complex with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.2.mo) Using package Modelica with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/package.mo) Running command: translateModel(Modelica.Thermal.FluidHeatFlow.Examples.OneMass,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="time|heatCapacitor.T|pipe.T",fileNamePrefix="Modelica_3.2.2_cpp_Modelica.Thermal.FluidHeatFlow.Examples.OneMass") Notification: Performance of loadModel(Modelica): time 1.932/1.932, allocations: 194.9 MB / 212.3 MB, free: 3.004 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003535/0.0003536, allocations: 8 kB / 264.5 MB, free: 13.62 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09894/0.09932, allocations: 44.49 MB / 309 MB, free: 1.059 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4061/0.5055, allocations: 76.32 MB / 385.3 MB, free: 14.92 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000281/0.5058, allocations: 77.41 kB / 385.4 MB, free: 14.92 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.03778/0.5436, allocations: 9.533 MB / 394.9 MB, free: 13.87 MB / 314.7 MB Notification: Performance of FrontEnd: time 1.963e-06/0.5437, allocations: 0 / 394.9 MB, free: 13.87 MB / 314.7 MB Notification: Performance of Transformations before backend: time 3.38e-05/0.5437, allocations: 11.34 kB / 394.9 MB, free: 13.87 MB / 314.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 78 * Number of variables: 78 Notification: Performance of Generate backend data structure: time 0.001758/0.5455, allocations: 0.7911 MB / 395.7 MB, free: 13.3 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.99e-05/0.5456, allocations: 11.75 kB / 395.7 MB, free: 13.3 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001555/0.5457, allocations: 61.3 kB / 395.8 MB, free: 13.28 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007282/0.5465, allocations: 397.3 kB / 396.2 MB, free: 13.02 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001197/0.5466, allocations: 56.89 kB / 396.2 MB, free: 12.98 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.438e-05/0.5467, allocations: 33.08 kB / 396.2 MB, free: 12.98 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001192/0.5479, allocations: 496.3 kB / 396.7 MB, free: 12.8 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.084e-05/0.548, allocations: 0 / 396.7 MB, free: 12.8 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.85e-05/0.548, allocations: 14.81 kB / 396.7 MB, free: 12.8 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.069e-05/0.548, allocations: 7.719 kB / 396.7 MB, free: 12.8 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001323/0.5494, allocations: 372.1 kB / 397.1 MB, free: 12.79 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002914/0.5523, allocations: 1.261 MB / 398.4 MB, free: 12.31 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001202/0.5535, allocations: 444.9 kB / 398.8 MB, free: 12.18 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.114e-05/0.5536, allocations: 11.39 kB / 398.8 MB, free: 12.18 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.795e-05/0.5537, allocations: 50.12 kB / 398.9 MB, free: 12.14 MB / 314.7 MB Notification: Performance of pre-optimization done (n=36): time 2.976e-06/0.5537, allocations: 0 / 398.9 MB, free: 12.14 MB / 314.7 MB Notification: Performance of matching and sorting (n=36): time 0.002498/0.5562, allocations: 0.7684 MB / 399.6 MB, free: 11.86 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001085/0.5563, allocations: 444.6 kB / 400.1 MB, free: 11.33 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006567/0.557, allocations: 436.1 kB / 400.5 MB, free: 11.21 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 7.789e-05/0.5571, allocations: 40.39 kB / 400.5 MB, free: 11.18 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001481/0.5572, allocations: 266.7 kB / 400.8 MB, free: 11 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001172/0.5574, allocations: 126.4 kB / 400.9 MB, free: 10.92 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.159e-05/0.5574, allocations: 10.88 kB / 400.9 MB, free: 10.92 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 6.317e-05/0.5575, allocations: 325.5 kB / 401.2 MB, free: 10.6 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006106/0.5581, allocations: 155.7 kB / 401.4 MB, free: 10.6 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000733/0.5589, allocations: 300.1 kB / 401.7 MB, free: 10.45 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006573/0.5595, allocations: 206.6 kB / 401.9 MB, free: 10.41 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.508e-06/0.5596, allocations: 0 / 401.9 MB, free: 10.41 MB / 314.7 MB Notification: Performance of matching and sorting (n=42) (initialization): time 0.001527/0.5611, allocations: 488.2 kB / 402.4 MB, free: 10.3 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.59e-05/0.5611, allocations: 35.08 kB / 402.4 MB, free: 10.27 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.725e-06/0.5612, allocations: 0 / 402.4 MB, free: 10.27 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002127/0.5614, allocations: 50.2 kB / 402.5 MB, free: 10.26 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007591/0.5622, allocations: 93.17 kB / 402.5 MB, free: 10.25 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002651/0.5648, allocations: 2.769 MB / 405.3 MB, free: 7.703 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007467/0.5656, allocations: 61.8 kB / 405.4 MB, free: 7.684 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.291e-05/0.5657, allocations: 15.16 kB / 405.4 MB, free: 7.68 MB / 314.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * 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 (38): * Single equations (assignments): 35 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 2 {3 1,1 1} Notification: Performance of prepare postOptimizeDAE: time 0.000323/0.566, allocations: 168.5 kB / 405.6 MB, free: 7.562 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001173/0.5661, allocations: 54.53 kB / 405.6 MB, free: 7.535 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001227/0.5663, allocations: 54.16 kB / 405.7 MB, free: 7.527 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.59e-06/0.5663, allocations: 3.875 kB / 405.7 MB, free: 7.527 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.39e-06/0.5663, allocations: 0 / 405.7 MB, free: 7.527 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001392/0.5677, allocations: 0.7576 MB / 406.4 MB, free: 6.984 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002483/0.5702, allocations: 1.054 MB / 407.5 MB, free: 6.613 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.889e-06/0.5702, allocations: 0 / 407.5 MB, free: 6.613 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008187/0.5711, allocations: 103.6 kB / 407.6 MB, free: 6.605 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.113e-06/0.5711, allocations: 0 / 407.6 MB, free: 6.605 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.822e-05/0.5711, allocations: 11.53 kB / 407.6 MB, free: 6.602 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.181e-06/0.5712, allocations: 3.953 kB / 407.6 MB, free: 6.598 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.094e-06/0.5712, allocations: 0 / 407.6 MB, free: 6.598 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002113/0.5733, allocations: 0.7089 MB / 408.3 MB, free: 6.418 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002182/0.5735, allocations: 126.2 kB / 408.4 MB, free: 6.297 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001345/0.5737, allocations: 13.22 kB / 408.4 MB, free: 6.297 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005407/0.5742, allocations: 40.59 kB / 408.5 MB, free: 6.293 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.764e-05/0.5744, allocations: 28.73 kB / 408.5 MB, free: 6.289 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.983e-05/0.5744, allocations: 3.875 kB / 408.5 MB, free: 6.289 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.0005238/0.5749, allocations: 311.5 kB / 408.8 MB, free: 6.203 MB / 314.7 MB Notification: Performance of sort global known variables: time 4.71e-07/0.5749, allocations: 0 / 408.8 MB, free: 6.203 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0006509/0.5756, allocations: 149 kB / 409 MB, free: 6.188 MB / 314.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 2 (pipe.T,heatCapacitor.T) * 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 (36): * Single equations (assignments): 36 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001996/0.5758, allocations: 124.6 kB / 409.1 MB, free: 6.094 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.001783/0.5776, allocations: 0.6669 MB / 409.7 MB, free: 5.789 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 4.909e-06/0.5776, allocations: 3.938 kB / 409.7 MB, free: 5.785 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0006675/0.5783, allocations: 193.4 kB / 409.9 MB, free: 5.773 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009931/0.5793, allocations: 135.1 kB / 410.1 MB, free: 5.758 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002534/0.5819, allocations: 1.138 MB / 411.2 MB, free: 5.137 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002821/0.5822, allocations: 0.8342 MB / 412 MB, free: 4.43 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002723/0.5825, allocations: 42.45 kB / 412.1 MB, free: 4.418 MB / 314.7 MB Notification: Performance of SimCode: time 1.212e-06/0.5825, allocations: 0 / 412.1 MB, free: 4.418 MB / 314.7 MB Notification: Performance of Templates: time 0.04351/0.626, allocations: 8.286 MB / 420.4 MB, free: 284 kB / 314.7 MB "Error: Could not read variable ambient1.h in file Modelica_3.2.2_cpp_Modelica.Thermal.FluidHeatFlow.Examples.OneMass_res.mat. Warning: Get data of variable ambient1.h from file Modelica_3.2.2_cpp_Modelica.Thermal.FluidHeatFlow.Examples.OneMass_res.mat failed! Error: Could not read variable ambient2.h in file Modelica_3.2.2_cpp_Modelica.Thermal.FluidHeatFlow.Examples.OneMass_res.mat. Warning: Get data of variable ambient2.h from file Modelica_3.2.2_cpp_Modelica.Thermal.FluidHeatFlow.Examples.OneMass_res.mat failed! Error: Could not read variable pipe.dpNomMin in file Modelica_3.2.2_cpp_Modelica.Thermal.FluidHeatFlow.Examples.OneMass_res.mat. Warning: Get data of variable pipe.dpNomMin from file Modelica_3.2.2_cpp_Modelica.Thermal.FluidHeatFlow.Examples.OneMass_res.mat failed! Error: Could not read variable pipe.h in file Modelica_3.2.2_cpp_Modelica.Thermal.FluidHeatFlow.Examples.OneMass_res.mat. Warning: Get data of variable pipe.h from file Modelica_3.2.2_cpp_Modelica.Thermal.FluidHeatFlow.Examples.OneMass_res.mat failed! Error: Could not read variable pipe.k in file Modelica_3.2.2_cpp_Modelica.Thermal.FluidHeatFlow.Examples.OneMass_res.mat. Warning: Get data of variable pipe.k from file Modelica_3.2.2_cpp_Modelica.Thermal.FluidHeatFlow.Examples.OneMass_res.mat failed! Error: Could not read variable pump.T_q in file Modelica_3.2.2_cpp_Modelica.Thermal.FluidHeatFlow.Examples.OneMass_res.mat. Warning: Get data of variable pump.T_q from file Modelica_3.2.2_cpp_Modelica.Thermal.FluidHeatFlow.Examples.OneMass_res.mat failed! Error: Could not read variable pump.h in file Modelica_3.2.2_cpp_Modelica.Thermal.FluidHeatFlow.Examples.OneMass_res.mat. Warning: Get data of variable pump.h from file Modelica_3.2.2_cpp_Modelica.Thermal.FluidHeatFlow.Examples.OneMass_res.mat failed! " Variables in the reference:time,heatCapacitor.T,pipe.T Variables in the result:TAmb,TMass,ambient1.T,ambient1.T_port,ambient1.constantAmbientPressure,ambient1.constantAmbientTemperature,ambient1.flowPort.H_flow,ambient1.flowPort.h,ambient1.flowPort.m_flow,ambient1.flowPort.medium.cp,ambient1.flowPort.medium.cv,ambient1.flowPort.medium.lamda,ambient1.flowPort.medium.nue,ambient1.flowPort.medium.rho,ambient1.flowPort.p,ambient1.medium.cp,ambient1.medium.cv,ambient1.medium.lamda,ambient1.medium.nue,ambient1.medium.rho,ambient1.usePressureInput,ambient1.useTemperatureInput,ambient2.T,ambient2.T_port,ambient2.constantAmbientPressure,ambient2.constantAmbientTemperature,ambient2.flowPort.H_flow,ambient2.flowPort.h,ambient2.flowPort.m_flow,ambient2.flowPort.medium.cp,ambient2.flowPort.medium.cv,ambient2.flowPort.medium.lamda,ambient2.flowPort.medium.nue,ambient2.flowPort.medium.rho,ambient2.flowPort.p,ambient2.medium.cp,ambient2.medium.cv,ambient2.medium.lamda,ambient2.medium.nue,ambient2.medium.rho,ambient2.usePressureInput,ambient2.useTemperatureInput,dTCoolant,dTMass,dTtoPipe,heatCapacitor.C,heatCapacitor.T,der(heatCapacitor.T),heatCapacitor.der_T,heatCapacitor.port.Q_flow,heatCapacitor.port.T,medium.cp,medium.cv,medium.lamda,medium.nue,medium.rho,pipe.Q_flow,pipe.Q_friction,pipe.T,pipe.T0,pipe.T0fixed,pipe.T_a,pipe.T_b,pipe.V_flow,pipe.V_flowLaminar,pipe.V_flowNominal,pipe.dT,der(pipe.T),pipe.dp,pipe.dpLaminar,pipe.dpNominal,pipe.flowPort_a.H_flow,pipe.flowPort_a.h,pipe.flowPort_a.m_flow,pipe.flowPort_a.medium.cp,pipe.flowPort_a.medium.cv,pipe.flowPort_a.medium.lamda,pipe.flowPort_a.medium.nue,pipe.flowPort_a.medium.rho,pipe.flowPort_a.p,pipe.flowPort_b.H_flow,pipe.flowPort_b.h,pipe.flowPort_b.m_flow,pipe.flowPort_b.medium.cp,pipe.flowPort_b.medium.cv,pipe.flowPort_b.medium.lamda,pipe.flowPort_b.medium.nue,pipe.flowPort_b.medium.rho,pipe.flowPort_b.p,pipe.frictionLoss,pipe.h_g,pipe.heatPort.Q_flow,pipe.heatPort.T,pipe.m,pipe.medium.cp,pipe.medium.cv,pipe.medium.lamda,pipe.medium.nue,pipe.medium.rho,pipe.pressureDrop,pipe.tapT,pipe.volumeFlow,pump.Q_flow,pump.T,pump.T0,pump.T0fixed,pump.T_a,pump.T_b,pump.V_flow,pump.constantVolumeFlow,pump.dT,pump.dp,pump.flowPort_a.H_flow,pump.flowPort_a.h,pump.flowPort_a.m_flow,pump.flowPort_a.medium.cp,pump.flowPort_a.medium.cv,pump.flowPort_a.medium.lamda,pump.flowPort_a.medium.nue,pump.flowPort_a.medium.rho,pump.flowPort_a.p,pump.flowPort_b.H_flow,pump.flowPort_b.h,pump.flowPort_b.m_flow,pump.flowPort_b.medium.cp,pump.flowPort_b.medium.cv,pump.flowPort_b.medium.lamda,pump.flowPort_b.medium.nue,pump.flowPort_b.medium.rho,pump.flowPort_b.p,pump.m,pump.medium.cp,pump.medium.cv,pump.medium.lamda,pump.medium.nue,pump.medium.rho,pump.tapT,pump.useVolumeFlowInput,pump.volumeFlow,thermalConductor.G,thermalConductor.Q_flow,thermalConductor.dT,thermalConductor.port_a.Q_flow,thermalConductor.port_a.T,thermalConductor.port_b.Q_flow,thermalConductor.port_b.T,time,volumeFlow.add.k1,volumeFlow.add.k2,volumeFlow.add.u1,volumeFlow.add.u2,volumeFlow.add.y,volumeFlow.duration_1,volumeFlow.duration_2,volumeFlow.height_1,volumeFlow.height_2,volumeFlow.interval,volumeFlow.offset,volumeFlow.ramp1.duration,volumeFlow.ramp1.height,volumeFlow.ramp1.offset,volumeFlow.ramp1.startTime,volumeFlow.ramp1.y,volumeFlow.ramp2.duration,volumeFlow.ramp2.height,volumeFlow.ramp2.offset,volumeFlow.ramp2.startTime,volumeFlow.ramp2.y,volumeFlow.startTime,volumeFlow.y