Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Media.Examples.ReferenceAir.DryAir2.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) 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) 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) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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_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_Modelica.Media.Examples.ReferenceAir.DryAir2") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001502/0.001503, allocations: 121.6 kB / 17.79 MB, free: 5.258 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001789/0.001789, allocations: 203.9 kB / 18.73 MB, free: 4.32 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.299/1.299, allocations: 227.4 MB / 246.9 MB, free: 10.52 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001094/0.001094, allocations: 60.14 kB / 358.7 MB, free: 12.94 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.24/0.2411, allocations: 50.56 MB / 409.3 MB, free: 1.605 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Media.Examples.ReferenceAir.DryAir2): time 0.032/0.2731, allocations: 37.51 MB / 446.8 MB, free: 11.95 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.005054/0.2782, allocations: 4.58 MB / 451.4 MB, free: 7.355 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002192/0.2785, allocations: 7.938 kB / 451.4 MB, free: 7.348 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000795/0.2793, allocations: 290.2 kB / 451.7 MB, free: 7.062 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0007389/0.28, allocations: 485.3 kB / 452.1 MB, free: 6.586 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004398/0.2844, allocations: 1.645 MB / 453.8 MB, free: 4.945 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.001254/0.2857, allocations: 1.276 MB / 455 MB, free: 3.664 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002391/0.286, allocations: 162.6 kB / 455.2 MB, free: 3.5 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005108/0.2865, allocations: 478.5 kB / 455.7 MB, free: 3.031 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004535/0.2869, allocations: 402.4 kB / 456.1 MB, free: 2.637 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 6.997e-05/0.287, allocations: 52 kB / 456.1 MB, free: 2.586 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001275/0.2883, allocations: 0.757 MB / 456.9 MB, free: 1.828 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001227/0.2884, allocations: 135.6 kB / 457 MB, free: 1.695 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002337/0.2887, allocations: 274.9 kB / 457.3 MB, free: 1.426 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001127/0.2898, allocations: 1.048 MB / 458.3 MB, free: 384 kB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.847e-06/0.2898, allocations: 0 / 458.3 MB, free: 384 kB / 366.1 MB Notification: Performance of FrontEnd: time 1.223e-06/0.2898, allocations: 0 / 458.3 MB, free: 384 kB / 366.1 MB Notification: Performance of Transformations before backend: time 7.514e-06/0.2898, allocations: 0 / 458.3 MB, free: 384 kB / 366.1 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.001037/0.2909, allocations: 0.7799 MB / 459.1 MB, free: 15.54 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.536e-05/0.2909, allocations: 12.03 kB / 459.1 MB, free: 15.53 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005331/0.2915, allocations: 72.44 kB / 459.2 MB, free: 15.46 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004962/0.292, allocations: 343.3 kB / 459.5 MB, free: 15.09 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.308e-05/0.292, allocations: 29.38 kB / 459.6 MB, free: 15.06 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.946e-05/0.2921, allocations: 48.28 kB / 459.6 MB, free: 15.02 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006204/0.2927, allocations: 467.7 kB / 460.1 MB, free: 14.51 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.913e-05/0.2927, allocations: 4 kB / 460.1 MB, free: 14.5 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.4e-05/0.2928, allocations: 19.98 kB / 460.1 MB, free: 14.48 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.094e-05/0.2928, allocations: 15.94 kB / 460.1 MB, free: 14.47 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004371/0.2932, allocations: 303.7 kB / 460.4 MB, free: 14.18 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01307/0.3063, allocations: 6.742 MB / 467.1 MB, free: 6.844 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004452/0.3068, allocations: 274.5 kB / 467.4 MB, free: 6.566 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002124/0.307, allocations: 148.8 kB / 467.5 MB, free: 6.418 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01066/0.3177, allocations: 3.9 MB / 471.4 MB, free: 2.219 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.753e-05/0.3177, allocations: 34.56 kB / 471.5 MB, free: 2.176 MB / 382.1 MB Notification: Performance of pre-optimization done (n=35): time 2.746e-06/0.3177, allocations: 0 / 471.5 MB, free: 2.176 MB / 382.1 MB Notification: Performance of matching and sorting (n=45): time 0.01185/0.3296, allocations: 2.451 MB / 473.9 MB, free: 15.64 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.692e-05/0.3296, allocations: 59.34 kB / 474 MB, free: 15.57 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002983/0.33, allocations: 303.2 kB / 474.3 MB, free: 15.27 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 3.29e-05/0.33, allocations: 37.7 kB / 474.3 MB, free: 15.23 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001288/0.3301, allocations: 220 kB / 474.5 MB, free: 15 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001045/0.3302, allocations: 161.6 kB / 474.7 MB, free: 14.85 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001244/0.3304, allocations: 102.2 kB / 474.8 MB, free: 14.74 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001126/0.3305, allocations: 346.8 kB / 475.1 MB, free: 14.39 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000235/0.3307, allocations: 153.1 kB / 475.3 MB, free: 14.25 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003137/0.3311, allocations: 275.7 kB / 475.6 MB, free: 13.93 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005892/0.3317, allocations: 472.2 kB / 476 MB, free: 13.41 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.913e-06/0.3317, allocations: 0 / 476 MB, free: 13.41 MB / 398.1 MB Notification: Performance of matching and sorting (n=66) (initialization): time 0.001006/0.3327, allocations: 0.5878 MB / 476.6 MB, free: 12.81 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.807e-05/0.3327, allocations: 11.88 kB / 476.6 MB, free: 12.8 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.446e-06/0.3327, allocations: 4 kB / 476.6 MB, free: 12.8 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.008444/0.3412, allocations: 1.848 MB / 478.5 MB, free: 10.96 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003971/0.3416, allocations: 107.8 kB / 478.6 MB, free: 10.86 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001916/0.3435, allocations: 2.569 MB / 481.1 MB, free: 8.098 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002575/0.3438, allocations: 19.94 kB / 481.2 MB, free: 8.078 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.368e-05/0.3438, allocations: 23.98 kB / 481.2 MB, free: 8.055 MB / 398.1 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 (not torn): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 3 systems {(2,1), (2,1), (1,1)} Notification: Performance of prepare postOptimizeDAE: time 0.0001989/0.344, allocations: 189.5 kB / 481.4 MB, free: 7.859 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.838e-05/0.3441, allocations: 39.53 kB / 481.4 MB, free: 7.82 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001097/0.3452, allocations: 0.8475 MB / 482.3 MB, free: 6.961 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.074e-05/0.3452, allocations: 7.984 kB / 482.3 MB, free: 6.953 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.743e-06/0.3452, allocations: 0 / 482.3 MB, free: 6.953 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0009138/0.3462, allocations: 0.9612 MB / 483.2 MB, free: 5.914 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001772/0.3479, allocations: 1.486 MB / 484.7 MB, free: 4.367 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.783e-06/0.348, allocations: 4 kB / 484.7 MB, free: 4.363 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003087/0.3483, allocations: 71.89 kB / 484.8 MB, free: 4.293 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003479/0.3518, allocations: 0.6179 MB / 485.4 MB, free: 3.668 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.306e-05/0.3518, allocations: 19.94 kB / 485.4 MB, free: 3.648 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008849/0.3527, allocations: 1.28 MB / 486.7 MB, free: 2.316 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.236e-06/0.3527, allocations: 4.031 kB / 486.7 MB, free: 2.312 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001408/0.3541, allocations: 1.217 MB / 487.9 MB, free: 1.07 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.404e-05/0.3542, allocations: 120.5 kB / 488 MB, free: 0.9336 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.338e-05/0.3543, allocations: 16.06 kB / 488.1 MB, free: 0.918 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000232/0.3545, allocations: 7.938 kB / 488.1 MB, free: 0.9102 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.48e-05/0.3546, allocations: 32.23 kB / 488.1 MB, free: 0.8789 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.916e-05/0.3546, allocations: 16 kB / 488.1 MB, free: 0.8633 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0001942/0.3548, allocations: 209.9 kB / 488.3 MB, free: 0.6562 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.3548, allocations: 0 / 488.3 MB, free: 0.6562 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0007043/0.3555, allocations: 235.9 kB / 488.5 MB, free: 436 kB / 398.1 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 (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 2 systems {(1,2), (1,2)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0005574/0.3561, allocations: 290.9 kB / 488.8 MB, free: 136 kB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.001197/0.3573, allocations: 0.6985 MB / 489.5 MB, free: 15.42 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 3.066e-06/0.3573, allocations: 0 / 489.5 MB, free: 15.42 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008841/0.3582, allocations: 444.2 kB / 490 MB, free: 14.98 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00113/0.3594, allocations: 228.8 kB / 490.2 MB, free: 14.76 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001702/0.3611, allocations: 1.218 MB / 491.4 MB, free: 13.52 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003402/0.3614, allocations: 0.8324 MB / 492.2 MB, free: 12.66 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0002333/0.3617, allocations: 68.34 kB / 492.3 MB, free: 12.59 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.657e-05/0.3618, allocations: 47.31 kB / 492.3 MB, free: 12.54 MB / 414.1 MB Notification: Performance of SimCode: time 2.71e-07/0.3618, allocations: 4 kB / 492.4 MB, free: 12.54 MB / 414.1 MB Notification: Performance of Templates: time 0.0179/0.3797, allocations: 12.76 MB / 0.4933 GB, free: 15.82 MB / 430.1 MB make -j1 -f Modelica_trunk_Modelica.Media.Examples.ReferenceAir.DryAir2.makefile (rm -f Modelica_trunk_Modelica.Media.Examples.ReferenceAir.DryAir2.pipe ; mkfifo Modelica_trunk_Modelica.Media.Examples.ReferenceAir.DryAir2.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Media.Examples.ReferenceAir.DryAir2.pipe >> ../files/Modelica_trunk_Modelica.Media.Examples.ReferenceAir.DryAir2.sim & ./Modelica_trunk_Modelica.Media.Examples.ReferenceAir.DryAir2 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Media.Examples.ReferenceAir.DryAir2.pipe 2>&1) diffSimulationResults("Modelica_trunk_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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Media.Examples.ReferenceAir.DryAir2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches