Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Media.Examples.ReferenceAir.DryAir2.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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_4.0.0_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_4.0.0_Modelica.Media.Examples.ReferenceAir.DryAir2") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001021/0.001021, allocations: 115.1 kB / 16.63 MB, free: 6.812 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.000986/0.000986, allocations: 186 kB / 17.55 MB, free: 5.934 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.367/1.367, allocations: 222.9 MB / 241.2 MB, free: 15.43 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0009152/0.0009152, allocations: 42.64 kB / 300.1 MB, free: 6.141 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07937/0.0803, allocations: 49.45 MB / 349.6 MB, free: 4.68 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Media.Examples.ReferenceAir.DryAir2): time 0.1764/0.2568, allocations: 37.29 MB / 386.9 MB, free: 6.836 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.004086/0.2609, allocations: 4.545 MB / 391.4 MB, free: 3.926 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001968/0.2611, allocations: 7.344 kB / 391.4 MB, free: 3.922 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006905/0.2618, allocations: 265.4 kB / 391.7 MB, free: 3.773 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006829/0.2626, allocations: 461.1 kB / 392.1 MB, free: 3.5 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003883/0.2664, allocations: 1.455 MB / 393.6 MB, free: 2.762 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.001227/0.2677, allocations: 1.268 MB / 394.8 MB, free: 2.18 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002365/0.2679, allocations: 184.3 kB / 395 MB, free: 2.094 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004917/0.2684, allocations: 467.9 kB / 395.5 MB, free: 1.902 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003833/0.2688, allocations: 426.6 kB / 395.9 MB, free: 1.727 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 6.36e-05/0.2689, allocations: 45.62 kB / 395.9 MB, free: 1.727 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001282/0.2702, allocations: 0.7651 MB / 396.7 MB, free: 1.52 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001153/0.2703, allocations: 131 kB / 396.8 MB, free: 1.449 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002295/0.2705, allocations: 287 kB / 397.1 MB, free: 1.301 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00103/0.2716, allocations: 1.039 MB / 398.2 MB, free: 0.9375 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.657e-06/0.2716, allocations: 1.094 kB / 398.2 MB, free: 0.9375 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.503e-06/0.2716, allocations: 0 / 398.2 MB, free: 0.9375 MB / 302.1 MB Notification: Performance of Transformations before backend: time 8.035e-06/0.2716, allocations: 0 / 398.2 MB, free: 0.9375 MB / 302.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.0008856/0.2725, allocations: 0.7793 MB / 398.9 MB, free: 292 kB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.144e-05/0.2725, allocations: 9.469 kB / 398.9 MB, free: 292 kB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005252/0.2731, allocations: 82.28 kB / 399 MB, free: 256 kB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003439/0.2734, allocations: 337.1 kB / 399.4 MB, free: 15.93 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.994e-05/0.2735, allocations: 29.66 kB / 399.4 MB, free: 15.91 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.34e-05/0.2735, allocations: 41.97 kB / 399.4 MB, free: 15.9 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006392/0.2742, allocations: 470.2 kB / 399.9 MB, free: 15.56 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.882e-05/0.2742, allocations: 5.062 kB / 399.9 MB, free: 15.55 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.41e-05/0.2742, allocations: 18.16 kB / 399.9 MB, free: 15.54 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.111e-05/0.2743, allocations: 13.91 kB / 399.9 MB, free: 15.54 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004388/0.2747, allocations: 298.9 kB / 400.2 MB, free: 15.4 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01338/0.2881, allocations: 6.743 MB / 407 MB, free: 9.816 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004546/0.2886, allocations: 264.5 kB / 407.2 MB, free: 9.676 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002087/0.2888, allocations: 158.9 kB / 407.4 MB, free: 9.598 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01042/0.2992, allocations: 3.883 MB / 411.2 MB, free: 6.871 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.705e-05/0.2993, allocations: 43.88 kB / 411.3 MB, free: 6.824 MB / 318.1 MB Notification: Performance of pre-optimization done (n=35): time 2.305e-06/0.2993, allocations: 0 / 411.3 MB, free: 6.824 MB / 318.1 MB Notification: Performance of matching and sorting (n=45): time 0.01198/0.3113, allocations: 2.462 MB / 413.8 MB, free: 4.383 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.782e-05/0.3113, allocations: 63.28 kB / 413.8 MB, free: 4.309 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003283/0.3117, allocations: 307.2 kB / 414.1 MB, free: 4.004 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 4.482e-05/0.3117, allocations: 33.7 kB / 414.1 MB, free: 3.965 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001353/0.3119, allocations: 220 kB / 414.4 MB, free: 3.746 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001161/0.312, allocations: 161.7 kB / 414.5 MB, free: 3.586 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001411/0.3121, allocations: 102.1 kB / 414.6 MB, free: 3.477 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001185/0.3123, allocations: 346.8 kB / 415 MB, free: 3.129 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002432/0.3125, allocations: 149.1 kB / 415.1 MB, free: 2.984 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00032/0.3128, allocations: 275.7 kB / 415.4 MB, free: 2.668 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006101/0.3135, allocations: 480.2 kB / 415.8 MB, free: 2.148 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.164e-06/0.3135, allocations: 0 / 415.8 MB, free: 2.148 MB / 318.1 MB Notification: Performance of matching and sorting (n=66) (initialization): time 0.001022/0.3145, allocations: 0.5917 MB / 416.4 MB, free: 1.539 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.958e-05/0.3145, allocations: 7.938 kB / 416.4 MB, free: 1.531 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.768e-06/0.3145, allocations: 4.469 kB / 416.4 MB, free: 1.527 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.008171/0.3227, allocations: 1.846 MB / 418.3 MB, free: 15.69 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000413/0.3232, allocations: 107.9 kB / 418.4 MB, free: 15.59 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001935/0.3251, allocations: 2.565 MB / 421 MB, free: 12.82 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004134/0.3255, allocations: 36.05 kB / 421 MB, free: 12.79 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.885e-05/0.3256, allocations: 24 kB / 421 MB, free: 12.77 MB / 334.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.0002186/0.3258, allocations: 185.5 kB / 421.2 MB, free: 12.57 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.512e-05/0.3259, allocations: 39.53 kB / 421.2 MB, free: 12.54 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00117/0.3271, allocations: 0.859 MB / 422.1 MB, free: 11.66 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.748e-06/0.3271, allocations: 4 kB / 422.1 MB, free: 11.66 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.244e-06/0.3271, allocations: 0 / 422.1 MB, free: 11.66 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0009536/0.3281, allocations: 0.9574 MB / 423.1 MB, free: 10.62 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001918/0.33, allocations: 1.485 MB / 424.5 MB, free: 9.078 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.712e-06/0.33, allocations: 4 kB / 424.6 MB, free: 9.074 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003149/0.3303, allocations: 75.89 kB / 424.6 MB, free: 9 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003763/0.3341, allocations: 0.6219 MB / 425.2 MB, free: 8.371 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.426e-05/0.3342, allocations: 19.92 kB / 425.3 MB, free: 8.352 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009312/0.3351, allocations: 1.288 MB / 426.6 MB, free: 7.012 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.908e-06/0.3351, allocations: 4.031 kB / 426.6 MB, free: 7.008 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001469/0.3366, allocations: 1.223 MB / 427.8 MB, free: 5.762 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001451/0.3368, allocations: 124.5 kB / 427.9 MB, free: 5.621 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.124e-05/0.3368, allocations: 8 kB / 427.9 MB, free: 5.613 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003188/0.3372, allocations: 23.92 kB / 427.9 MB, free: 5.59 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.528e-05/0.3372, allocations: 35.91 kB / 428 MB, free: 5.555 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.566e-05/0.3373, allocations: 19.98 kB / 428 MB, free: 5.535 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0002172/0.3375, allocations: 209.9 kB / 428.2 MB, free: 5.324 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.483e-06/0.3375, allocations: 0 / 428.2 MB, free: 5.324 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0008147/0.3383, allocations: 235.9 kB / 428.4 MB, free: 5.094 MB / 334.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.0007037/0.339, allocations: 270.9 kB / 428.7 MB, free: 4.816 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.001394/0.3404, allocations: 0.7104 MB / 429.4 MB, free: 4.094 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 4.689e-06/0.3405, allocations: 4 kB / 429.4 MB, free: 4.09 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009656/0.3414, allocations: 440.2 kB / 429.8 MB, free: 3.66 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001289/0.3427, allocations: 247.2 kB / 430.1 MB, free: 3.426 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002004/0.3447, allocations: 1.425 MB / 431.5 MB, free: 1.977 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003653/0.3451, allocations: 0.8324 MB / 432.3 MB, free: 1.121 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.000326/0.3455, allocations: 72.34 kB / 432.4 MB, free: 1.047 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.402e-05/0.3455, allocations: 43.42 kB / 432.4 MB, free: 1.004 MB / 334.1 MB Notification: Performance of SimCode: time 3.81e-07/0.3456, allocations: 4 kB / 432.4 MB, free: 1 MB / 334.1 MB Notification: Performance of Templates: time 0.01982/0.3654, allocations: 12.6 MB / 445 MB, free: 4.492 MB / 350.1 MB make -j1 -f Modelica_4.0.0_Modelica.Media.Examples.ReferenceAir.DryAir2.makefile (rm -f Modelica_4.0.0_Modelica.Media.Examples.ReferenceAir.DryAir2.pipe ; mkfifo Modelica_4.0.0_Modelica.Media.Examples.ReferenceAir.DryAir2.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Media.Examples.ReferenceAir.DryAir2.pipe >> ../files/Modelica_4.0.0_Modelica.Media.Examples.ReferenceAir.DryAir2.sim & ./Modelica_4.0.0_Modelica.Media.Examples.ReferenceAir.DryAir2 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Media.Examples.ReferenceAir.DryAir2.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_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_4.0.0_Modelica.Media.Examples.ReferenceAir.DryAir2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches