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.000876/0.0008759, allocations: 195.9 kB / 17.05 MB, free: 5.098 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.196/1.196, allocations: 226.6 MB / 244.3 MB, free: 8.227 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007445/0.0007445, allocations: 102.6 kB / 296.4 MB, free: 7.004 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0001839/0.0001839, allocations: 4 kB / 356.2 MB, free: 11.22 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1683/0.1685, allocations: 51.3 MB / 407.5 MB, free: 27.86 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Media.Examples.ReferenceAir.DryAir1): time 0.01477/0.1833, allocations: 24.94 MB / 432.4 MB, free: 2.855 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.003082/0.1864, allocations: 3.886 MB / 436.3 MB, free: 14.96 MB / 314.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002005/0.1866, allocations: 7.938 kB / 436.3 MB, free: 14.95 MB / 314.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0004842/0.1871, allocations: 147.1 kB / 436.5 MB, free: 14.8 MB / 314.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0005189/0.1876, allocations: 330.3 kB / 436.8 MB, free: 14.48 MB / 314.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.003008/0.1907, allocations: 1.14 MB / 437.9 MB, free: 13.34 MB / 314.7 MB Notification: Performance of NFFlatten.flatten: time 0.0009804/0.1916, allocations: 1.109 MB / 439 MB, free: 12.23 MB / 314.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001508/0.1918, allocations: 80.67 kB / 439.1 MB, free: 12.15 MB / 314.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.007982/0.1998, allocations: 7.479 MB / 446.6 MB, free: 4.668 MB / 314.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003291/0.2001, allocations: 263 kB / 446.9 MB, free: 4.41 MB / 314.7 MB Notification: Performance of NFPackage.collectConstants: time 4.112e-05/0.2002, allocations: 16 kB / 446.9 MB, free: 4.395 MB / 314.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00117/0.2014, allocations: 0.6829 MB / 447.6 MB, free: 3.711 MB / 314.7 MB Notification: Performance of NFScalarize.scalarize: time 7.979e-05/0.2015, allocations: 71.78 kB / 447.6 MB, free: 3.641 MB / 314.7 MB Notification: Performance of NFVerifyModel.verify: time 9.089e-05/0.2016, allocations: 101.5 kB / 447.7 MB, free: 3.535 MB / 314.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0006328/0.2022, allocations: 0.604 MB / 448.3 MB, free: 2.93 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.777e-06/0.2022, allocations: 0 / 448.3 MB, free: 2.93 MB / 314.7 MB Notification: Performance of FrontEnd: time 1.433e-06/0.2022, allocations: 0 / 448.3 MB, free: 2.93 MB / 314.7 MB Notification: Performance of Transformations before backend: time 5.6e-06/0.2022, allocations: 0 / 448.3 MB, free: 2.93 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.0007257/0.203, allocations: 0.5885 MB / 448.9 MB, free: 2.293 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.917e-05/0.203, allocations: 8.031 kB / 448.9 MB, free: 2.285 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003785/0.2034, allocations: 59.61 kB / 449 MB, free: 2.227 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003055/0.2037, allocations: 278.5 kB / 449.3 MB, free: 1.914 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.884e-05/0.2037, allocations: 20.56 kB / 449.3 MB, free: 1.895 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.807e-05/0.2038, allocations: 24 kB / 449.3 MB, free: 1.871 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004595/0.2042, allocations: 338.5 kB / 449.6 MB, free: 1.504 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.172e-05/0.2042, allocations: 3.938 kB / 449.6 MB, free: 1.5 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.042e-05/0.2043, allocations: 12 kB / 449.6 MB, free: 1.488 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.576e-05/0.2043, allocations: 11.95 kB / 449.7 MB, free: 1.477 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002914/0.2046, allocations: 206 kB / 449.9 MB, free: 1.277 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01185/0.2165, allocations: 5.92 MB / 455.8 MB, free: 10.85 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002716/0.2168, allocations: 168.2 kB / 455.9 MB, free: 10.68 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001215/0.2169, allocations: 93.2 kB / 456 MB, free: 10.59 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01013/0.227, allocations: 3.873 MB / 459.9 MB, free: 6.414 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.208e-05/0.2271, allocations: 38.69 kB / 459.9 MB, free: 6.367 MB / 330.7 MB Notification: Performance of pre-optimization done (n=21): time 3.186e-06/0.2271, allocations: 0 / 459.9 MB, free: 6.367 MB / 330.7 MB Notification: Performance of matching and sorting (n=26): time 0.005707/0.2328, allocations: 1.422 MB / 461.4 MB, free: 4.871 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.336e-05/0.2329, allocations: 59.39 kB / 461.4 MB, free: 4.801 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002458/0.2331, allocations: 262.5 kB / 461.7 MB, free: 4.531 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 2.425e-05/0.2331, allocations: 29.7 kB / 461.7 MB, free: 4.496 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001047/0.2333, allocations: 184.1 kB / 461.9 MB, free: 4.312 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.66e-05/0.2333, allocations: 98.64 kB / 462 MB, free: 4.215 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.37e-05/0.2334, allocations: 8 kB / 462 MB, free: 4.207 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0001049/0.2335, allocations: 334.8 kB / 462.3 MB, free: 3.871 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001432/0.2336, allocations: 87.97 kB / 462.4 MB, free: 3.785 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001954/0.2338, allocations: 183.1 kB / 462.6 MB, free: 3.566 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001868/0.234, allocations: 127.9 kB / 462.7 MB, free: 3.441 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.447e-06/0.234, allocations: 4 kB / 462.7 MB, free: 3.438 MB / 330.7 MB Notification: Performance of matching and sorting (n=42) (initialization): time 0.000623/0.2346, allocations: 392.4 kB / 463.1 MB, free: 3.043 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.716e-05/0.2347, allocations: 8 kB / 463.1 MB, free: 3.035 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.833e-06/0.2347, allocations: 4 kB / 463.1 MB, free: 3.031 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003222/0.2379, allocations: 401.3 kB / 463.5 MB, free: 2.633 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002535/0.2382, allocations: 71.91 kB / 463.6 MB, free: 2.562 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001331/0.2395, allocations: 1.879 MB / 465.4 MB, free: 0.5234 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002191/0.2398, allocations: 23.88 kB / 465.5 MB, free: 0.5 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.111e-05/0.2398, allocations: 19.94 kB / 465.5 MB, free: 492 kB / 330.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.0001705/0.24, allocations: 158.5 kB / 465.6 MB, free: 324 kB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.079e-05/0.24, allocations: 27.72 kB / 465.7 MB, free: 296 kB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006773/0.2407, allocations: 494.1 kB / 466.2 MB, free: 15.79 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.431e-06/0.2407, allocations: 4 kB / 466.2 MB, free: 15.79 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.302e-06/0.2407, allocations: 0 / 466.2 MB, free: 15.79 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0005915/0.2413, allocations: 0.7235 MB / 466.9 MB, free: 14.97 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00114/0.2425, allocations: 0.9378 MB / 467.8 MB, free: 13.97 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.616e-06/0.2425, allocations: 0 / 467.8 MB, free: 13.97 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001927/0.2427, allocations: 47.91 kB / 467.9 MB, free: 13.93 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001714/0.2444, allocations: 336.2 kB / 468.2 MB, free: 13.59 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.054e-05/0.2445, allocations: 8 kB / 468.2 MB, free: 13.59 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0004456/0.2449, allocations: 0.6344 MB / 468.8 MB, free: 12.93 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.512e-06/0.2449, allocations: 4.062 kB / 468.8 MB, free: 12.92 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008465/0.2458, allocations: 0.724 MB / 469.6 MB, free: 12.17 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 7.924e-05/0.2459, allocations: 108.6 kB / 469.7 MB, free: 12.05 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.812e-05/0.2459, allocations: 8 kB / 469.7 MB, free: 12.04 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001969/0.2461, allocations: 16.05 kB / 469.7 MB, free: 12.02 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.792e-05/0.2462, allocations: 15.97 kB / 469.7 MB, free: 12.01 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.013e-05/0.2462, allocations: 12 kB / 469.7 MB, free: 12 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.0001623/0.2464, allocations: 182 kB / 469.9 MB, free: 11.82 MB / 346.7 MB Notification: Performance of sort global known variables: time 1.1e-07/0.2464, allocations: 0 / 469.9 MB, free: 11.82 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.000587/0.247, allocations: 191.9 kB / 470.1 MB, free: 11.63 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.0005494/0.2475, allocations: 275.5 kB / 470.4 MB, free: 11.36 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.0007427/0.2483, allocations: 454 kB / 470.8 MB, free: 10.9 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 2.625e-06/0.2483, allocations: 0.75 kB / 470.8 MB, free: 10.9 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004658/0.2487, allocations: 227.8 kB / 471 MB, free: 10.68 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009024/0.2497, allocations: 172.7 kB / 471.2 MB, free: 10.51 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00123/0.2509, allocations: 0.9821 MB / 472.2 MB, free: 9.5 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000322/0.2512, allocations: 0.7762 MB / 473 MB, free: 8.699 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.035e-05/0.2513, allocations: 31.44 kB / 473 MB, free: 8.668 MB / 346.7 MB Notification: Performance of SimCode: time 2.4e-07/0.2513, allocations: 0 / 473 MB, free: 8.668 MB / 346.7 MB Notification: Performance of Templates: time 0.01021/0.2615, allocations: 8.352 MB / 481.3 MB, free: 328 kB / 346.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