Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Media.TestsWithFluid.MediaTestModels.Air.MoistAir.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) Using package ModelicaTest with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Running command: translateModel(ModelicaTest.Media.TestsWithFluid.MediaTestModels.Air.MoistAir,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|volume.medium.T|volume.medium.Xi.1.|volume.medium.p",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.Media.TestsWithFluid.MediaTestModels.Air.MoistAir") translateModel(ModelicaTest.Media.TestsWithFluid.MediaTestModels.Air.MoistAir,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|volume.medium.T|volume.medium.Xi.1.|volume.medium.p",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.Media.TestsWithFluid.MediaTestModels.Air.MoistAir") [:1:1-1:32:writable] Error: Class GC_set_max_heap_size not found in scope (looking for a function or record). Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001145/0.001145, allocations: 199.9 kB / 8.536 MB, free: 1.773 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.341/1.341, allocations: 225.5 MB / 234.4 MB, free: 3.359 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001017/0.001017, allocations: 94.61 kB / 286.3 MB, free: 5.27 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2479/0.2479, allocations: 45.13 MB / 383.3 MB, free: 0.5781 MB / 314.7 MB Notification: Performance of FrontEnd - loaded program: time 8.757e-06/8.887e-06, allocations: 0 / 452.6 MB, free: 76.19 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1419/0.1419, allocations: 63.24 MB / 0.5038 GB, free: 13.02 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 8.055/8.197, allocations: 3.548 GB / 4.051 GB, free: 187.1 MB / 0.5261 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002716/8.198, allocations: 95.3 kB / 4.052 GB, free: 187.1 MB / 0.5261 GB Notification: Performance of FrontEnd: time 1.312/9.51, allocations: 408.5 MB / 4.451 GB, free: 5.289 MB / 0.5261 GB Notification: Performance of Transformations before backend: time 9.616e-05/9.51, allocations: 27.88 kB / 4.451 GB, free: 5.262 MB / 0.5261 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 186 * Number of variables: 186 Notification: Performance of Generate backend data structure: time 0.00986/9.52, allocations: 2.25 MB / 4.453 GB, free: 2.961 MB / 0.5261 GB Notification: Performance of prepare preOptimizeDAE: time 4.787e-05/9.52, allocations: 8.031 kB / 4.453 GB, free: 2.953 MB / 0.5261 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009451/9.521, allocations: 114.9 kB / 4.453 GB, free: 2.84 MB / 0.5261 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001939/9.523, allocations: 0.627 MB / 4.453 GB, free: 2.172 MB / 0.5261 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001405/9.523, allocations: 101.3 kB / 4.454 GB, free: 2.059 MB / 0.5261 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003251/9.523, allocations: 40 kB / 4.454 GB, free: 2.02 MB / 0.5261 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.002157/9.525, allocations: 1.046 MB / 4.455 GB, free: 0.9727 MB / 0.5261 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.3125/9.838, allocations: 1.042 MB / 4.456 GB, free: 109 MB / 0.5261 GB Notification: Performance of preOpt findStateOrder (simulation): time 5.146e-05/9.838, allocations: 6.406 kB / 4.456 GB, free: 109 MB / 0.5261 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001739/9.838, allocations: 3.75 kB / 4.456 GB, free: 109 MB / 0.5261 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.342e-05/9.838, allocations: 58.75 kB / 4.456 GB, free: 109 MB / 0.5261 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007218/9.845, allocations: 5.044 MB / 4.461 GB, free: 106.3 MB / 0.5261 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0009359/9.846, allocations: 0.5128 MB / 4.461 GB, free: 106.3 MB / 0.5261 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000475/9.847, allocations: 370.2 kB / 4.462 GB, free: 106.2 MB / 0.5261 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0008628/9.848, allocations: 1.132 MB / 4.463 GB, free: 105 MB / 0.5261 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.385e-05/9.848, allocations: 38.53 kB / 4.463 GB, free: 105 MB / 0.5261 GB Notification: Performance of pre-optimization done (n=64): time 4.108e-06/9.848, allocations: 0 / 4.463 GB, free: 105 MB / 0.5261 GB Notification: Performance of matching and sorting (n=76): time 0.01352/9.861, allocations: 3.691 MB / 4.466 GB, free: 104.6 MB / 0.5261 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.618e-05/9.861, allocations: 110.1 kB / 4.466 GB, free: 104.4 MB / 0.5261 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006449/9.862, allocations: 491.5 kB / 4.467 GB, free: 104.3 MB / 0.5261 GB Notification: Performance of collectPreVariables (initialization): time 8.199e-05/9.862, allocations: 25.7 kB / 4.467 GB, free: 104.3 MB / 0.5261 GB Notification: Performance of collectInitialEqns (initialization): time 0.000192/9.862, allocations: 350.5 kB / 4.467 GB, free: 104.1 MB / 0.5261 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002162/9.863, allocations: 268.9 kB / 4.467 GB, free: 104 MB / 0.5261 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.09e-05/9.863, allocations: 3.719 kB / 4.467 GB, free: 104 MB / 0.5261 GB Notification: Performance of setup shared object (initialization): time 0.0001201/9.863, allocations: 380.5 kB / 4.468 GB, free: 103.7 MB / 0.5261 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005974/9.863, allocations: 432.8 kB / 4.468 GB, free: 103.7 MB / 0.5261 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007419/9.864, allocations: 0.6875 MB / 4.469 GB, free: 103.4 MB / 0.5261 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001669/9.866, allocations: 0.6769 MB / 4.47 GB, free: 103.4 MB / 0.5261 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.799e-06/9.866, allocations: 2.781 kB / 4.47 GB, free: 103.4 MB / 0.5261 GB Notification: Performance of matching and sorting (n=124) (initialization): time 0.003152/9.869, allocations: 1.595 MB / 4.471 GB, free: 103.3 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 1.925e-05/9.869, allocations: 3.438 kB / 4.471 GB, free: 103.3 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.6e-05/9.869, allocations: 7.781 kB / 4.471 GB, free: 103.3 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.005535/9.875, allocations: 1.089 MB / 4.472 GB, free: 103.3 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008127/9.875, allocations: 154.8 kB / 4.472 GB, free: 103.3 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002547/9.878, allocations: 1.562 MB / 4.474 GB, free: 102.7 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001384/9.879, allocations: 78.84 kB / 4.474 GB, free: 102.7 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001501/9.88, allocations: 56.22 kB / 4.474 GB, free: 102.7 MB / 0.5261 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 35 * Number of states: 0 () * Number of discrete variables: 4 (volume.regularFlow[1],volume.regularFlow[2],volume.inFlow[2],volume.inFlow[1]) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (89): * Single equations (assignments): 88 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {3 33} Notification: Performance of prepare postOptimizeDAE: time 0.0003843/9.88, allocations: 133.1 kB / 4.474 GB, free: 102.6 MB / 0.5261 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002015/9.88, allocations: 76.22 kB / 4.474 GB, free: 102.6 MB / 0.5261 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003718/9.884, allocations: 1.617 MB / 4.476 GB, free: 102.5 MB / 0.5261 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.438e-05/9.884, allocations: 7.219 kB / 4.476 GB, free: 102.5 MB / 0.5261 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.318e-06/9.884, allocations: 3.906 kB / 4.476 GB, free: 102.5 MB / 0.5261 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.192e-05/9.884, allocations: 6.094 kB / 4.476 GB, free: 102.5 MB / 0.5261 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005018/9.889, allocations: 2.783 MB / 4.479 GB, free: 101.8 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.266e-06/9.889, allocations: 3.531 kB / 4.479 GB, free: 101.8 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001268/9.89, allocations: 245.7 kB / 4.479 GB, free: 101.8 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001398/9.892, allocations: 323.1 kB / 4.479 GB, free: 101.8 MB / 0.5261 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.509e-05/9.892, allocations: 17.53 kB / 4.479 GB, free: 101.8 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00185/9.894, allocations: 2.17 MB / 4.481 GB, free: 100 MB / 0.5261 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.656e-06/9.894, allocations: 6.25 kB / 4.481 GB, free: 100 MB / 0.5261 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.003829/9.897, allocations: 2.091 MB / 4.483 GB, free: 99.53 MB / 0.5261 GB Notification: Performance of postOpt removeConstants (simulation): time 0.00059/9.898, allocations: 279.5 kB / 4.484 GB, free: 99.39 MB / 0.5261 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001571/9.898, allocations: 13.27 kB / 4.484 GB, free: 99.39 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000887/9.899, allocations: 56.06 kB / 4.484 GB, free: 99.39 MB / 0.5261 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001474/9.899, allocations: 62.05 kB / 4.484 GB, free: 99.39 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001125/9.899, allocations: 44.11 kB / 4.484 GB, free: 99.39 MB / 0.5261 GB Notification: Performance of sort global known variables: time 0.0004935/9.9, allocations: 377.1 kB / 4.484 GB, free: 99.3 MB / 0.5261 GB Notification: Performance of remove unused functions: time 0.003432/9.903, allocations: 0.7628 MB / 4.485 GB, free: 99.3 MB / 0.5261 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 12 * Number of states: 3 (volume.medium.p,volume.medium.Xi[1],volume.medium.T) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (77): * Single equations (assignments): 73 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 2 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 1 {1} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {2 6} Notification: Performance of Backend phase and start with SimCode phase: time 0.00381/9.907, allocations: 1.675 MB / 4.486 GB, free: 99.14 MB / 0.5261 GB Notification: Performance of simCode: created initialization part: time 0.002257/9.909, allocations: 1.101 MB / 4.487 GB, free: 99.12 MB / 0.5261 GB Notification: Performance of simCode: created event and clocks part: time 7.164e-06/9.909, allocations: 0 / 4.487 GB, free: 99.12 MB / 0.5261 GB Notification: Performance of simCode: created simulation system equations: time 0.001606/9.911, allocations: 0.6661 MB / 4.488 GB, free: 99.12 MB / 0.5261 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002002/9.913, allocations: 353 kB / 4.488 GB, free: 99.12 MB / 0.5261 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004296/9.917, allocations: 1.68 MB / 4.49 GB, free: 98.74 MB / 0.5261 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000819/9.918, allocations: 1.162 MB / 4.491 GB, free: 98.03 MB / 0.5261 GB Notification: Performance of SimCode: time 7.21e-07/9.918, allocations: 0 / 4.491 GB, free: 98.03 MB / 0.5261 GB Notification: Performance of Templates: time 0.04954/9.968, allocations: 33.05 MB / 4.524 GB, free: 97.52 MB / 0.5261 GB make -j1 -f ModelicaTest_trunk_ModelicaTest.Media.TestsWithFluid.MediaTestModels.Air.MoistAir.makefile (rm -f ModelicaTest_trunk_ModelicaTest.Media.TestsWithFluid.MediaTestModels.Air.MoistAir.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Media.TestsWithFluid.MediaTestModels.Air.MoistAir.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Media.TestsWithFluid.MediaTestModels.Air.MoistAir.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Media.TestsWithFluid.MediaTestModels.Air.MoistAir.sim & ./ModelicaTest_trunk_ModelicaTest.Media.TestsWithFluid.MediaTestModels.Air.MoistAir -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_trunk_ModelicaTest.Media.TestsWithFluid.MediaTestModels.Air.MoistAir.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_ModelicaTest.Media.TestsWithFluid.MediaTestModels.Air.MoistAir_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Media/TestsWithFluid/MediaTestModels/Air/MoistAir/MoistAir.csv","../files/ModelicaTest_trunk_ModelicaTest.Media.TestsWithFluid.MediaTestModels.Air.MoistAir.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) "" Variables in the reference:time,volume.medium.T,volume.medium.Xi[1],volume.medium.p Variables in the result:T_start,X_start[1],X_start[2],ambient.T,ambient.X[1],ambient.X[2],ambient.d,ambient.flowDirection,ambient.h,ambient.medium.preferredMediumStates,ambient.medium.standardOrderComponents,ambient.nPorts,ambient.p,ambient.use_T,ambient.use_p,fixedMassFlowRate.T,fixedMassFlowRate.X[1],fixedMassFlowRate.X[2],fixedMassFlowRate.flowDirection,fixedMassFlowRate.m_flow,fixedMassFlowRate.medium.preferredMediumStates,fixedMassFlowRate.medium.standardOrderComponents,fixedMassFlowRate.nPorts,h_start,p_start,shortPipe.V,shortPipe.allowFlowReversal,shortPipe.crossArea,shortPipe.diameter,shortPipe.flowModel.Re_turbulent,shortPipe.flowModel.allowFlowReversal,shortPipe.flowModel.dp_nominal,shortPipe.flowModel.g,shortPipe.flowModel.m,shortPipe.flowModel.m_flow_nominal,shortPipe.flowModel.m_flow_start,shortPipe.flowModel.momentumDynamics,shortPipe.flowModel.mu_nominal,shortPipe.flowModel.n,shortPipe.flowModel.nParallel,shortPipe.flowModel.p_a_start,shortPipe.flowModel.p_b_start,shortPipe.flowModel.rho_nominal,shortPipe.flowModel.show_Res,shortPipe.flowModel.useUpstreamScheme,shortPipe.flowModel.use_Ib_flows,shortPipe.flowModel.use_mu_nominal,shortPipe.flowModel.use_rho_nominal,shortPipe.height_ab,shortPipe.isCircular,shortPipe.length,shortPipe.m_flow_start,shortPipe.nParallel,shortPipe.p_a_start,shortPipe.p_b_start,shortPipe.perimeter,shortPipe.port_a_exposesState,shortPipe.port_b_exposesState,shortPipe.roughness,shortPipe.showDesignFlowDirection,system.T_ambient,system.T_start,system.allowFlowReversal,system.dp_small,system.energyDynamics,system.eps_m_flow,system.g,system.m_flow_nominal,system.m_flow_small,system.m_flow_start,system.massDynamics,system.momentumDynamics,system.p_ambient,system.p_start,system.substanceDynamics,system.traceDynamics,system.use_eps_Re,time,volume.T_start,volume.V,volume.X_start[1],volume.X_start[2],volume.energyDynamics,volume.fluidLevel_max,volume.h_start,volume.heatTransfer.T_ambient,volume.heatTransfer.k,volume.heatTransfer.n,volume.heatTransfer.use_k,volume.initialize_p,volume.m_flow_nominal,volume.m_flow_small,volume.massDynamics,volume.medium.T,volume.medium.Xi[1],volume.medium.p,volume.medium.preferredMediumStates,volume.medium.standardOrderComponents,volume.nPorts,volume.p_start,volume.substanceDynamics,volume.traceDynamics,volume.use_HeatTransfer,volume.use_Re,volume.use_T_start,volume.use_portsData,volume.vesselArea