Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Media.Examples.MoistAir.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.MoistAir,tolerance=1e-05,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|medium.T|medium.p",fileNamePrefix="Modelica_4.0.0_Modelica.Media.Examples.MoistAir") translateModel(Modelica.Media.Examples.MoistAir,tolerance=1e-05,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|medium.T|medium.p",fileNamePrefix="Modelica_4.0.0_Modelica.Media.Examples.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 4.0.0+maint.om/package.mo): time 0.001048/0.001048, allocations: 186 kB / 8.136 MB, free: 2.199 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.252/1.252, allocations: 221.4 MB / 229.9 MB, free: 3.066 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.0008977/0.0008978, allocations: 99.83 kB / 280.8 MB, free: 1.266 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 1.01e-05/1.033e-05, allocations: 4 kB / 336.5 MB, free: 9.523 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2718/0.2718, allocations: 50.39 MB / 386.9 MB, free: 37.99 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 6.886/7.158, allocations: 3.336 GB / 3.714 GB, free: 168.7 MB / 442.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001944/7.158, allocations: 70.2 kB / 3.714 GB, free: 168.7 MB / 442.7 MB Notification: Performance of FrontEnd: time 0.1031/7.261, allocations: 48.55 MB / 3.761 GB, free: 123.1 MB / 442.7 MB Notification: Performance of Transformations before backend: time 1.528e-05/7.261, allocations: 4 kB / 3.761 GB, free: 123 MB / 442.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 40 * Number of variables: 40 Notification: Performance of Generate backend data structure: time 0.001649/7.263, allocations: 0.6345 MB / 3.762 GB, free: 122.4 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.189e-05/7.263, allocations: 8.031 kB / 3.762 GB, free: 122.4 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001482/7.263, allocations: 23.81 kB / 3.762 GB, free: 122.3 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002189/7.263, allocations: 210.9 kB / 3.762 GB, free: 122.1 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.287e-05/7.263, allocations: 4 kB / 3.762 GB, free: 122.1 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.284e-05/7.264, allocations: 11.91 kB / 3.762 GB, free: 122.1 MB / 442.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0003442/7.264, allocations: 208.5 kB / 3.762 GB, free: 121.9 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003058/7.264, allocations: 225.1 kB / 3.763 GB, free: 121.6 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.333e-05/7.264, allocations: 0 / 3.763 GB, free: 121.6 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.972e-05/7.264, allocations: 0 / 3.763 GB, free: 121.6 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.118e-05/7.264, allocations: 8 kB / 3.763 GB, free: 121.6 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001275/7.266, allocations: 0.6631 MB / 3.763 GB, free: 120.9 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000318/7.266, allocations: 193.2 kB / 3.763 GB, free: 120.7 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001422/7.266, allocations: 101.7 kB / 3.764 GB, free: 120.6 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002801/7.266, allocations: 360.4 kB / 3.764 GB, free: 120.2 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.717e-05/7.266, allocations: 42.5 kB / 3.764 GB, free: 120.1 MB / 442.7 MB Notification: Performance of pre-optimization done (n=29): time 1.513e-06/7.266, allocations: 4 kB / 3.764 GB, free: 120.1 MB / 442.7 MB Notification: Performance of matching and sorting (n=36): time 0.001541/7.268, allocations: 499 kB / 3.764 GB, free: 119.6 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.304e-05/7.268, allocations: 81.3 kB / 3.765 GB, free: 119.5 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.645e-05/7.268, allocations: 111.4 kB / 3.765 GB, free: 119.4 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 2.625e-05/7.268, allocations: 25.7 kB / 3.765 GB, free: 119.4 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.36e-05/7.268, allocations: 108.6 kB / 3.765 GB, free: 119.3 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.286e-05/7.268, allocations: 130.1 kB / 3.765 GB, free: 119.1 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.166e-05/7.268, allocations: 0 / 3.765 GB, free: 119.1 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 6.078e-05/7.268, allocations: 322.8 kB / 3.765 GB, free: 118.8 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000151/7.268, allocations: 104 kB / 3.765 GB, free: 118.7 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001797/7.269, allocations: 175.4 kB / 3.765 GB, free: 118.5 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002784/7.269, allocations: 150.9 kB / 3.766 GB, free: 118.4 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.202e-06/7.269, allocations: 0 / 3.766 GB, free: 118.4 MB / 442.7 MB Notification: Performance of matching and sorting (n=43) (initialization): time 0.0005947/7.27, allocations: 349.8 kB / 3.766 GB, free: 118 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.332e-05/7.27, allocations: 4 kB / 3.766 GB, free: 118 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.783e-06/7.27, allocations: 7.984 kB / 3.766 GB, free: 118 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.94e-05/7.27, allocations: 4 kB / 3.766 GB, free: 118 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005019/7.27, allocations: 89.09 kB / 3.766 GB, free: 117.9 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.266e-06/7.27, allocations: 7.938 kB / 3.766 GB, free: 117.9 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003312/7.27, allocations: 23.98 kB / 3.766 GB, free: 117.9 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.904e-05/7.27, allocations: 19.98 kB / 3.766 GB, free: 117.9 MB / 442.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 9 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (43): * Single equations (assignments): 43 * 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 prepare postOptimizeDAE: time 9.357e-05/7.271, allocations: 108.8 kB / 3.766 GB, free: 117.8 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.684e-05/7.271, allocations: 27.75 kB / 3.766 GB, free: 117.7 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000471/7.271, allocations: 178.3 kB / 3.766 GB, free: 117.6 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.392e-06/7.271, allocations: 4 kB / 3.766 GB, free: 117.6 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.643e-06/7.271, allocations: 3.938 kB / 3.766 GB, free: 117.6 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.274e-06/7.271, allocations: 7.984 kB / 3.766 GB, free: 117.5 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001019/7.272, allocations: 0.6545 MB / 3.767 GB, free: 116.8 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.965e-06/7.272, allocations: 0 / 3.767 GB, free: 116.8 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004505/7.273, allocations: 79.89 kB / 3.767 GB, free: 116.8 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.44e-06/7.273, allocations: 4 kB / 3.767 GB, free: 116.8 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.977e-05/7.273, allocations: 13.17 kB / 3.767 GB, free: 116.7 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.327e-06/7.273, allocations: 4 kB / 3.767 GB, free: 116.7 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.815e-06/7.273, allocations: 0 / 3.767 GB, free: 116.7 MB / 442.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.000769/7.273, allocations: 0.7095 MB / 3.768 GB, free: 116 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001004/7.274, allocations: 120.8 kB / 3.768 GB, free: 115.8 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.919e-05/7.274, allocations: 4 kB / 3.768 GB, free: 115.8 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003841/7.274, allocations: 20.03 kB / 3.768 GB, free: 115.8 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.365e-05/7.274, allocations: 19.97 kB / 3.768 GB, free: 115.8 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.118e-05/7.274, allocations: 12 kB / 3.768 GB, free: 115.8 MB / 442.7 MB Notification: Performance of sort global known variables: time 3.855e-05/7.274, allocations: 97.14 kB / 3.768 GB, free: 115.7 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.0007079/7.275, allocations: 163.9 kB / 3.768 GB, free: 115.5 MB / 442.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 7 * Number of states: 2 (medium.p,medium.T) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (38): * Single equations (assignments): 38 * 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.0009189/7.276, allocations: 0.749 MB / 3.769 GB, free: 114.8 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.0004095/7.276, allocations: 279.1 kB / 3.769 GB, free: 114.5 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 2.254e-06/7.276, allocations: 0 / 3.769 GB, free: 114.5 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001762/7.276, allocations: 151.8 kB / 3.769 GB, free: 114.3 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000565/7.277, allocations: 80.28 kB / 3.769 GB, free: 114.3 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001086/7.278, allocations: 471 kB / 3.77 GB, free: 113.8 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003282/7.278, allocations: 0.778 MB / 3.771 GB, free: 113 MB / 442.7 MB Notification: Performance of SimCode: time 2.81e-07/7.278, allocations: 0 / 3.771 GB, free: 113 MB / 442.7 MB Notification: Performance of Templates: time 0.01408/7.293, allocations: 9.157 MB / 3.78 GB, free: 103.9 MB / 442.7 MB make -j1 -f Modelica_4.0.0_Modelica.Media.Examples.MoistAir.makefile (rm -f Modelica_4.0.0_Modelica.Media.Examples.MoistAir.pipe ; mkfifo Modelica_4.0.0_Modelica.Media.Examples.MoistAir.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Media.Examples.MoistAir.pipe >> ../files/Modelica_4.0.0_Modelica.Media.Examples.MoistAir.sim & ./Modelica_4.0.0_Modelica.Media.Examples.MoistAir -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Media.Examples.MoistAir.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Media.Examples.MoistAir_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Media/Examples/MoistAir/MoistAir.csv","../files/Modelica_4.0.0_Modelica.Media.Examples.MoistAir.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches