Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/../OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Modelica_3.2.1_cpp_Modelica.Thermal.FluidHeatFlow.Examples.OneMass.conf.json Using package ModelicaServices with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.1/package.mo) Using package Complex with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OMCompiler/build/lib/omlibrary/Complex 3.2.1.mo) Using package Modelica with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OMCompiler/build/lib/omlibrary/Modelica 3.2.1/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.1_cpp_Modelica.Thermal.FluidHeatFlow.Examples.OneMass") Notification: Performance of loadModel(Modelica): time 1.547/1.547, allocations: 171.3 MB / 179.2 MB, free: 7.504 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 1.528e-05/1.547e-05, allocations: 4 kB / 222.5 MB, free: 8.688 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.06762/0.06765, allocations: 38.76 MB / 261.3 MB, free: 1.84 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2723/0.34, allocations: 70.25 MB / 331.5 MB, free: 2.031 MB / 266.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000216/0.3402, allocations: 70.97 kB / 331.6 MB, free: 1.996 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.03559/0.3758, allocations: 9.38 MB / 341 MB, free: 10.31 MB / 282.7 MB Notification: Performance of FrontEnd: time 2.4e-06/0.3759, allocations: 0 / 341 MB, free: 10.31 MB / 282.7 MB Notification: Performance of Transformations before backend: time 3.557e-05/0.3759, allocations: 11.98 kB / 341 MB, free: 10.3 MB / 282.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.001358/0.3773, allocations: 0.7224 MB / 341.7 MB, free: 9.555 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.271e-05/0.3774, allocations: 8.031 kB / 341.7 MB, free: 9.547 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001457/0.3775, allocations: 61.97 kB / 341.8 MB, free: 9.488 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007104/0.3782, allocations: 383 kB / 342.1 MB, free: 9.117 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001224/0.3784, allocations: 46.47 kB / 342.2 MB, free: 9.066 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.952e-05/0.3785, allocations: 20.34 kB / 342.2 MB, free: 9.047 MB / 282.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0006371/0.3791, allocations: 263 kB / 342.5 MB, free: 8.887 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007659/0.3799, allocations: 391.7 kB / 342.9 MB, free: 8.535 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.852e-05/0.3799, allocations: 0 / 342.9 MB, free: 8.535 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.751e-05/0.38, allocations: 4 kB / 342.9 MB, free: 8.531 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.421e-05/0.38, allocations: 8 kB / 342.9 MB, free: 8.523 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002543/0.3826, allocations: 1.181 MB / 344 MB, free: 7.551 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000654/0.3833, allocations: 357.1 kB / 344.4 MB, free: 7.273 MB / 282.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002889/0.3836, allocations: 132.7 kB / 344.5 MB, free: 7.195 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.223e-05/0.3836, allocations: 6.625 kB / 344.5 MB, free: 7.191 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.214e-05/0.3837, allocations: 46.17 kB / 344.6 MB, free: 7.141 MB / 282.7 MB Notification: Performance of pre-optimization done (n=36): time 5.122e-06/0.3837, allocations: 3.984 kB / 344.6 MB, free: 7.137 MB / 282.7 MB Notification: Performance of matching and sorting (n=36): time 0.0009738/0.3847, allocations: 350.1 kB / 344.9 MB, free: 6.867 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002536/0.3849, allocations: 448 kB / 345.4 MB, free: 6.328 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005295/0.3855, allocations: 346.8 kB / 345.7 MB, free: 6.055 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 5.028e-05/0.3856, allocations: 25.7 kB / 345.7 MB, free: 6.023 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001959/0.3858, allocations: 275.4 kB / 346 MB, free: 5.812 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001332/0.3859, allocations: 120.6 kB / 346.1 MB, free: 5.707 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.409e-05/0.386, allocations: 0 / 346.1 MB, free: 5.707 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 0.0001669/0.3861, allocations: 335.5 kB / 346.4 MB, free: 5.379 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002448/0.3864, allocations: 94.88 kB / 346.5 MB, free: 5.328 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000391/0.3868, allocations: 235.8 kB / 346.8 MB, free: 5.105 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002913/0.3871, allocations: 123.1 kB / 346.9 MB, free: 5.031 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.754e-06/0.3871, allocations: 4 kB / 346.9 MB, free: 5.027 MB / 282.7 MB Notification: Performance of matching and sorting (n=42) (initialization): time 0.0009366/0.3881, allocations: 346 kB / 347.2 MB, free: 4.77 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.811e-05/0.3881, allocations: 37.66 kB / 347.3 MB, free: 4.727 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.094e-06/0.3881, allocations: 0 / 347.3 MB, free: 4.727 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000306/0.3885, allocations: 56.31 kB / 347.3 MB, free: 4.68 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005422/0.389, allocations: 91.91 kB / 347.4 MB, free: 4.59 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002882/0.3919, allocations: 2.626 MB / 350 MB, free: 1.891 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005382/0.3925, allocations: 51.8 kB / 350.1 MB, free: 1.84 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.355e-05/0.3926, allocations: 15.23 kB / 350.1 MB, free: 1.828 MB / 282.7 MB Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: ambient2.flowPort.h:VARIABLE(flow=false unit = "J/kg" ) type: Real Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: pipe.flowPort_a.h:VARIABLE(flow=false unit = "J/kg" ) type: Real ambient1.flowPort.h:VARIABLE(flow=false unit = "J/kg" ) type: Real pump.h:VARIABLE(unit = "J/kg" protected = true ) "Medium's specific enthalpy" type: Real 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 () * 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.0002422/0.3928, allocations: 125.1 kB / 350.2 MB, free: 1.699 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000125/0.393, allocations: 43.53 kB / 350.3 MB, free: 1.656 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001289/0.3931, allocations: 53.67 kB / 350.3 MB, free: 1.625 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.653e-06/0.3931, allocations: 4 kB / 350.3 MB, free: 1.621 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.026e-06/0.3931, allocations: 0 / 350.3 MB, free: 1.621 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0008257/0.394, allocations: 0.6459 MB / 351 MB, free: 0.9375 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00168/0.3957, allocations: 0.8826 MB / 351.8 MB, free: 216 kB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.733e-06/0.3957, allocations: 7.953 kB / 351.9 MB, free: 208 kB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006002/0.3963, allocations: 94.81 kB / 351.9 MB, free: 116 kB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.93e-06/0.3963, allocations: 0 / 351.9 MB, free: 116 kB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.012e-05/0.3964, allocations: 0 / 351.9 MB, free: 116 kB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.01e-06/0.3964, allocations: 4 kB / 351.9 MB, free: 112 kB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.031e-06/0.3964, allocations: 0 / 351.9 MB, free: 112 kB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001041/0.3975, allocations: 0.5337 MB / 352.5 MB, free: 15.7 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001713/0.3976, allocations: 128.5 kB / 352.6 MB, free: 15.55 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.504e-05/0.3977, allocations: 3.984 kB / 352.6 MB, free: 15.55 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004149/0.3982, allocations: 27.92 kB / 352.6 MB, free: 15.52 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.501e-05/0.3983, allocations: 27.95 kB / 352.7 MB, free: 15.49 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.882e-05/0.3983, allocations: 12.06 kB / 352.7 MB, free: 15.48 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0004306/0.3988, allocations: 275 kB / 352.9 MB, free: 15.21 MB / 298.7 MB Notification: Performance of sort global known variables: time 8.74e-07/0.3988, allocations: 0 / 352.9 MB, free: 15.21 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0006265/0.3994, allocations: 127.8 kB / 353.1 MB, free: 15.09 MB / 298.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 () * 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.0002094/0.3997, allocations: 107.2 kB / 353.2 MB, free: 14.98 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0011/0.4008, allocations: 0.5495 MB / 353.7 MB, free: 14.39 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 4.492e-06/0.4008, allocations: 0 / 353.7 MB, free: 14.39 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003207/0.4011, allocations: 140.5 kB / 353.9 MB, free: 14.26 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007008/0.4018, allocations: 101.9 kB / 354 MB, free: 14.16 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001674/0.4035, allocations: 0.6687 MB / 354.6 MB, free: 13.46 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005639/0.4041, allocations: 0.8313 MB / 355.5 MB, free: 12.59 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00019/0.4043, allocations: 43.42 kB / 355.5 MB, free: 12.55 MB / 298.7 MB Notification: Performance of SimCode: time 1.829e-06/0.4043, allocations: 0 / 355.5 MB, free: 12.55 MB / 298.7 MB Notification: Performance of Templates: time 0.01446/0.4188, allocations: 8.03 MB / 363.5 MB, free: 4.531 MB / 298.7 MB "" Variables in the reference:time,heatCapacitor.T,pipe.T Variables in the result:TAmb,TMass,ambient1.T,ambient1.TAmbient,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.h,ambient1.medium.cp,ambient1.medium.cv,ambient1.medium.lamda,ambient1.medium.nue,ambient1.medium.rho,ambient1.pAmbient,ambient1.usePressureInput,ambient1.useTemperatureInput,ambient2.T,ambient2.TAmbient,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.h,ambient2.medium.cp,ambient2.medium.cv,ambient2.medium.lamda,ambient2.medium.nue,ambient2.medium.rho,ambient2.pAmbient,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.T_q,pipe.V_flow,pipe.V_flowLaminar,pipe.V_flowNominal,pipe.dT,der(pipe.T),pipe.dp,pipe.dpLaminar,pipe.dpNomMin,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,pipe.h_g,pipe.heatPort.Q_flow,pipe.heatPort.T,pipe.k,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.T_q,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.h,pump.internalVolumeFlow,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