Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Media.Examples.ReferenceAir.MoistAir2.conf.json loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Using package Modelica with version trunk (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex trunk/package.mo) Running command: translateModel(Modelica.Media.Examples.ReferenceAir.MoistAir2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|volume.medium.T|volume.medium.Xi.1.|volume.medium.p|volume1.medium.T|volume1.medium.Xi.1.|volume1.medium.p",fileNamePrefix="Modelica_trunk_Modelica.Media.Examples.ReferenceAir.MoistAir2") translateModel(Modelica.Media.Examples.ReferenceAir.MoistAir2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|volume.medium.T|volume.medium.Xi.1.|volume.medium.p|volume1.medium.T|volume1.medium.Xi.1.|volume1.medium.p",fileNamePrefix="Modelica_trunk_Modelica.Media.Examples.ReferenceAir.MoistAir2") Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001451/0.001451, allocations: 192.1 kB / 17.43 MB, free: 4.398 MB / 13.93 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.318/1.318, allocations: 229.5 MB / 247.7 MB, free: 6.324 MB / 202.7 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.000717/0.0007173, allocations: 87.31 kB / 299.8 MB, free: 5.359 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0001992/0.0001993, allocations: 8 kB / 360.6 MB, free: 8.496 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.18/0.1802, allocations: 51.42 MB / 412 MB, free: 25.92 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Media.Examples.ReferenceAir.MoistAir2): time 0.0585/0.2388, allocations: 78.7 MB / 490.7 MB, free: 7.305 MB / 362.7 MB Notification: Performance of NFInst.instExpressions: time 0.006607/0.2454, allocations: 6.962 MB / 497.7 MB, free: 15.92 MB / 378.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003485/0.2458, allocations: 8 kB / 497.7 MB, free: 15.91 MB / 378.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0008568/0.2467, allocations: 310.5 kB / 498 MB, free: 15.61 MB / 378.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0007966/0.2475, allocations: 0.4897 MB / 498.5 MB, free: 15.12 MB / 378.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.01529/0.2628, allocations: 6.701 MB / 0.4934 GB, free: 8.289 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 0.002229/0.265, allocations: 2.304 MB / 0.4956 GB, free: 5.977 MB / 378.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000298/0.2653, allocations: 177.4 kB / 0.4958 GB, free: 5.797 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008701/0.2662, allocations: 0.5449 MB / 0.4963 GB, free: 5.25 MB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006526/0.2669, allocations: 0.5683 MB / 0.4969 GB, free: 4.68 MB / 378.7 MB Notification: Performance of NFPackage.collectConstants: time 8.867e-05/0.267, allocations: 36 kB / 0.4969 GB, free: 4.645 MB / 378.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.1981/0.4651, allocations: 10.09 MB / 0.5068 GB, free: 32.18 MB / 378.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0004125/0.4656, allocations: 263.2 kB / 0.507 GB, free: 32.18 MB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 0.00061/0.4662, allocations: 415.8 kB / 0.5074 GB, free: 32.14 MB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 0.01255/0.4787, allocations: 6.026 MB / 0.5133 GB, free: 32.07 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 6.081e-06/0.4788, allocations: 0 / 0.5133 GB, free: 32.07 MB / 378.7 MB Notification: Performance of FrontEnd: time 2.164e-06/0.4788, allocations: 0.8438 kB / 0.5133 GB, free: 32.07 MB / 378.7 MB Notification: Performance of Transformations before backend: time 1.06e-05/0.4788, allocations: 0 / 0.5133 GB, free: 32.07 MB / 378.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 154 * Number of variables: 154 Notification: Performance of Generate backend data structure: time 0.003441/0.4823, allocations: 1.411 MB / 0.5147 GB, free: 31.24 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.595e-05/0.4823, allocations: 9.719 kB / 0.5147 GB, free: 31.24 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003698/0.4827, allocations: 91.17 kB / 0.5148 GB, free: 31.21 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004701/0.4832, allocations: 432.1 kB / 0.5152 GB, free: 30.96 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.303e-05/0.4832, allocations: 50.41 kB / 0.5152 GB, free: 30.96 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.27e-05/0.4833, allocations: 64.09 kB / 0.5153 GB, free: 30.96 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001466/0.4848, allocations: 0.8008 MB / 0.5161 GB, free: 30.91 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.182e-05/0.4848, allocations: 3.562 kB / 0.5161 GB, free: 30.91 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.876e-05/0.4849, allocations: 31.16 kB / 0.5161 GB, free: 30.91 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.097e-05/0.4849, allocations: 17.72 kB / 0.5161 GB, free: 30.91 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001523/0.4864, allocations: 1.026 MB / 0.5171 GB, free: 30.91 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01279/0.4992, allocations: 12.83 MB / 0.5297 GB, free: 19.87 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001488/0.5007, allocations: 0.7489 MB / 0.5304 GB, free: 19.83 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004878/0.5012, allocations: 402.2 kB / 0.5308 GB, free: 19.82 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01086/0.5121, allocations: 12.3 MB / 0.5428 GB, free: 7.25 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.409e-05/0.5122, allocations: 44.94 kB / 0.5428 GB, free: 7.211 MB / 378.7 MB Notification: Performance of pre-optimization done (n=78): time 2.414e-06/0.5122, allocations: 0 / 0.5428 GB, free: 7.211 MB / 378.7 MB Notification: Performance of matching and sorting (n=88): time 0.008375/0.5206, allocations: 3.42 MB / 0.5462 GB, free: 6.18 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.481e-05/0.5206, allocations: 61.3 kB / 0.5462 GB, free: 6.117 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003302/0.5209, allocations: 353.1 kB / 0.5466 GB, free: 5.973 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 5.204e-05/0.521, allocations: 41.05 kB / 0.5466 GB, free: 5.941 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000113/0.5211, allocations: 241.1 kB / 0.5468 GB, free: 5.777 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001614/0.5213, allocations: 310.9 kB / 0.5471 GB, free: 5.551 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.021e-05/0.5213, allocations: 17.78 kB / 0.5471 GB, free: 5.551 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0003115/0.5217, allocations: 360.8 kB / 0.5475 GB, free: 21.22 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004935/0.5222, allocations: 369 kB / 0.5478 GB, free: 21.17 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007343/0.5229, allocations: 489.3 kB / 0.5483 GB, free: 21.02 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001421/0.5243, allocations: 0.8877 MB / 0.5492 GB, free: 20.85 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.188e-06/0.5243, allocations: 6.844 kB / 0.5492 GB, free: 20.85 MB / 394.7 MB Notification: Performance of matching and sorting (n=106) (initialization): time 0.002067/0.5264, allocations: 1.111 MB / 0.5503 GB, free: 20.62 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.645e-05/0.5264, allocations: 7.844 kB / 0.5503 GB, free: 20.62 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.675e-06/0.5265, allocations: 0 / 0.5503 GB, free: 20.62 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006877/0.5271, allocations: 171.6 kB / 0.5504 GB, free: 20.56 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006732/0.5278, allocations: 189.1 kB / 0.5506 GB, free: 20.53 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002347/0.5302, allocations: 3.919 MB / 0.5544 GB, free: 16.75 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000496/0.5307, allocations: 62.42 kB / 0.5545 GB, free: 16.73 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.244e-05/0.5308, allocations: 45.48 kB / 0.5545 GB, free: 16.73 MB / 394.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 11 * 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 (102): * Single equations (assignments): 98 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 2 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 0 systems * Non-linear Jacobian (size): 2 systems {2, 2} * Without analytic Jacobian (size): 0 systems 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,1), (1,1)} Notification: Performance of prepare postOptimizeDAE: time 0.0003101/0.5311, allocations: 230.1 kB / 0.5548 GB, free: 16.6 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002922/0.5314, allocations: 66.39 kB / 0.5548 GB, free: 16.57 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002034/0.5335, allocations: 1.278 MB / 0.5561 GB, free: 16.22 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.554e-06/0.5335, allocations: 11.41 kB / 0.5561 GB, free: 16.22 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.775e-06/0.5335, allocations: 2.156 kB / 0.5561 GB, free: 16.22 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001591/0.5351, allocations: 1.324 MB / 0.5574 GB, free: 15.46 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002833/0.5379, allocations: 1.967 MB / 0.5593 GB, free: 14.7 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.649e-06/0.538, allocations: 3.188 kB / 0.5593 GB, free: 14.7 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006437/0.5386, allocations: 157.2 kB / 0.5595 GB, free: 14.56 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001652/0.5403, allocations: 305 kB / 0.5597 GB, free: 14.28 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.602e-05/0.5403, allocations: 28.67 kB / 0.5598 GB, free: 14.27 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.000762/0.5411, allocations: 1.286 MB / 0.561 GB, free: 12.99 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.945e-06/0.5411, allocations: 8.219 kB / 0.561 GB, free: 12.98 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002133/0.5433, allocations: 1.412 MB / 0.5624 GB, free: 11.98 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000163/0.5434, allocations: 140.2 kB / 0.5625 GB, free: 11.84 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.903e-05/0.5436, allocations: 21.69 kB / 0.5626 GB, free: 11.83 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005622/0.5441, allocations: 55.7 kB / 0.5626 GB, free: 11.79 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.272e-05/0.5442, allocations: 55.42 kB / 0.5627 GB, free: 11.74 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.172e-05/0.5443, allocations: 42.91 kB / 0.5627 GB, free: 11.7 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.0002613/0.5446, allocations: 279.5 kB / 0.563 GB, free: 11.49 MB / 394.7 MB Notification: Performance of sort global known variables: time 1.102e-06/0.5446, allocations: 0 / 0.563 GB, free: 11.49 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.004175/0.5488, allocations: 1.414 MB / 0.5644 GB, free: 10.18 MB / 394.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 6 (volume.medium.p,volume.medium.Xi[1],volume.medium.T,volume1.medium.p,volume1.medium.Xi[1],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 (84): * Single equations (assignments): 82 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 2 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 0 systems * Non-linear Jacobian (size): 2 systems {2, 2} * Without analytic Jacobian (size): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.007032/0.5558, allocations: 1.74 MB / 0.5661 GB, free: 8.633 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.001966/0.5578, allocations: 1.152 MB / 0.5672 GB, free: 7.754 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 6.111e-06/0.5578, allocations: 7.938 kB / 0.5672 GB, free: 7.746 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0007922/0.5586, allocations: 494.3 kB / 0.5677 GB, free: 7.414 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001758/0.5604, allocations: 381.7 kB / 0.568 GB, free: 7.105 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003132/0.5635, allocations: 2.041 MB / 0.57 GB, free: 5.25 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004795/0.564, allocations: 0.9067 MB / 0.5709 GB, free: 4.324 MB / 394.7 MB Notification: Performance of simCode: alias equations: time 0.0007854/0.5648, allocations: 205.3 kB / 0.5711 GB, free: 4.121 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002067/0.565, allocations: 77.91 kB / 0.5712 GB, free: 4.055 MB / 394.7 MB Notification: Performance of SimCode: time 5.91e-07/0.565, allocations: 2.625 kB / 0.5712 GB, free: 4.055 MB / 394.7 MB Notification: Performance of Templates: time 0.06304/0.6281, allocations: 49.17 MB / 0.6192 GB, free: 3.293 MB / 442.7 MB make -j1 -f Modelica_trunk_Modelica.Media.Examples.ReferenceAir.MoistAir2.makefile (rm -f Modelica_trunk_Modelica.Media.Examples.ReferenceAir.MoistAir2.pipe ; mkfifo Modelica_trunk_Modelica.Media.Examples.ReferenceAir.MoistAir2.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Media.Examples.ReferenceAir.MoistAir2.pipe >> ../files/Modelica_trunk_Modelica.Media.Examples.ReferenceAir.MoistAir2.sim & ./Modelica_trunk_Modelica.Media.Examples.ReferenceAir.MoistAir2 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Media.Examples.ReferenceAir.MoistAir2.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Media.Examples.ReferenceAir.MoistAir2_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Media/Examples/ReferenceAir/MoistAir2/MoistAir2.csv","../files/Modelica_trunk_Modelica.Media.Examples.ReferenceAir.MoistAir2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches