Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Media.Examples.ReferenceAir.DryAir2.conf.json loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex 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(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.000863/0.000863, allocations: 183.1 kB / 16.71 MB, free: 4.969 MB / 13.93 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.197/1.197, allocations: 225.7 MB / 243.2 MB, free: 8.527 MB / 202.7 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0007768/0.0007769, allocations: 94.59 kB / 294.4 MB, free: 9.527 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002265/0.0002265, allocations: 11.92 kB / 354.1 MB, free: 13.67 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1776/0.1778, allocations: 50.42 MB / 404.6 MB, free: 31.34 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Media.Examples.ReferenceAir.DryAir2): time 0.02802/0.2059, allocations: 47.51 MB / 452.1 MB, free: 12.79 MB / 330.7 MB Notification: Performance of NFInst.instExpressions: time 0.005536/0.2115, allocations: 6.445 MB / 458.5 MB, free: 5.832 MB / 330.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003601/0.2119, allocations: 7.938 kB / 458.5 MB, free: 5.824 MB / 330.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0007091/0.2126, allocations: 246.7 kB / 458.8 MB, free: 5.582 MB / 330.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0007473/0.2133, allocations: 481.6 kB / 459.2 MB, free: 5.109 MB / 330.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.00361/0.217, allocations: 1.383 MB / 460.6 MB, free: 3.723 MB / 330.7 MB Notification: Performance of NFFlatten.flatten: time 0.00164/0.2186, allocations: 1.955 MB / 462.6 MB, free: 1.762 MB / 330.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000207/0.2188, allocations: 118.6 kB / 462.7 MB, free: 1.645 MB / 330.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004731/0.2193, allocations: 410.5 kB / 463.1 MB, free: 1.242 MB / 330.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004417/0.2198, allocations: 422.3 kB / 463.5 MB, free: 0.8281 MB / 330.7 MB Notification: Performance of NFPackage.collectConstants: time 5.539e-05/0.2198, allocations: 24 kB / 463.5 MB, free: 0.8047 MB / 330.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001224/0.2211, allocations: 0.6945 MB / 464.2 MB, free: 112 kB / 330.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001118/0.2212, allocations: 103.6 kB / 464.3 MB, free: 8 kB / 330.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0002584/0.2214, allocations: 272.8 kB / 464.6 MB, free: 15.73 MB / 346.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001081/0.2225, allocations: 1.028 MB / 465.6 MB, free: 14.7 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.698e-06/0.2225, allocations: 0 / 465.6 MB, free: 14.7 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.633e-06/0.2226, allocations: 0 / 465.6 MB, free: 14.7 MB / 346.7 MB Notification: Performance of Transformations before backend: time 6.533e-06/0.2226, allocations: 0 / 465.6 MB, free: 14.7 MB / 346.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.0009043/0.2235, allocations: 0.6823 MB / 466.3 MB, free: 13.97 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.228e-05/0.2235, allocations: 12.03 kB / 466.3 MB, free: 13.96 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005237/0.224, allocations: 80.34 kB / 466.4 MB, free: 13.88 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003836/0.2244, allocations: 339.4 kB / 466.7 MB, free: 13.51 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.043e-05/0.2245, allocations: 37.3 kB / 466.8 MB, free: 13.48 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.452e-05/0.2245, allocations: 40.38 kB / 466.8 MB, free: 13.44 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006816/0.2252, allocations: 467.7 kB / 467.3 MB, free: 12.94 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.742e-05/0.2253, allocations: 0 / 467.3 MB, free: 12.94 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.843e-05/0.2253, allocations: 16 kB / 467.3 MB, free: 12.92 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.11e-05/0.2253, allocations: 12 kB / 467.3 MB, free: 12.91 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004389/0.2258, allocations: 303.7 kB / 467.6 MB, free: 12.61 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01246/0.2382, allocations: 6.742 MB / 474.3 MB, free: 5.281 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004237/0.2387, allocations: 274.4 kB / 474.6 MB, free: 5.004 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002145/0.2389, allocations: 154.1 kB / 474.7 MB, free: 4.852 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.009892/0.2488, allocations: 3.869 MB / 478.6 MB, free: 0.6836 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.613e-05/0.2489, allocations: 38.56 kB / 478.6 MB, free: 0.6367 MB / 346.7 MB Notification: Performance of pre-optimization done (n=35): time 2.134e-06/0.2489, allocations: 0 / 478.6 MB, free: 0.6367 MB / 346.7 MB Notification: Performance of matching and sorting (n=45): time 0.01071/0.2596, allocations: 2.482 MB / 481.1 MB, free: 14.07 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.04e-05/0.2596, allocations: 59.41 kB / 481.2 MB, free: 14 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000297/0.26, allocations: 299.2 kB / 481.5 MB, free: 13.71 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 3.105e-05/0.26, allocations: 45.58 kB / 481.5 MB, free: 13.66 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001241/0.2601, allocations: 220 kB / 481.7 MB, free: 13.43 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001005/0.2602, allocations: 161.7 kB / 481.9 MB, free: 13.27 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.029e-05/0.2603, allocations: 12 kB / 481.9 MB, free: 13.26 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001052/0.2604, allocations: 346.8 kB / 482.2 MB, free: 12.91 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002364/0.2606, allocations: 149.1 kB / 482.4 MB, free: 12.77 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003102/0.2609, allocations: 279.7 kB / 482.7 MB, free: 12.45 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005477/0.2615, allocations: 464.2 kB / 483.1 MB, free: 11.95 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.813e-06/0.2615, allocations: 3.938 kB / 483.1 MB, free: 11.95 MB / 362.7 MB Notification: Performance of matching and sorting (n=66) (initialization): time 0.0009465/0.2624, allocations: 0.5916 MB / 483.7 MB, free: 11.34 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.441e-05/0.2625, allocations: 4 kB / 483.7 MB, free: 11.33 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.518e-06/0.2625, allocations: 4 kB / 483.7 MB, free: 11.33 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.006109/0.2686, allocations: 0.7756 MB / 484.5 MB, free: 10.54 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003728/0.269, allocations: 115.8 kB / 484.6 MB, free: 10.43 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001679/0.2707, allocations: 2.467 MB / 487.1 MB, free: 7.773 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003055/0.271, allocations: 31.89 kB / 487.1 MB, free: 7.742 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.627e-05/0.271, allocations: 20 kB / 487.1 MB, free: 7.723 MB / 362.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 (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.0001996/0.2713, allocations: 181.7 kB / 487.3 MB, free: 7.535 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.691e-05/0.2713, allocations: 43.47 kB / 487.4 MB, free: 7.492 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001074/0.2724, allocations: 0.8515 MB / 488.2 MB, free: 6.625 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.099e-05/0.2724, allocations: 8 kB / 488.2 MB, free: 6.617 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.794e-06/0.2724, allocations: 0 / 488.2 MB, free: 6.617 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0009179/0.2734, allocations: 0.9611 MB / 489.2 MB, free: 5.578 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001782/0.2752, allocations: 1.489 MB / 490.7 MB, free: 4.027 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.879e-06/0.2752, allocations: 0 / 490.7 MB, free: 4.027 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003071/0.2755, allocations: 79.89 kB / 490.7 MB, free: 3.949 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00321/0.2787, allocations: 0.6335 MB / 491.4 MB, free: 3.309 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.135e-05/0.2788, allocations: 16 kB / 491.4 MB, free: 3.293 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008301/0.2796, allocations: 1.284 MB / 492.7 MB, free: 1.957 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.362e-06/0.2796, allocations: 3.938 kB / 492.7 MB, free: 1.953 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001407/0.281, allocations: 1.219 MB / 493.9 MB, free: 0.7109 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001033/0.2811, allocations: 120.6 kB / 494 MB, free: 0.5742 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.478e-05/0.2812, allocations: 16.06 kB / 494 MB, free: 0.5586 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002667/0.2815, allocations: 19.89 kB / 494 MB, free: 0.5391 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.248e-05/0.2815, allocations: 39.83 kB / 494.1 MB, free: 0.5 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.034e-05/0.2816, allocations: 16 kB / 494.1 MB, free: 496 kB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0001907/0.2818, allocations: 209.9 kB / 494.3 MB, free: 280 kB / 362.7 MB Notification: Performance of sort global known variables: time 1.6e-07/0.2818, allocations: 0 / 494.3 MB, free: 280 kB / 362.7 MB Notification: Performance of remove unused functions: time 0.000665/0.2824, allocations: 235.9 kB / 494.5 MB, free: 44 kB / 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 (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.0005456/0.283, allocations: 283 kB / 494.8 MB, free: 15.75 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.001081/0.2841, allocations: 0.687 MB / 495.5 MB, free: 15.05 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.735e-06/0.2841, allocations: 0 / 495.5 MB, free: 15.05 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0008374/0.2849, allocations: 436.1 kB / 495.9 MB, free: 14.63 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00116/0.2861, allocations: 229.2 kB / 496.1 MB, free: 14.41 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001741/0.2879, allocations: 1.512 MB / 497.7 MB, free: 12.88 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003249/0.2882, allocations: 0.8366 MB / 498.5 MB, free: 12.01 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0002851/0.2885, allocations: 72.33 kB / 498.6 MB, free: 11.94 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.58e-05/0.2886, allocations: 35.44 kB / 498.6 MB, free: 11.9 MB / 378.7 MB Notification: Performance of SimCode: time 3.41e-07/0.2886, allocations: 3.938 kB / 498.6 MB, free: 11.9 MB / 378.7 MB Notification: Performance of Templates: time 0.1463/0.4349, allocations: 12.11 MB / 0.4987 GB, free: 104.5 MB / 378.7 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","../files/Modelica_4.0.0_Modelica.Media.Examples.ReferenceAir.DryAir2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches