Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_cpp_Modelica.Media.Examples.ReferenceAir.DryAir1.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.DryAir1,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|volume.medium.T|volume.medium.p",fileNamePrefix="Modelica_trunk_cpp_Modelica.Media.Examples.ReferenceAir.DryAir1") translateModel(Modelica.Media.Examples.ReferenceAir.DryAir1,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|volume.medium.T|volume.medium.p",fileNamePrefix="Modelica_trunk_cpp_Modelica.Media.Examples.ReferenceAir.DryAir1") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001555/0.001555, allocations: 197 kB / 17.38 MB, free: 4.43 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.287/1.287, allocations: 226.5 MB / 244.7 MB, free: 8.176 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007709/0.0007708, allocations: 97.64 kB / 296.8 MB, free: 6.914 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002131/0.0002132, allocations: 4 kB / 356.7 MB, free: 10.94 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1948/0.195, allocations: 51.3 MB / 408 MB, free: 27.73 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Media.Examples.ReferenceAir.DryAir1): time 0.02407/0.2191, allocations: 24.99 MB / 433 MB, free: 2.676 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.004916/0.2241, allocations: 3.898 MB / 436.9 MB, free: 14.77 MB / 314.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003959/0.2245, allocations: 3.938 kB / 436.9 MB, free: 14.76 MB / 314.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0006586/0.2252, allocations: 159.1 kB / 437.1 MB, free: 14.61 MB / 314.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0007732/0.226, allocations: 318.3 kB / 437.4 MB, free: 14.29 MB / 314.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.004452/0.2304, allocations: 1.145 MB / 438.5 MB, free: 13.15 MB / 314.7 MB Notification: Performance of NFFlatten.flatten: time 0.001428/0.2319, allocations: 1.113 MB / 439.7 MB, free: 12.03 MB / 314.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002245/0.2321, allocations: 81.67 kB / 439.7 MB, free: 11.96 MB / 314.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.01324/0.2454, allocations: 7.495 MB / 447.2 MB, free: 4.457 MB / 314.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004443/0.2459, allocations: 274.9 kB / 447.5 MB, free: 4.188 MB / 314.7 MB Notification: Performance of NFPackage.collectConstants: time 4.889e-05/0.2459, allocations: 12 kB / 447.5 MB, free: 4.176 MB / 314.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0018/0.2477, allocations: 0.683 MB / 448.2 MB, free: 3.492 MB / 314.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001286/0.2479, allocations: 79.7 kB / 448.3 MB, free: 3.414 MB / 314.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0002696/0.2482, allocations: 197 kB / 448.5 MB, free: 3.215 MB / 314.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0009258/0.2491, allocations: 0.6001 MB / 449.1 MB, free: 2.613 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.089e-06/0.2491, allocations: 0 / 449.1 MB, free: 2.613 MB / 314.7 MB Notification: Performance of FrontEnd: time 1.903e-06/0.2491, allocations: 0 / 449.1 MB, free: 2.613 MB / 314.7 MB Notification: Performance of Transformations before backend: time 5.621e-06/0.2491, allocations: 0 / 449.1 MB, free: 2.613 MB / 314.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 66 * Number of variables: 66 Notification: Performance of Generate backend data structure: time 0.0009899/0.2501, allocations: 0.5809 MB / 449.6 MB, free: 1.984 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.216e-05/0.2502, allocations: 12.03 kB / 449.7 MB, free: 1.973 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000657/0.2508, allocations: 64.47 kB / 449.7 MB, free: 1.91 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000422/0.2513, allocations: 283.8 kB / 450 MB, free: 1.594 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.455e-05/0.2513, allocations: 16.94 kB / 450 MB, free: 1.578 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.78e-05/0.2514, allocations: 32.28 kB / 450 MB, free: 1.547 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006448/0.252, allocations: 338.6 kB / 450.4 MB, free: 1.18 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.72e-05/0.2521, allocations: 0 / 450.4 MB, free: 1.18 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.544e-05/0.2521, allocations: 12 kB / 450.4 MB, free: 1.168 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.234e-05/0.2521, allocations: 8 kB / 450.4 MB, free: 1.16 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004567/0.2526, allocations: 206 kB / 450.6 MB, free: 0.9609 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01376/0.2664, allocations: 5.915 MB / 456.5 MB, free: 10.54 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002916/0.2667, allocations: 178.7 kB / 456.7 MB, free: 10.36 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001377/0.2669, allocations: 88.83 kB / 456.8 MB, free: 10.27 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01089/0.2778, allocations: 3.873 MB / 460.6 MB, free: 6.094 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.642e-05/0.2779, allocations: 34.56 kB / 460.7 MB, free: 6.051 MB / 330.7 MB Notification: Performance of pre-optimization done (n=21): time 2.524e-06/0.2779, allocations: 3.938 kB / 460.7 MB, free: 6.047 MB / 330.7 MB Notification: Performance of matching and sorting (n=26): time 0.006409/0.2843, allocations: 1.417 MB / 462.1 MB, free: 4.555 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.679e-05/0.2844, allocations: 55.41 kB / 462.2 MB, free: 4.488 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002823/0.2846, allocations: 254.6 kB / 462.4 MB, free: 4.227 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 2.955e-05/0.2847, allocations: 41.64 kB / 462.4 MB, free: 4.18 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001242/0.2848, allocations: 192 kB / 462.6 MB, free: 3.988 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.35e-05/0.2849, allocations: 90.66 kB / 462.7 MB, free: 3.898 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.463e-05/0.2849, allocations: 4 kB / 462.7 MB, free: 3.895 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0001525/0.2851, allocations: 334.8 kB / 463 MB, free: 3.559 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001692/0.2852, allocations: 91.95 kB / 463.1 MB, free: 3.469 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002169/0.2855, allocations: 183.1 kB / 463.3 MB, free: 3.25 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003878/0.2859, allocations: 308.2 kB / 463.6 MB, free: 2.91 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.793e-06/0.2859, allocations: 4 kB / 463.6 MB, free: 2.906 MB / 330.7 MB Notification: Performance of matching and sorting (n=42) (initialization): time 0.0006856/0.2866, allocations: 390.7 kB / 464 MB, free: 2.512 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.132e-05/0.2866, allocations: 8.375 kB / 464 MB, free: 2.504 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.365e-06/0.2866, allocations: 11.94 kB / 464 MB, free: 2.492 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00334/0.29, allocations: 401.3 kB / 464.4 MB, free: 2.094 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002953/0.2903, allocations: 67.91 kB / 464.5 MB, free: 2.027 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001484/0.2918, allocations: 1.883 MB / 466.4 MB, free: 15.98 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002473/0.292, allocations: 23.92 kB / 466.4 MB, free: 15.96 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.739e-05/0.2921, allocations: 12 kB / 466.4 MB, free: 15.95 MB / 346.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 13 * 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 (39): * Single equations (assignments): 37 * 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: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 2 {2 1,1 1} Notification: Performance of prepare postOptimizeDAE: time 0.0001823/0.2923, allocations: 154.5 kB / 466.5 MB, free: 15.79 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.632e-05/0.2923, allocations: 35.55 kB / 466.6 MB, free: 15.75 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006926/0.293, allocations: 490.8 kB / 467.1 MB, free: 15.25 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.013e-05/0.2931, allocations: 11.98 kB / 467.1 MB, free: 15.24 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.453e-06/0.2931, allocations: 0 / 467.1 MB, free: 15.24 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0006137/0.2937, allocations: 0.7197 MB / 467.8 MB, free: 14.43 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001224/0.2949, allocations: 0.9415 MB / 468.7 MB, free: 13.43 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.659e-06/0.2949, allocations: 0 / 468.7 MB, free: 13.43 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001842/0.2951, allocations: 47.91 kB / 468.8 MB, free: 13.39 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001647/0.2968, allocations: 332.3 kB / 469.1 MB, free: 13.06 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.355e-05/0.2968, allocations: 8 kB / 469.1 MB, free: 13.05 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0004495/0.2973, allocations: 0.6421 MB / 469.8 MB, free: 12.38 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.533e-06/0.2973, allocations: 0 / 469.8 MB, free: 12.38 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009085/0.2982, allocations: 0.7203 MB / 470.5 MB, free: 11.64 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 9.792e-05/0.2983, allocations: 108.8 kB / 470.6 MB, free: 11.51 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.369e-05/0.2984, allocations: 11.94 kB / 470.6 MB, free: 11.5 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002009/0.2986, allocations: 12.06 kB / 470.6 MB, free: 11.49 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.516e-05/0.2986, allocations: 19.97 kB / 470.6 MB, free: 11.47 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.079e-05/0.2986, allocations: 7.938 kB / 470.6 MB, free: 11.46 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.0001748/0.2988, allocations: 190 kB / 470.8 MB, free: 11.28 MB / 346.7 MB Notification: Performance of sort global known variables: time 1.3e-07/0.2988, allocations: 0 / 470.8 MB, free: 11.28 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0006259/0.2995, allocations: 183.9 kB / 471 MB, free: 11.1 MB / 346.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 2 (volume.medium.p,volume.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 (25): * Single equations (assignments): 23 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 1 * 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 {1 2} Notification: Performance of Backend phase and start with SimCode phase: time 0.0006165/0.3001, allocations: 271 kB / 471.3 MB, free: 10.82 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.0007482/0.3008, allocations: 454 kB / 471.7 MB, free: 10.37 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 2.755e-06/0.3009, allocations: 3.938 kB / 471.7 MB, free: 10.36 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004611/0.3013, allocations: 232.7 kB / 471.9 MB, free: 10.14 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009143/0.3023, allocations: 165.7 kB / 472.1 MB, free: 9.984 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001256/0.3035, allocations: 0.9845 MB / 473.1 MB, free: 8.969 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003174/0.3039, allocations: 0.7763 MB / 473.9 MB, free: 8.168 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.386e-05/0.3039, allocations: 27.44 kB / 473.9 MB, free: 8.141 MB / 346.7 MB Notification: Performance of SimCode: time 3.81e-07/0.3039, allocations: 0 / 473.9 MB, free: 8.141 MB / 346.7 MB Notification: Performance of Templates: time 0.01149/0.3154, allocations: 8.36 MB / 482.2 MB, free: 15.79 MB / 362.7 MB make -j1 -f Modelica_trunk_cpp_Modelica.Media.Examples.ReferenceAir.DryAir1.makefile (rm -f Modelica_trunk_cpp_Modelica.Media.Examples.ReferenceAir.DryAir1.pipe ; mkfifo Modelica_trunk_cpp_Modelica.Media.Examples.ReferenceAir.DryAir1.pipe ; head -c 1048576 < Modelica_trunk_cpp_Modelica.Media.Examples.ReferenceAir.DryAir1.pipe >> ../files/Modelica_trunk_cpp_Modelica.Media.Examples.ReferenceAir.DryAir1.sim & ./Modelica_trunk_cpp_Modelica.Media.Examples.ReferenceAir.DryAir1 --alarm=480 -emit_protected > Modelica_trunk_cpp_Modelica.Media.Examples.ReferenceAir.DryAir1.pipe 2>&1) diffSimulationResults("Modelica_trunk_cpp_Modelica.Media.Examples.ReferenceAir.DryAir1_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Media/Examples/ReferenceAir/DryAir1/DryAir1.csv","../files/Modelica_trunk_cpp_Modelica.Media.Examples.ReferenceAir.DryAir1.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches