Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Media.Examples.MixtureGases.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.MixtureGases,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|medium1.T|medium1.p|medium2.T|medium2.p",fileNamePrefix="Modelica_trunk_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_trunk_Modelica.Media.Examples.MixtureGases") Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001333/0.001333, allocations: 203.1 kB / 17.43 MB, free: 4.277 MB / 13.93 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.289/1.289, allocations: 229.5 MB / 247.7 MB, free: 6.34 MB / 202.7 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007516/0.0007516, allocations: 90.47 kB / 299.8 MB, free: 5.355 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002572/0.0002576, allocations: 4 kB / 360.6 MB, free: 8.512 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.184/0.1843, allocations: 51.42 MB / 412 MB, free: 25.92 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Media.Examples.MixtureGases): time 0.2997/0.484, allocations: 141.7 MB / 0.5408 GB, free: 13.52 MB / 394.7 MB Notification: Performance of NFInst.instExpressions: time 0.003996/0.4881, allocations: 5.521 MB / 0.5461 GB, free: 11.2 MB / 394.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.424e-05/0.4882, allocations: 3.938 kB / 0.5461 GB, free: 11.19 MB / 394.7 MB Notification: Performance of NFTyping.typeComponents: time 0.000346/0.4885, allocations: 95.92 kB / 0.5462 GB, free: 11.14 MB / 394.7 MB Notification: Performance of NFTyping.typeBindings: time 0.00208/0.4906, allocations: 1.105 MB / 0.5473 GB, free: 10.66 MB / 394.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007669/0.4914, allocations: 358.4 kB / 0.5477 GB, free: 10.54 MB / 394.7 MB Notification: Performance of NFFlatten.flatten: time 0.0005461/0.492, allocations: 0.6173 MB / 0.5483 GB, free: 10.34 MB / 394.7 MB Notification: Performance of NFFlatten.resolveConnections: time 4.018e-05/0.492, allocations: 20.39 kB / 0.5483 GB, free: 10.33 MB / 394.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002975/0.4923, allocations: 216.1 kB / 0.5485 GB, free: 10.27 MB / 394.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001874/0.4925, allocations: 162.3 kB / 0.5486 GB, free: 10.23 MB / 394.7 MB Notification: Performance of NFPackage.collectConstants: time 3.581e-05/0.4926, allocations: 8.25 kB / 0.5487 GB, free: 10.23 MB / 394.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003456/0.496, allocations: 2.512 MB / 0.5511 GB, free: 9.434 MB / 394.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001177/0.4961, allocations: 129.5 kB / 0.5512 GB, free: 9.387 MB / 394.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001686/0.4963, allocations: 185.5 kB / 0.5514 GB, free: 9.34 MB / 394.7 MB Notification: Performance of NFConvertDAE.convert: time 0.002029/0.4984, allocations: 1.79 MB / 0.5532 GB, free: 8.648 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.667e-06/0.4984, allocations: 6.906 kB / 0.5532 GB, free: 8.645 MB / 394.7 MB Notification: Performance of FrontEnd: time 1.212e-06/0.4984, allocations: 0 / 0.5532 GB, free: 8.645 MB / 394.7 MB Notification: Performance of Transformations before backend: time 5.681e-06/0.4984, allocations: 0 / 0.5532 GB, free: 8.645 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.5001, allocations: 0.6988 MB / 0.5538 GB, free: 8.09 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.129e-05/0.5002, allocations: 8.062 kB / 0.5538 GB, free: 8.09 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002125/0.5023, allocations: 259.5 kB / 0.5541 GB, free: 7.988 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003441/0.5027, allocations: 291.9 kB / 0.5544 GB, free: 7.734 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.483e-05/0.5027, allocations: 21.28 kB / 0.5544 GB, free: 7.734 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.63e-05/0.5028, allocations: 24.28 kB / 0.5544 GB, free: 7.734 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001164/0.504, allocations: 0.6629 MB / 0.5551 GB, free: 7.52 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.484e-05/0.504, allocations: 3.344 kB / 0.5551 GB, free: 7.52 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.129e-05/0.504, allocations: 13.53 kB / 0.5551 GB, free: 7.52 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.308e-05/0.5041, allocations: 24.02 kB / 0.5551 GB, free: 7.516 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0015/0.5056, allocations: 0.7567 MB / 0.5558 GB, free: 7.379 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.003541/0.5091, allocations: 1.809 MB / 0.5576 GB, free: 6.238 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001148/0.5103, allocations: 480.5 kB / 0.5581 GB, free: 6.105 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000556/0.5109, allocations: 233.1 kB / 0.5583 GB, free: 6.047 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.002105/0.513, allocations: 1.36 MB / 0.5596 GB, free: 4.793 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.607e-05/0.513, allocations: 43.59 kB / 0.5597 GB, free: 4.75 MB / 394.7 MB Notification: Performance of pre-optimization done (n=35): time 1.663e-06/0.513, allocations: 0 / 0.5597 GB, free: 4.75 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.01232/0.5254, allocations: 3.631 MB / 0.5632 GB, free: 3.047 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.567e-05/0.5254, allocations: 82.7 kB / 0.5633 GB, free: 2.953 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001276/0.5256, allocations: 172 kB / 0.5634 GB, free: 2.84 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 5.075e-05/0.5256, allocations: 35.08 kB / 0.5635 GB, free: 2.809 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.552e-05/0.5257, allocations: 180.5 kB / 0.5637 GB, free: 2.645 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001366/0.5259, allocations: 176.4 kB / 0.5638 GB, free: 2.523 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.64e-05/0.5259, allocations: 14.41 kB / 0.5638 GB, free: 2.52 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0001247/0.526, allocations: 341.4 kB / 0.5642 GB, free: 2.195 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006634/0.5267, allocations: 258.4 kB / 0.5644 GB, free: 2.148 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007302/0.5275, allocations: 428 kB / 0.5648 GB, free: 1.902 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001403/0.5289, allocations: 0.698 MB / 0.5655 GB, free: 1.625 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.777e-06/0.5289, allocations: 3.219 kB / 0.5655 GB, free: 1.625 MB / 394.7 MB Notification: Performance of matching and sorting (n=72) (initialization): time 0.001737/0.5306, allocations: 0.7791 MB / 0.5663 GB, free: 1.422 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.608e-05/0.5307, allocations: 6.781 kB / 0.5663 GB, free: 1.422 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.237e-06/0.5307, allocations: 4.594 kB / 0.5663 GB, free: 1.422 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001806/0.5309, allocations: 59.12 kB / 0.5663 GB, free: 1.395 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001099/0.532, allocations: 178.1 kB / 0.5665 GB, free: 1.348 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0006177/0.5326, allocations: 1.082 MB / 0.5676 GB, free: 296 kB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007251/0.5333, allocations: 50.11 kB / 0.5676 GB, free: 276 kB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.464e-05/0.5334, allocations: 40.27 kB / 0.5676 GB, free: 272 kB / 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.0002108/0.5336, allocations: 179.9 kB / 0.5678 GB, free: 128 kB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001033/0.5337, allocations: 25.69 kB / 0.5678 GB, free: 116 kB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002082/0.5358, allocations: 0.785 MB / 0.5686 GB, free: 15.85 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.129e-06/0.5359, allocations: 6.906 kB / 0.5686 GB, free: 15.85 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.472e-06/0.5359, allocations: 2.094 kB / 0.5686 GB, free: 15.85 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.144e-06/0.5359, allocations: 3.984 kB / 0.5686 GB, free: 15.84 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002977/0.5389, allocations: 1.559 MB / 0.5701 GB, free: 14.97 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.429e-06/0.5389, allocations: 2.906 kB / 0.5701 GB, free: 14.97 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001021/0.5399, allocations: 150.2 kB / 0.5703 GB, free: 14.93 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001134/0.54, allocations: 48.12 kB / 0.5703 GB, free: 14.89 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.623e-05/0.5401, allocations: 28.69 kB / 0.5704 GB, free: 14.89 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001539/0.5417, allocations: 2.532 MB / 0.5728 GB, free: 12.32 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.625e-06/0.5417, allocations: 3.344 kB / 0.5728 GB, free: 12.32 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002231/0.5439, allocations: 1.082 MB / 0.5739 GB, free: 11.85 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.857e-05/0.544, allocations: 96.83 kB / 0.574 GB, free: 11.75 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.137e-05/0.5441, allocations: 20.25 kB / 0.574 GB, free: 11.74 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007493/0.5448, allocations: 44.08 kB / 0.574 GB, free: 11.72 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.396e-05/0.5449, allocations: 39.02 kB / 0.5741 GB, free: 11.71 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.025e-05/0.545, allocations: 34.19 kB / 0.5741 GB, free: 11.7 MB / 410.7 MB Notification: Performance of sorting global known variables: time 8.17e-05/0.5451, allocations: 114.5 kB / 0.5742 GB, free: 11.62 MB / 410.7 MB Notification: Performance of sort global known variables: time 1.41e-07/0.5451, allocations: 1.969 kB / 0.5742 GB, free: 11.62 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.001228/0.5463, allocations: 420.1 kB / 0.5746 GB, free: 11.56 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.002585/0.5489, allocations: 0.8687 MB / 0.5755 GB, free: 11.15 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.001621/0.5505, allocations: 0.6514 MB / 0.5761 GB, free: 11.01 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 3.297e-06/0.5505, allocations: 0 / 0.5761 GB, free: 11.01 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0009471/0.5515, allocations: 0.5369 MB / 0.5766 GB, free: 10.7 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006895/0.5522, allocations: 98.66 kB / 0.5767 GB, free: 10.68 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001932/0.5541, allocations: 1.214 MB / 0.5779 GB, free: 9.77 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003353/0.5545, allocations: 0.7833 MB / 0.5787 GB, free: 8.965 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 0.001167/0.5557, allocations: 195.1 kB / 0.5789 GB, free: 8.77 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003149/0.556, allocations: 58.7 kB / 0.5789 GB, free: 8.715 MB / 410.7 MB Notification: Performance of SimCode: time 2.3e-07/0.556, allocations: 4 kB / 0.5789 GB, free: 8.711 MB / 410.7 MB Notification: Performance of Templates: time 0.02313/0.5791, allocations: 15.65 MB / 0.5942 GB, free: 9.125 MB / 426.7 MB make -j1 -f Modelica_trunk_Modelica.Media.Examples.MixtureGases.makefile (rm -f Modelica_trunk_Modelica.Media.Examples.MixtureGases.pipe ; mkfifo Modelica_trunk_Modelica.Media.Examples.MixtureGases.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Media.Examples.MixtureGases.pipe >> ../files/Modelica_trunk_Modelica.Media.Examples.MixtureGases.sim & ./Modelica_trunk_Modelica.Media.Examples.MixtureGases -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Media.Examples.MixtureGases.pipe 2>&1) diffSimulationResults("Modelica_trunk_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_trunk_Modelica.Media.Examples.MixtureGases.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches