Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_cpp_Modelica.Media.Examples.ReferenceAir.DryAir2.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) 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(Modelica.Media.Examples.ReferenceAir.DryAir2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|volume.medium.T|volume.medium.p|volume1.medium.T|volume1.medium.p",fileNamePrefix="Modelica_trunk_cpp_Modelica.Media.Examples.ReferenceAir.DryAir2") translateModel(Modelica.Media.Examples.ReferenceAir.DryAir2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|volume.medium.T|volume.medium.p|volume1.medium.T|volume1.medium.p",fileNamePrefix="Modelica_trunk_cpp_Modelica.Media.Examples.ReferenceAir.DryAir2") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002212/0.002213, allocations: 195.7 kB / 18.07 MB, free: 3.762 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 2.753/2.753, allocations: 226.5 MB / 245.4 MB, free: 6.512 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001099/0.001099, allocations: 102.6 kB / 297.4 MB, free: 6.684 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003936/0.0003939, allocations: 8 kB / 357.4 MB, free: 10.75 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4926/0.493, allocations: 51.29 MB / 408.7 MB, free: 27.7 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 2.339/2.833, allocations: 0.5376 GB / 0.9366 GB, free: 95.28 MB / 458.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000333/2.833, allocations: 76.69 kB / 0.9367 GB, free: 95.2 MB / 458.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.019/3.852, allocations: 148 MB / 1.081 GB, free: 120.3 MB / 458.7 MB Notification: Performance of FrontEnd: time 4.218e-06/3.852, allocations: 0 / 1.081 GB, free: 120.3 MB / 458.7 MB Notification: Performance of Transformations before backend: time 3.722e-05/3.852, allocations: 7.781 kB / 1.081 GB, free: 120.3 MB / 458.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 96 * Number of variables: 96 Notification: Performance of Generate backend data structure: time 0.002219/3.854, allocations: 0.6972 MB / 1.082 GB, free: 119.8 MB / 458.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.521e-05/3.854, allocations: 11.91 kB / 1.082 GB, free: 119.8 MB / 458.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001035/3.856, allocations: 76.38 kB / 1.082 GB, free: 119.7 MB / 458.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007697/3.856, allocations: 341.1 kB / 1.082 GB, free: 119.4 MB / 458.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.645e-05/3.856, allocations: 31.83 kB / 1.082 GB, free: 119.4 MB / 458.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001037/3.857, allocations: 43.19 kB / 1.082 GB, free: 119.4 MB / 458.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001088/3.858, allocations: 469.5 kB / 1.083 GB, free: 119.1 MB / 458.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.32e-05/3.858, allocations: 3.938 kB / 1.083 GB, free: 119.1 MB / 458.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.751e-05/3.858, allocations: 15.97 kB / 1.083 GB, free: 119.1 MB / 458.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.826e-05/3.858, allocations: 11.16 kB / 1.083 GB, free: 119.1 MB / 458.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007373/3.859, allocations: 306.1 kB / 1.083 GB, free: 119 MB / 458.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01846/3.877, allocations: 6.296 MB / 1.089 GB, free: 114.7 MB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008025/3.878, allocations: 279.9 kB / 1.09 GB, free: 114.5 MB / 458.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003732/3.878, allocations: 149.6 kB / 1.09 GB, free: 114.5 MB / 458.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01824/3.897, allocations: 3.469 MB / 1.093 GB, free: 112.7 MB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.772e-05/3.897, allocations: 38.5 kB / 1.093 GB, free: 112.6 MB / 458.7 MB Notification: Performance of pre-optimization done (n=35): time 6.702e-06/3.897, allocations: 0 / 1.093 GB, free: 112.6 MB / 458.7 MB Notification: Performance of matching and sorting (n=45): time 0.02102/3.918, allocations: 2.388 MB / 1.095 GB, free: 111.6 MB / 458.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.777e-05/3.918, allocations: 66.52 kB / 1.096 GB, free: 111.5 MB / 458.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000628/3.919, allocations: 297.4 kB / 1.096 GB, free: 111.3 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 7.137e-05/3.919, allocations: 37.66 kB / 1.096 GB, free: 111.3 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002349/3.919, allocations: 218.2 kB / 1.096 GB, free: 111.1 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002137/3.919, allocations: 162.7 kB / 1.096 GB, free: 111 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.303e-05/3.919, allocations: 12 kB / 1.096 GB, free: 110.9 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 0.0003343/3.92, allocations: 346.3 kB / 1.097 GB, free: 110.6 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003967/3.92, allocations: 147.7 kB / 1.097 GB, free: 110.5 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005787/3.921, allocations: 279.6 kB / 1.097 GB, free: 110.3 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001034/3.922, allocations: 470.6 kB / 1.097 GB, free: 110 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.709e-06/3.922, allocations: 0 / 1.097 GB, free: 110 MB / 458.7 MB Notification: Performance of matching and sorting (n=66) (initialization): time 0.001961/3.924, allocations: 0.592 MB / 1.098 GB, free: 109.5 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.654e-05/3.924, allocations: 10.59 kB / 1.098 GB, free: 109.5 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.632e-05/3.924, allocations: 4 kB / 1.098 GB, free: 109.5 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01195/3.936, allocations: 0.8605 MB / 1.099 GB, free: 108.7 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008273/3.937, allocations: 107.8 kB / 1.099 GB, free: 108.6 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002824/3.939, allocations: 2.463 MB / 1.101 GB, free: 105.9 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008259/3.94, allocations: 36.02 kB / 1.101 GB, free: 105.9 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.604e-05/3.94, allocations: 23.94 kB / 1.101 GB, free: 105.8 MB / 458.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 16 * 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 (61): * Single equations (assignments): 58 * 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: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 3 {2 1,2 1,1 1} Notification: Performance of prepare postOptimizeDAE: time 0.0004167/3.941, allocations: 173.7 kB / 1.102 GB, free: 105.7 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000118/3.941, allocations: 49.52 kB / 1.102 GB, free: 105.6 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001704/3.943, allocations: 0.8474 MB / 1.102 GB, free: 104.8 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.748e-05/3.943, allocations: 8 kB / 1.102 GB, free: 104.7 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.387e-06/3.943, allocations: 0 / 1.102 GB, free: 104.7 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.00491/3.948, allocations: 0.9688 MB / 1.103 GB, free: 103.7 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003055/3.951, allocations: 1.49 MB / 1.105 GB, free: 102.2 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.118e-05/3.951, allocations: 0 / 1.105 GB, free: 102.2 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005609/3.951, allocations: 79.94 kB / 1.105 GB, free: 102.1 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.004177/3.956, allocations: 0.5906 MB / 1.105 GB, free: 101.5 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001185/3.956, allocations: 15.98 kB / 1.106 GB, free: 101.5 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001218/3.957, allocations: 1.284 MB / 1.107 GB, free: 100.1 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.046e-06/3.957, allocations: 0 / 1.107 GB, free: 100.1 MB / 458.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002483/3.96, allocations: 1.226 MB / 1.108 GB, free: 98.89 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003853/3.96, allocations: 112.8 kB / 1.108 GB, free: 98.76 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.697e-05/3.96, allocations: 16.03 kB / 1.108 GB, free: 98.74 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004385/3.961, allocations: 31.84 kB / 1.108 GB, free: 98.71 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.174e-05/3.961, allocations: 35.08 kB / 1.108 GB, free: 98.68 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.329e-05/3.961, allocations: 19.98 kB / 1.108 GB, free: 98.66 MB / 458.7 MB Notification: Performance of sorting global known variables: time 0.0003709/3.961, allocations: 209.9 kB / 1.108 GB, free: 98.45 MB / 458.7 MB Notification: Performance of sort global known variables: time 2.3e-07/3.961, allocations: 4 kB / 1.108 GB, free: 98.45 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.001942/3.963, allocations: 247.9 kB / 1.109 GB, free: 98.21 MB / 458.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 4 (volume.medium.p,volume.medium.T,volume1.medium.p,volume1.medium.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 (43): * Single equations (assignments): 39 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 2 * 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 {1 2,1 2} Notification: Performance of Backend phase and start with SimCode phase: time 0.00187/3.965, allocations: 437.1 kB / 1.109 GB, free: 97.82 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.001812/3.967, allocations: 0.6873 MB / 1.11 GB, free: 97.12 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 1.081e-05/3.967, allocations: 0 / 1.11 GB, free: 97.12 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001434/3.968, allocations: 440.1 kB / 1.11 GB, free: 96.69 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002289/3.971, allocations: 232.3 kB / 1.11 GB, free: 96.47 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008206/3.979, allocations: 1.517 MB / 1.112 GB, free: 94.95 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000503/3.979, allocations: 0.8404 MB / 1.113 GB, free: 94.08 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000245/3.98, allocations: 43.44 kB / 1.113 GB, free: 94.04 MB / 458.7 MB Notification: Performance of SimCode: time 2.464e-06/3.98, allocations: 0 / 1.113 GB, free: 94.04 MB / 458.7 MB Notification: Performance of Templates: time 0.03336/4.013, allocations: 13.36 MB / 1.126 GB, free: 80.68 MB / 458.7 MB make -j1 -f Modelica_trunk_cpp_Modelica.Media.Examples.ReferenceAir.DryAir2.makefile (rm -f Modelica_trunk_cpp_Modelica.Media.Examples.ReferenceAir.DryAir2.pipe ; mkfifo Modelica_trunk_cpp_Modelica.Media.Examples.ReferenceAir.DryAir2.pipe ; head -c 1048576 < Modelica_trunk_cpp_Modelica.Media.Examples.ReferenceAir.DryAir2.pipe >> ../files/Modelica_trunk_cpp_Modelica.Media.Examples.ReferenceAir.DryAir2.sim & ./Modelica_trunk_cpp_Modelica.Media.Examples.ReferenceAir.DryAir2 --alarm=480 -emit_protected > Modelica_trunk_cpp_Modelica.Media.Examples.ReferenceAir.DryAir2.pipe 2>&1) diffSimulationResults("Modelica_trunk_cpp_Modelica.Media.Examples.ReferenceAir.DryAir2_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Media/Examples/ReferenceAir/DryAir2/DryAir2.csv","../files/Modelica_trunk_cpp_Modelica.Media.Examples.ReferenceAir.DryAir2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches