Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Media.Examples.ReferenceAir.MoistAir1.conf.json 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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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) Running command: translateModel(Modelica.Media.Examples.ReferenceAir.MoistAir1,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|volume.medium.T|volume.medium.Xi.1.|volume.medium.p",fileNamePrefix="Modelica_4.0.0_Modelica.Media.Examples.ReferenceAir.MoistAir1") translateModel(Modelica.Media.Examples.ReferenceAir.MoistAir1,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|volume.medium.T|volume.medium.Xi.1.|volume.medium.p",fileNamePrefix="Modelica_4.0.0_Modelica.Media.Examples.ReferenceAir.MoistAir1") [: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 4.0.0+maint.om/package.mo): time 0.001197/0.001198, allocations: 187.4 kB / 8.141 MB, free: 2.191 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.31/1.31, allocations: 221.4 MB / 229.9 MB, free: 3.004 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001038/0.001039, allocations: 94.34 kB / 280.8 MB, free: 1.254 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 8.837e-06/8.877e-06, allocations: 0 / 336.5 MB, free: 9.508 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3059/0.3059, allocations: 50.4 MB / 386.9 MB, free: 37.99 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 11.71/12.01, allocations: 6.122 GB / 6.5 GB, free: 115.6 MB / 442.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002602/12.01, allocations: 80.8 kB / 6.5 GB, free: 115.6 MB / 442.7 MB Notification: Performance of FrontEnd: time 3.087/15.1, allocations: 0.8048 GB / 7.305 GB, free: 40.37 MB / 474.8 MB Notification: Performance of Transformations before backend: time 2.394e-05/15.1, allocations: 8.312 kB / 7.305 GB, free: 40.37 MB / 474.8 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 107 * Number of variables: 107 Notification: Performance of Generate backend data structure: time 0.01183/15.11, allocations: 2.736 MB / 7.308 GB, free: 39.2 MB / 474.8 MB Notification: Performance of prepare preOptimizeDAE: time 3.94e-05/15.11, allocations: 9.875 kB / 7.308 GB, free: 39.2 MB / 474.8 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004102/15.11, allocations: 64.66 kB / 7.308 GB, free: 39.18 MB / 474.8 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005263/15.11, allocations: 361.7 kB / 7.308 GB, free: 38.96 MB / 474.8 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.867e-05/15.11, allocations: 11.31 kB / 7.308 GB, free: 38.96 MB / 474.8 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.227e-05/15.11, allocations: 28.53 kB / 7.308 GB, free: 38.96 MB / 474.8 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0008612/15.11, allocations: 0.6704 MB / 7.309 GB, free: 38.96 MB / 474.8 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007312/15.11, allocations: 481.6 kB / 7.309 GB, free: 38.91 MB / 474.8 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.209e-05/15.11, allocations: 7.406 kB / 7.309 GB, free: 38.91 MB / 474.8 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.321e-05/15.11, allocations: 3.906 kB / 7.309 GB, free: 38.91 MB / 474.8 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.968e-06/15.11, allocations: 11.02 kB / 7.309 GB, free: 38.91 MB / 474.8 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01261/15.13, allocations: 11.57 MB / 7.32 GB, free: 28.36 MB / 474.8 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006137/15.13, allocations: 369.5 kB / 7.321 GB, free: 28.34 MB / 474.8 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002933/15.13, allocations: 242.8 kB / 7.321 GB, free: 28.34 MB / 474.8 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02292/15.15, allocations: 21.02 MB / 7.342 GB, free: 23.23 MB / 490.8 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.5e-05/15.15, allocations: 48.61 kB / 7.342 GB, free: 23.18 MB / 490.8 MB Notification: Performance of pre-optimization done (n=50): time 3.848e-06/15.15, allocations: 0 / 7.342 GB, free: 23.18 MB / 490.8 MB Notification: Performance of matching and sorting (n=55): time 0.005199/15.16, allocations: 1.625 MB / 7.343 GB, free: 22.8 MB / 490.8 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.008e-05/15.16, allocations: 63.06 kB / 7.343 GB, free: 22.74 MB / 490.8 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002455/15.16, allocations: 224.4 kB / 7.343 GB, free: 22.65 MB / 490.8 MB Notification: Performance of collectPreVariables (initialization): time 5.555e-05/15.16, allocations: 29.45 kB / 7.344 GB, free: 22.62 MB / 490.8 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001463/15.16, allocations: 197.5 kB / 7.344 GB, free: 22.47 MB / 490.8 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001068/15.16, allocations: 185.9 kB / 7.344 GB, free: 22.35 MB / 490.8 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.813e-05/15.16, allocations: 0 / 7.344 GB, free: 22.35 MB / 490.8 MB Notification: Performance of setup shared object (initialization): time 0.0001448/15.16, allocations: 340.7 kB / 7.344 GB, free: 22.04 MB / 490.8 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003105/15.16, allocations: 222.2 kB / 7.344 GB, free: 22.04 MB / 490.8 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003608/15.16, allocations: 309 kB / 7.345 GB, free: 21.94 MB / 490.8 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001026/15.16, allocations: 364.8 kB / 7.345 GB, free: 21.94 MB / 490.8 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.586e-06/15.16, allocations: 4.5 kB / 7.345 GB, free: 21.94 MB / 490.8 MB Notification: Performance of matching and sorting (n=70) (initialization): time 0.001937/15.16, allocations: 0.7881 MB / 7.346 GB, free: 21.86 MB / 490.8 MB Notification: Performance of prepare postOptimizeDAE: time 1.429e-05/15.16, allocations: 4.516 kB / 7.346 GB, free: 21.86 MB / 490.8 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.346e-06/15.16, allocations: 3.625 kB / 7.346 GB, free: 21.86 MB / 490.8 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002292/15.16, allocations: 77.56 kB / 7.346 GB, free: 21.83 MB / 490.8 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005282/15.16, allocations: 128.5 kB / 7.346 GB, free: 21.83 MB / 490.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002568/15.16, allocations: 3.186 MB / 7.349 GB, free: 18.86 MB / 490.8 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004071/15.16, allocations: 30.75 kB / 7.349 GB, free: 18.86 MB / 490.8 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.059e-05/15.16, allocations: 39.7 kB / 7.349 GB, free: 18.86 MB / 490.8 MB Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: ambient.port.h:VARIABLE(flow=false min = -10000000000.0 max = 10000000000.0 unit = "J/kg" nominal = 1000000.0 ) "Specific mixture enthalpy in the connection point" type: Real Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: ambient.port.Xi[1]:VARIABLE(flow=false min = 0.0 max = 1.0 unit = "kg/kg" nominal = 0.1 ) "Independent mixture mass fractions m_i/m in the connection point" type: Real [1] Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 11 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (67): * Single equations (assignments): 64 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 1 {2} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 2 {1 1,1 1} Notification: Performance of prepare postOptimizeDAE: time 0.0002366/15.17, allocations: 131.6 kB / 7.349 GB, free: 18.75 MB / 490.8 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003055/15.17, allocations: 37.44 kB / 7.349 GB, free: 18.73 MB / 490.8 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001843/15.17, allocations: 0.8971 MB / 7.35 GB, free: 18.61 MB / 490.8 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.03e-06/15.17, allocations: 3.969 kB / 7.35 GB, free: 18.61 MB / 490.8 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.905e-06/15.17, allocations: 3.906 kB / 7.35 GB, free: 18.6 MB / 490.8 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001263/15.17, allocations: 0.7972 MB / 7.351 GB, free: 18.24 MB / 490.8 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002157/15.17, allocations: 1.3 MB / 7.352 GB, free: 17.93 MB / 490.8 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.396e-06/15.17, allocations: 0 / 7.352 GB, free: 17.93 MB / 490.8 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004774/15.17, allocations: 104.8 kB / 7.352 GB, free: 17.93 MB / 490.8 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001452/15.17, allocations: 67.09 kB / 7.352 GB, free: 17.92 MB / 490.8 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.999e-05/15.17, allocations: 15.22 kB / 7.352 GB, free: 17.92 MB / 490.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00058/15.17, allocations: 0.6935 MB / 7.353 GB, free: 17.33 MB / 490.8 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.555e-06/15.17, allocations: 0 / 7.353 GB, free: 17.33 MB / 490.8 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.001753/15.17, allocations: 0.9569 MB / 7.354 GB, free: 17.1 MB / 490.8 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001478/15.17, allocations: 129.3 kB / 7.354 GB, free: 16.99 MB / 490.8 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.025e-05/15.17, allocations: 10.61 kB / 7.354 GB, free: 16.99 MB / 490.8 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004914/15.17, allocations: 20.64 kB / 7.354 GB, free: 16.99 MB / 490.8 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.325e-05/15.17, allocations: 33.45 kB / 7.354 GB, free: 16.99 MB / 490.8 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.678e-05/15.17, allocations: 34.09 kB / 7.354 GB, free: 16.99 MB / 490.8 MB Notification: Performance of sort global known variables: time 0.0001908/15.17, allocations: 202.7 kB / 7.355 GB, free: 16.91 MB / 490.8 MB Notification: Performance of remove unused functions: time 0.008054/15.18, allocations: 1.932 MB / 7.356 GB, free: 16.52 MB / 490.8 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * 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 (53): * Single equations (assignments): 52 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 1 {2} * Without analytic Jacobian: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.01385/15.2, allocations: 3.139 MB / 7.359 GB, free: 15.98 MB / 490.8 MB Notification: Performance of simCode: created initialization part: time 0.001556/15.2, allocations: 0.7635 MB / 7.36 GB, free: 15.77 MB / 490.8 MB Notification: Performance of simCode: created event and clocks part: time 5.35e-06/15.2, allocations: 4.875 kB / 7.36 GB, free: 15.77 MB / 490.8 MB Notification: Performance of simCode: created simulation system equations: time 0.0003951/15.2, allocations: 291.6 kB / 7.36 GB, free: 15.77 MB / 490.8 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00111/15.2, allocations: 176.7 kB / 7.361 GB, free: 15.76 MB / 490.8 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001823/15.2, allocations: 0.8478 MB / 7.361 GB, free: 15.55 MB / 490.8 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006736/15.2, allocations: 0.9218 MB / 7.362 GB, free: 14.85 MB / 490.8 MB Notification: Performance of SimCode: time 5.71e-07/15.2, allocations: 0 / 7.362 GB, free: 14.85 MB / 490.8 MB Notification: Performance of Templates: time 0.07029/15.27, allocations: 57.65 MB / 7.419 GB, free: 13.5 MB / 490.8 MB make -j1 -f Modelica_4.0.0_Modelica.Media.Examples.ReferenceAir.MoistAir1.makefile (rm -f Modelica_4.0.0_Modelica.Media.Examples.ReferenceAir.MoistAir1.pipe ; mkfifo Modelica_4.0.0_Modelica.Media.Examples.ReferenceAir.MoistAir1.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Media.Examples.ReferenceAir.MoistAir1.pipe >> ../files/Modelica_4.0.0_Modelica.Media.Examples.ReferenceAir.MoistAir1.sim & ./Modelica_4.0.0_Modelica.Media.Examples.ReferenceAir.MoistAir1 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Media.Examples.ReferenceAir.MoistAir1.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Media.Examples.ReferenceAir.MoistAir1_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Media/Examples/ReferenceAir/MoistAir1/MoistAir1.csv","../files/Modelica_4.0.0_Modelica.Media.Examples.ReferenceAir.MoistAir1.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches