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.0009639/0.000964, allocations: 191.8 kB / 17.37 MB, free: 4.41 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.225/1.225, allocations: 226.6 MB / 244.7 MB, free: 8.203 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007439/0.0007439, allocations: 99.28 kB / 296.8 MB, free: 6.91 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003254/0.0003255, allocations: 4 kB / 356.7 MB, free: 10.93 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2066/0.2069, allocations: 51.3 MB / 408 MB, free: 27.73 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Media.Examples.ReferenceAir.DryAir2): time 0.02213/0.2291, allocations: 34.71 MB / 442.7 MB, free: 8.934 MB / 314.7 MB Notification: Performance of NFInst.instExpressions: time 0.004615/0.2338, allocations: 4.291 MB / 447 MB, free: 4.633 MB / 314.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003427/0.2341, allocations: 4 kB / 447 MB, free: 4.629 MB / 314.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0007566/0.2349, allocations: 222.7 kB / 447.3 MB, free: 4.41 MB / 314.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0008313/0.2357, allocations: 461.6 kB / 447.7 MB, free: 3.957 MB / 314.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.003606/0.2394, allocations: 1.29 MB / 449 MB, free: 2.672 MB / 314.7 MB Notification: Performance of NFFlatten.flatten: time 0.001521/0.2409, allocations: 1.623 MB / 450.6 MB, free: 1.043 MB / 314.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002271/0.2411, allocations: 118.7 kB / 450.7 MB, free: 0.9258 MB / 314.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000493/0.2416, allocations: 406.5 kB / 451.1 MB, free: 0.5273 MB / 314.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004343/0.2421, allocations: 386.5 kB / 451.5 MB, free: 152 kB / 314.7 MB Notification: Performance of NFPackage.collectConstants: time 5.581e-05/0.2421, allocations: 27.94 kB / 451.5 MB, free: 124 kB / 314.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001315/0.2435, allocations: 0.7063 MB / 452.2 MB, free: 15.41 MB / 330.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001206/0.2436, allocations: 107.6 kB / 452.4 MB, free: 15.31 MB / 330.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0002473/0.2438, allocations: 268.8 kB / 452.6 MB, free: 15.04 MB / 330.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0007591/0.2446, allocations: 0.7608 MB / 453.4 MB, free: 14.28 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.238e-06/0.2446, allocations: 0 / 453.4 MB, free: 14.28 MB / 330.7 MB Notification: Performance of FrontEnd: time 1.543e-06/0.2446, allocations: 0 / 453.4 MB, free: 14.28 MB / 330.7 MB Notification: Performance of Transformations before backend: time 6.602e-06/0.2446, allocations: 0 / 453.4 MB, free: 14.28 MB / 330.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.0008768/0.2455, allocations: 0.6863 MB / 454.1 MB, free: 13.54 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.253e-05/0.2456, allocations: 8.031 kB / 454.1 MB, free: 13.54 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004996/0.2461, allocations: 76.34 kB / 454.1 MB, free: 13.46 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003877/0.2465, allocations: 335.5 kB / 454.5 MB, free: 13.09 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.549e-05/0.2465, allocations: 29.38 kB / 454.5 MB, free: 13.07 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.41e-05/0.2466, allocations: 36.38 kB / 454.5 MB, free: 13.03 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006665/0.2472, allocations: 471.6 kB / 455 MB, free: 12.53 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.641e-05/0.2473, allocations: 0 / 455 MB, free: 12.53 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.437e-05/0.2473, allocations: 23.98 kB / 455 MB, free: 12.5 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.003e-05/0.2473, allocations: 12 kB / 455 MB, free: 12.49 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005114/0.2478, allocations: 303.7 kB / 455.3 MB, free: 12.2 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01294/0.2608, allocations: 6.727 MB / 462.1 MB, free: 4.879 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004437/0.2613, allocations: 290.1 kB / 462.3 MB, free: 4.586 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002076/0.2615, allocations: 151 kB / 462.5 MB, free: 4.438 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.009821/0.2713, allocations: 3.873 MB / 466.4 MB, free: 272 kB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.257e-05/0.2714, allocations: 42.55 kB / 466.4 MB, free: 220 kB / 330.7 MB Notification: Performance of pre-optimization done (n=35): time 2.064e-06/0.2714, allocations: 0 / 466.4 MB, free: 220 kB / 330.7 MB Notification: Performance of matching and sorting (n=45): time 0.01099/0.2824, allocations: 2.491 MB / 468.9 MB, free: 13.65 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.19e-05/0.2824, allocations: 55.41 kB / 468.9 MB, free: 13.58 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003226/0.2828, allocations: 303.2 kB / 469.2 MB, free: 13.28 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 3.156e-05/0.2828, allocations: 29.7 kB / 469.3 MB, free: 13.24 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001446/0.283, allocations: 220 kB / 469.5 MB, free: 13.02 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001176/0.2831, allocations: 165.7 kB / 469.6 MB, free: 12.86 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.406e-05/0.2831, allocations: 12 kB / 469.7 MB, free: 12.84 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001364/0.2833, allocations: 354.7 kB / 470 MB, free: 12.49 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000239/0.2835, allocations: 153.1 kB / 470.2 MB, free: 12.34 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003253/0.2838, allocations: 267.7 kB / 470.4 MB, free: 12.03 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005887/0.2844, allocations: 468.2 kB / 470.9 MB, free: 11.52 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.913e-06/0.2844, allocations: 0 / 470.9 MB, free: 11.52 MB / 346.7 MB Notification: Performance of matching and sorting (n=66) (initialization): time 0.001008/0.2855, allocations: 0.5998 MB / 471.5 MB, free: 10.91 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.69e-05/0.2855, allocations: 8 kB / 471.5 MB, free: 10.9 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.565e-06/0.2855, allocations: 4 kB / 471.5 MB, free: 10.89 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.006457/0.292, allocations: 0.7712 MB / 472.3 MB, free: 10.11 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003941/0.2924, allocations: 107.8 kB / 472.4 MB, free: 10.01 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001843/0.2942, allocations: 2.459 MB / 474.8 MB, free: 7.363 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003232/0.2946, allocations: 36.02 kB / 474.9 MB, free: 7.328 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.024e-05/0.2946, allocations: 20 kB / 474.9 MB, free: 7.309 MB / 346.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.0002152/0.2949, allocations: 173.7 kB / 475 MB, free: 7.129 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.197e-05/0.2949, allocations: 43.47 kB / 475.1 MB, free: 7.086 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001136/0.2961, allocations: 0.8553 MB / 475.9 MB, free: 6.215 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.094e-05/0.2961, allocations: 11.98 kB / 476 MB, free: 6.203 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.753e-06/0.2961, allocations: 0 / 476 MB, free: 6.203 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.000933/0.2971, allocations: 0.9613 MB / 476.9 MB, free: 5.168 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001876/0.2989, allocations: 1.489 MB / 478.4 MB, free: 3.613 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.801e-06/0.299, allocations: 4 kB / 478.4 MB, free: 3.609 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002925/0.2993, allocations: 71.91 kB / 478.5 MB, free: 3.539 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003424/0.3027, allocations: 0.6335 MB / 479.1 MB, free: 2.898 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.753e-05/0.3028, allocations: 19.98 kB / 479.1 MB, free: 2.879 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009125/0.3037, allocations: 1.276 MB / 480.4 MB, free: 1.551 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.027e-06/0.3037, allocations: 4.031 kB / 480.4 MB, free: 1.547 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001788/0.3055, allocations: 1.23 MB / 481.6 MB, free: 292 kB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001403/0.3056, allocations: 116.6 kB / 481.8 MB, free: 156 kB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.394e-05/0.3057, allocations: 12 kB / 481.8 MB, free: 144 kB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003241/0.306, allocations: 27.83 kB / 481.8 MB, free: 116 kB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.588e-05/0.3061, allocations: 35.84 kB / 481.8 MB, free: 80 kB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.007e-05/0.3062, allocations: 19.98 kB / 481.8 MB, free: 60 kB / 346.7 MB Notification: Performance of sorting global known variables: time 0.0002688/0.3064, allocations: 205.9 kB / 482 MB, free: 15.86 MB / 362.7 MB Notification: Performance of sort global known variables: time 1.3e-07/0.3064, allocations: 0 / 482 MB, free: 15.86 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0008829/0.3073, allocations: 235.9 kB / 482.3 MB, free: 15.63 MB / 362.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.0005952/0.3079, allocations: 273 kB / 482.5 MB, free: 15.36 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.001118/0.3091, allocations: 0.6871 MB / 483.2 MB, free: 14.66 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 2.896e-06/0.3091, allocations: 3.938 kB / 483.2 MB, free: 14.65 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0008483/0.3099, allocations: 428.2 kB / 483.7 MB, free: 14.23 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001189/0.3111, allocations: 231.6 kB / 483.9 MB, free: 14.02 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001818/0.313, allocations: 1.521 MB / 485.4 MB, free: 12.47 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003477/0.3133, allocations: 0.8327 MB / 486.2 MB, free: 11.61 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001005/0.3134, allocations: 47.42 kB / 486.3 MB, free: 11.56 MB / 362.7 MB Notification: Performance of SimCode: time 4.91e-07/0.3135, allocations: 0 / 486.3 MB, free: 11.56 MB / 362.7 MB Notification: Performance of Templates: time 0.0143/0.3278, allocations: 12.86 MB / 499.1 MB, free: 14.7 MB / 378.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/jenkins/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