Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Media.Examples.MixtureGases.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.MixtureGases,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|medium1.T|medium1.p|medium2.T|medium2.p",fileNamePrefix="Modelica_4.0.0_Modelica.Media.Examples.MixtureGases") translateModel(Modelica.Media.Examples.MixtureGases,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|medium1.T|medium1.p|medium2.T|medium2.p",fileNamePrefix="Modelica_4.0.0_Modelica.Media.Examples.MixtureGases") Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0008932/0.0008934, allocations: 179.6 kB / 16.71 MB, free: 5.09 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.222/1.222, allocations: 225.7 MB / 243.2 MB, free: 8.465 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.0007254/0.0007254, allocations: 97.22 kB / 294.4 MB, free: 9.492 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002577/0.0002577, allocations: 7.938 kB / 354.1 MB, free: 13.65 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1821/0.1823, allocations: 50.42 MB / 404.6 MB, free: 31.33 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Media.Examples.MixtureGases): time 0.2956/0.478, allocations: 141.4 MB / 0.5332 GB, free: 13.61 MB / 394.7 MB Notification: Performance of NFInst.instExpressions: time 0.003987/0.482, allocations: 5.529 MB / 0.5386 GB, free: 11.38 MB / 394.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001695/0.4822, allocations: 7.312 kB / 0.5386 GB, free: 11.38 MB / 394.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0004012/0.4826, allocations: 88.72 kB / 0.5387 GB, free: 11.36 MB / 394.7 MB Notification: Performance of NFTyping.typeBindings: time 0.002592/0.4852, allocations: 1.1 MB / 0.5397 GB, free: 11.14 MB / 394.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008244/0.4861, allocations: 348 kB / 0.5401 GB, free: 11.04 MB / 394.7 MB Notification: Performance of NFFlatten.flatten: time 0.0006279/0.4867, allocations: 0.6248 MB / 0.5407 GB, free: 10.83 MB / 394.7 MB Notification: Performance of NFFlatten.resolveConnections: time 4.544e-05/0.4868, allocations: 7.719 kB / 0.5407 GB, free: 10.83 MB / 394.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003009/0.4871, allocations: 222.3 kB / 0.5409 GB, free: 10.76 MB / 394.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001942/0.4873, allocations: 164.5 kB / 0.541 GB, free: 10.73 MB / 394.7 MB Notification: Performance of NFPackage.collectConstants: time 3.76e-05/0.4873, allocations: 7.875 kB / 0.5411 GB, free: 10.73 MB / 394.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003863/0.4912, allocations: 2.492 MB / 0.5435 GB, free: 9.938 MB / 394.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001284/0.4913, allocations: 138 kB / 0.5436 GB, free: 9.887 MB / 394.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001779/0.4915, allocations: 181.4 kB / 0.5438 GB, free: 9.844 MB / 394.7 MB Notification: Performance of NFConvertDAE.convert: time 0.00262/0.4942, allocations: 1.785 MB / 0.5455 GB, free: 9.152 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.731e-06/0.4942, allocations: 3.5 kB / 0.5455 GB, free: 9.152 MB / 394.7 MB Notification: Performance of FrontEnd: time 1.563e-06/0.4942, allocations: 0 / 0.5455 GB, free: 9.152 MB / 394.7 MB Notification: Performance of Transformations before backend: time 5.23e-06/0.4942, allocations: 0 / 0.5455 GB, free: 9.152 MB / 394.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 75 * Number of variables: 75 Notification: Performance of Generate backend data structure: time 0.001751/0.4959, allocations: 0.6929 MB / 0.5462 GB, free: 8.598 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.351e-05/0.496, allocations: 7.969 kB / 0.5462 GB, free: 8.598 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0021/0.4981, allocations: 270.7 kB / 0.5465 GB, free: 8.488 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003376/0.4984, allocations: 290.8 kB / 0.5468 GB, free: 8.238 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.757e-05/0.4985, allocations: 21.72 kB / 0.5468 GB, free: 8.234 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.594e-05/0.4986, allocations: 24.91 kB / 0.5468 GB, free: 8.234 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001153/0.4997, allocations: 0.6686 MB / 0.5475 GB, free: 8.016 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.65e-05/0.4997, allocations: 6.922 kB / 0.5475 GB, free: 8.012 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.062e-05/0.4998, allocations: 12.66 kB / 0.5475 GB, free: 8.012 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.925e-05/0.4998, allocations: 20.98 kB / 0.5475 GB, free: 8.008 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001469/0.5013, allocations: 0.7543 MB / 0.5482 GB, free: 7.879 MB / 394.7 MB Warning: The model contains alias variables with redundant start and/or conflicting nominal values. It is recommended to resolve the conflicts, because otherwise the system could be hard to solve. To print the conflicting alias sets and the chosen candidates please use -d=aliasConflicts. Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003441/0.5048, allocations: 1.809 MB / 0.55 GB, free: 6.742 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001148/0.5059, allocations: 479.5 kB / 0.5505 GB, free: 6.613 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005497/0.5065, allocations: 234.3 kB / 0.5507 GB, free: 6.551 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.002165/0.5087, allocations: 1.385 MB / 0.552 GB, free: 5.293 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.003e-05/0.5087, allocations: 41.19 kB / 0.5521 GB, free: 5.25 MB / 394.7 MB Notification: Performance of pre-optimization done (n=35): time 2.215e-06/0.5087, allocations: 0 / 0.5521 GB, free: 5.25 MB / 394.7 MB Warning: Some equations could not be differentiated for following variables having attribute stateSelect=StateSelect.prefer. They will be treated as if they had stateSelect=StateSelect.default ======================================== 1: medium1.T Please use -d=bltdump for more information. Warning: Some equations could not be differentiated for following variables having attribute stateSelect=StateSelect.prefer. They will be treated as if they had stateSelect=StateSelect.default ======================================== 1: medium2.T Please use -d=bltdump for more information. Notification: Performance of matching and sorting (n=48): time 0.01205/0.5208, allocations: 3.631 MB / 0.5556 GB, free: 3.547 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.693e-05/0.5209, allocations: 86.77 kB / 0.5557 GB, free: 3.449 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000149/0.521, allocations: 173.4 kB / 0.5559 GB, free: 3.336 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 5.469e-05/0.5211, allocations: 31.89 kB / 0.5559 GB, free: 3.305 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.00011/0.5212, allocations: 188.2 kB / 0.5561 GB, free: 3.141 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000145/0.5213, allocations: 173.6 kB / 0.5562 GB, free: 3.02 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.57e-05/0.5214, allocations: 13.03 kB / 0.5563 GB, free: 3.016 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0001079/0.5215, allocations: 347.8 kB / 0.5566 GB, free: 2.684 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006531/0.5222, allocations: 258.6 kB / 0.5568 GB, free: 2.637 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007112/0.5229, allocations: 424 kB / 0.5572 GB, free: 2.395 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001364/0.5243, allocations: 0.6903 MB / 0.5579 GB, free: 2.125 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.186e-06/0.5243, allocations: 3.281 kB / 0.5579 GB, free: 2.125 MB / 394.7 MB Notification: Performance of matching and sorting (n=72) (initialization): time 0.001749/0.526, allocations: 0.7797 MB / 0.5587 GB, free: 1.914 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.798e-05/0.5261, allocations: 8.781 kB / 0.5587 GB, free: 1.914 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.757e-06/0.5261, allocations: 2.812 kB / 0.5587 GB, free: 1.914 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001981/0.5263, allocations: 58.06 kB / 0.5587 GB, free: 1.887 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001067/0.5274, allocations: 178.8 kB / 0.5589 GB, free: 1.844 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0005787/0.5279, allocations: 1.082 MB / 0.56 GB, free: 0.7852 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007193/0.5287, allocations: 44.39 kB / 0.56 GB, free: 0.7695 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.276e-05/0.5288, allocations: 41.64 kB / 0.5601 GB, free: 0.7617 MB / 394.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 22 * 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 (70): * Single equations (assignments): 68 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * 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,1), (1,1)} Notification: Performance of prepare postOptimizeDAE: time 0.0002132/0.529, allocations: 184.5 kB / 0.5602 GB, free: 0.6211 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.125e-05/0.5291, allocations: 27.36 kB / 0.5603 GB, free: 0.6094 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002018/0.5311, allocations: 0.7782 MB / 0.561 GB, free: 356 kB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.601e-06/0.5311, allocations: 8.031 kB / 0.561 GB, free: 356 kB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.781e-06/0.5311, allocations: 0 / 0.561 GB, free: 356 kB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.454e-06/0.5311, allocations: 7.984 kB / 0.561 GB, free: 348 kB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002921/0.5341, allocations: 1.554 MB / 0.5625 GB, free: 15.47 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.589e-06/0.5341, allocations: 2.938 kB / 0.5625 GB, free: 15.47 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001007/0.5351, allocations: 152.8 kB / 0.5627 GB, free: 15.43 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001276/0.5352, allocations: 41.97 kB / 0.5627 GB, free: 15.4 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.237e-05/0.5353, allocations: 20.98 kB / 0.5628 GB, free: 15.39 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001527/0.5369, allocations: 2.536 MB / 0.5652 GB, free: 12.82 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.035e-06/0.5369, allocations: 2.781 kB / 0.5652 GB, free: 12.82 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002247/0.5391, allocations: 1.082 MB / 0.5663 GB, free: 12.35 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 7.111e-05/0.5392, allocations: 97.52 kB / 0.5664 GB, free: 12.24 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.05e-05/0.5393, allocations: 15.53 kB / 0.5664 GB, free: 12.24 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007664/0.5401, allocations: 44.16 kB / 0.5664 GB, free: 12.22 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.952e-05/0.5401, allocations: 48.66 kB / 0.5665 GB, free: 12.2 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.881e-05/0.5402, allocations: 32.28 kB / 0.5665 GB, free: 12.19 MB / 410.7 MB Notification: Performance of sorting global known variables: time 8.068e-05/0.5403, allocations: 124.4 kB / 0.5666 GB, free: 12.11 MB / 410.7 MB Notification: Performance of sort global known variables: time 1.11e-07/0.5403, allocations: 0 / 0.5666 GB, free: 12.11 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.001274/0.5416, allocations: 409.4 kB / 0.567 GB, free: 12.05 MB / 410.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 9 * Number of states: 4 (medium2.p,medium2.T,medium1.p,medium1.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 (48): * Single equations (assignments): 46 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * 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): 2 systems {(1,1,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.002398/0.544, allocations: 0.8717 MB / 0.5679 GB, free: 11.65 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.001666/0.5457, allocations: 0.6489 MB / 0.5685 GB, free: 11.5 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 3.697e-06/0.5457, allocations: 2.969 kB / 0.5685 GB, free: 11.5 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0009269/0.5466, allocations: 0.5321 MB / 0.569 GB, free: 11.2 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007061/0.5473, allocations: 100.8 kB / 0.5691 GB, free: 11.17 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001826/0.5492, allocations: 1.22 MB / 0.5703 GB, free: 10.34 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002903/0.5495, allocations: 0.7853 MB / 0.5711 GB, free: 9.602 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 0.001135/0.5506, allocations: 179.2 kB / 0.5713 GB, free: 9.488 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003017/0.5509, allocations: 63.67 kB / 0.5713 GB, free: 9.465 MB / 410.7 MB Notification: Performance of SimCode: time 2.51e-07/0.5509, allocations: 0 / 0.5713 GB, free: 9.465 MB / 410.7 MB Notification: Performance of Templates: time 0.02115/0.5721, allocations: 15.57 MB / 0.5865 GB, free: 11.16 MB / 426.7 MB make -j1 -f Modelica_4.0.0_Modelica.Media.Examples.MixtureGases.makefile (rm -f Modelica_4.0.0_Modelica.Media.Examples.MixtureGases.pipe ; mkfifo Modelica_4.0.0_Modelica.Media.Examples.MixtureGases.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Media.Examples.MixtureGases.pipe >> ../files/Modelica_4.0.0_Modelica.Media.Examples.MixtureGases.sim & ./Modelica_4.0.0_Modelica.Media.Examples.MixtureGases -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Media.Examples.MixtureGases.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Media.Examples.MixtureGases_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Media/Examples/MixtureGases/MixtureGases.csv","../files/Modelica_4.0.0_Modelica.Media.Examples.MixtureGases.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches