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.001689/0.001689, allocations: 108.7 kB / 18.45 MB, free: 4.594 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001978/0.001978, allocations: 211.8 kB / 19.41 MB, free: 3.645 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 2.511/2.511, allocations: 227.4 MB / 247.6 MB, free: 10.49 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002334/0.002334, allocations: 59.91 kB / 359.4 MB, free: 12.92 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5776/0.58, allocations: 50.55 MB / 409.9 MB, free: 1.582 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Media.Examples.ReferenceAir.DryAir2): time 0.1523/0.7324, allocations: 37.52 MB / 447.5 MB, free: 11.92 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.009822/0.7422, allocations: 4.58 MB / 452 MB, free: 7.328 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008462/0.7432, allocations: 7.938 kB / 452 MB, free: 7.32 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001641/0.7448, allocations: 302.2 kB / 452.3 MB, free: 7.023 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002093/0.747, allocations: 477.3 kB / 452.8 MB, free: 6.555 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.009598/0.7567, allocations: 1.649 MB / 454.5 MB, free: 4.91 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.003277/0.76, allocations: 1.269 MB / 455.7 MB, free: 3.637 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006513/0.7607, allocations: 166.6 kB / 455.9 MB, free: 3.469 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00166/0.7624, allocations: 482.5 kB / 456.4 MB, free: 2.996 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00126/0.7637, allocations: 406.4 kB / 456.8 MB, free: 2.598 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002301/0.7639, allocations: 44 kB / 456.8 MB, free: 2.555 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003568/0.7675, allocations: 0.7493 MB / 457.5 MB, free: 1.805 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003935/0.7679, allocations: 131.6 kB / 457.7 MB, free: 1.676 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0008344/0.7688, allocations: 282.9 kB / 458 MB, free: 1.398 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003574/0.7724, allocations: 1.052 MB / 459 MB, free: 352 kB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 9.006e-06/0.7724, allocations: 0 / 459 MB, free: 352 kB / 366.1 MB Notification: Performance of FrontEnd: time 2.274e-06/0.7724, allocations: 0 / 459 MB, free: 352 kB / 366.1 MB Notification: Performance of Transformations before backend: time 3.213e-05/0.7725, allocations: 0 / 459 MB, free: 352 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.002316/0.7748, allocations: 0.7759 MB / 459.8 MB, free: 15.52 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.787e-05/0.7749, allocations: 12.03 kB / 459.8 MB, free: 15.51 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001092/0.776, allocations: 76.44 kB / 459.9 MB, free: 15.43 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001023/0.777, allocations: 347.4 kB / 460.2 MB, free: 15.05 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.33e-05/0.7771, allocations: 29.38 kB / 460.2 MB, free: 15.03 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001146/0.7772, allocations: 44.28 kB / 460.3 MB, free: 14.98 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001196/0.7784, allocations: 467.7 kB / 460.7 MB, free: 14.48 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.346e-05/0.7785, allocations: 7.938 kB / 460.7 MB, free: 14.47 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.414e-05/0.7786, allocations: 19.98 kB / 460.8 MB, free: 14.45 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.91e-05/0.7786, allocations: 16 kB / 460.8 MB, free: 14.43 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008088/0.7794, allocations: 299.7 kB / 461.1 MB, free: 14.14 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02008/0.7995, allocations: 6.742 MB / 467.8 MB, free: 6.812 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000812/0.8004, allocations: 274.5 kB / 468.1 MB, free: 6.535 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003679/0.8008, allocations: 156.1 kB / 468.2 MB, free: 6.383 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01747/0.8183, allocations: 3.889 MB / 472.1 MB, free: 2.195 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.701e-05/0.8184, allocations: 42.5 kB / 472.2 MB, free: 2.145 MB / 382.1 MB Notification: Performance of pre-optimization done (n=35): time 3.818e-06/0.8184, allocations: 0 / 472.2 MB, free: 2.145 MB / 382.1 MB Notification: Performance of matching and sorting (n=45): time 0.02105/0.8395, allocations: 2.451 MB / 474.6 MB, free: 15.62 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.907e-05/0.8396, allocations: 55.41 kB / 474.7 MB, free: 15.55 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006523/0.8403, allocations: 307.2 kB / 475 MB, free: 15.24 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 6.525e-05/0.8403, allocations: 33.7 kB / 475 MB, free: 15.2 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000254/0.8406, allocations: 224 kB / 475.2 MB, free: 14.98 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002212/0.8409, allocations: 161.6 kB / 475.4 MB, free: 14.82 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002116/0.8411, allocations: 98.16 kB / 475.5 MB, free: 14.71 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0002004/0.8413, allocations: 350.8 kB / 475.8 MB, free: 14.36 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003785/0.8417, allocations: 153.1 kB / 476 MB, free: 14.21 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005163/0.8422, allocations: 271.7 kB / 476.2 MB, free: 13.9 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001058/0.8433, allocations: 472.2 kB / 476.7 MB, free: 13.39 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.017e-06/0.8433, allocations: 4 kB / 476.7 MB, free: 13.38 MB / 398.1 MB Notification: Performance of matching and sorting (n=66) (initialization): time 0.00174/0.8451, allocations: 0.592 MB / 477.3 MB, free: 12.77 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.792e-05/0.8451, allocations: 7.938 kB / 477.3 MB, free: 12.77 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.295e-05/0.8451, allocations: 4 kB / 477.3 MB, free: 12.76 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01252/0.8577, allocations: 1.848 MB / 479.1 MB, free: 10.93 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008748/0.8586, allocations: 107.9 kB / 479.3 MB, free: 10.82 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003549/0.8622, allocations: 2.569 MB / 481.8 MB, free: 8.062 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005377/0.8628, allocations: 12 kB / 481.8 MB, free: 8.051 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.487e-05/0.8629, allocations: 23.98 kB / 481.9 MB, free: 8.027 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.0004278/0.8633, allocations: 181.5 kB / 482 MB, free: 7.84 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001866/0.8635, allocations: 39.53 kB / 482.1 MB, free: 7.801 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002103/0.8656, allocations: 0.8553 MB / 482.9 MB, free: 6.934 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.688e-05/0.8657, allocations: 11.92 kB / 482.9 MB, free: 6.922 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.656e-06/0.8657, allocations: 4 kB / 482.9 MB, free: 6.918 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001779/0.8675, allocations: 0.9572 MB / 483.9 MB, free: 5.883 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003347/0.8709, allocations: 1.486 MB / 485.4 MB, free: 4.336 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.338e-06/0.8709, allocations: 0 / 485.4 MB, free: 4.336 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000475/0.8714, allocations: 75.89 kB / 485.5 MB, free: 4.262 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.005542/0.877, allocations: 0.6256 MB / 486.1 MB, free: 3.629 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001455/0.8772, allocations: 15.94 kB / 486.1 MB, free: 3.613 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001416/0.8786, allocations: 1.277 MB / 487.4 MB, free: 2.285 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.557e-06/0.8787, allocations: 4.031 kB / 487.4 MB, free: 2.281 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002473/0.8811, allocations: 1.221 MB / 488.6 MB, free: 1.035 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000259/0.8814, allocations: 120.5 kB / 488.7 MB, free: 0.8984 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.244e-05/0.8815, allocations: 12.09 kB / 488.7 MB, free: 0.8867 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003426/0.8819, allocations: 11.94 kB / 488.7 MB, free: 0.875 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.082e-05/0.882, allocations: 31.94 kB / 488.8 MB, free: 0.8438 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.39e-05/0.882, allocations: 20 kB / 488.8 MB, free: 0.8242 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0004344/0.8825, allocations: 213.9 kB / 489 MB, free: 0.6133 MB / 398.1 MB Notification: Performance of sort global known variables: time 2.2e-07/0.8825, allocations: 0 / 489 MB, free: 0.6133 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.001325/0.8838, allocations: 235.9 kB / 489.2 MB, free: 392 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.001006/0.8849, allocations: 278.3 kB / 489.5 MB, free: 108 kB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.001981/0.8869, allocations: 0.6986 MB / 490.2 MB, free: 15.39 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 5.521e-06/0.8869, allocations: 4 kB / 490.2 MB, free: 15.39 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001301/0.8882, allocations: 440 kB / 490.6 MB, free: 14.96 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002021/0.8902, allocations: 228.8 kB / 490.9 MB, free: 14.73 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003089/0.8933, allocations: 1.246 MB / 492.1 MB, free: 13.46 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005962/0.894, allocations: 0.8363 MB / 492.9 MB, free: 12.59 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000212/0.8942, allocations: 39.44 kB / 493 MB, free: 12.55 MB / 414.1 MB Notification: Performance of SimCode: time 1.032e-06/0.8942, allocations: 0 / 493 MB, free: 12.55 MB / 414.1 MB Notification: Performance of Templates: time 0.02757/0.9218, allocations: 13.06 MB / 0.4942 GB, free: 15.49 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/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Media/Examples/ReferenceAir/DryAir2/DryAir2.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Media.Examples.ReferenceAir.DryAir2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches