Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Media.Examples.MixtureGases.conf.json 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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) 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) 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(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001694/0.001694, allocations: 188.9 kB / 17.27 MB, free: 4.504 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.349/1.349, allocations: 222.9 MB / 240.9 MB, free: 10.98 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009412/0.0009413, allocations: 111.8 kB / 291.2 MB, free: 10.94 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0007872/0.0007873, allocations: 39.94 kB / 350 MB, free: 92 kB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2234/0.2242, allocations: 49.43 MB / 399.5 MB, free: 33.37 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Media.Examples.MixtureGases): time 0.3772/0.6014, allocations: 150.3 MB / 0.5369 GB, free: 12 MB / 394.7 MB Notification: Performance of NFInst.instExpressions: time 0.004294/0.6058, allocations: 4.127 MB / 0.5409 GB, free: 11.73 MB / 394.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001416/0.6059, allocations: 2.906 kB / 0.5409 GB, free: 11.73 MB / 394.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0005656/0.6066, allocations: 103.9 kB / 0.541 GB, free: 11.69 MB / 394.7 MB Notification: Performance of NFTyping.typeBindings: time 0.002694/0.6093, allocations: 1.087 MB / 0.5421 GB, free: 11.21 MB / 394.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001022/0.6103, allocations: 357.1 kB / 0.5424 GB, free: 11.1 MB / 394.7 MB Notification: Performance of NFFlatten.flatten: time 0.0007759/0.6111, allocations: 0.6207 MB / 0.543 GB, free: 10.89 MB / 394.7 MB Notification: Performance of NFFlatten.resolveConnections: time 4.915e-05/0.6111, allocations: 16.8 kB / 0.543 GB, free: 10.89 MB / 394.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003675/0.6115, allocations: 214.3 kB / 0.5432 GB, free: 10.82 MB / 394.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002235/0.6118, allocations: 160.9 kB / 0.5434 GB, free: 10.79 MB / 394.7 MB Notification: Performance of NFPackage.collectConstants: time 3.974e-05/0.6118, allocations: 10.06 kB / 0.5434 GB, free: 10.79 MB / 394.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003963/0.6158, allocations: 2.483 MB / 0.5458 GB, free: 9.996 MB / 394.7 MB Notification: Performance of NFScalarize.scalarize: time 0.000146/0.6159, allocations: 137 kB / 0.5459 GB, free: 9.945 MB / 394.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001961/0.6161, allocations: 156.2 kB / 0.5461 GB, free: 9.934 MB / 394.7 MB Notification: Performance of NFConvertDAE.convert: time 0.002459/0.6186, allocations: 1.782 MB / 0.5478 GB, free: 9.262 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.68e-06/0.6186, allocations: 2.281 kB / 0.5478 GB, free: 9.262 MB / 394.7 MB Notification: Performance of FrontEnd: time 9.02e-07/0.6186, allocations: 0 / 0.5478 GB, free: 9.262 MB / 394.7 MB Notification: Performance of Transformations before backend: time 5.641e-06/0.6186, allocations: 0 / 0.5478 GB, free: 9.262 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.002015/0.6207, allocations: 0.7688 MB / 0.5486 GB, free: 8.688 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.035e-05/0.6207, allocations: 7.75 kB / 0.5486 GB, free: 8.688 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002474/0.6232, allocations: 270.5 kB / 0.5489 GB, free: 8.578 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004512/0.6237, allocations: 287.5 kB / 0.5491 GB, free: 8.328 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.299e-05/0.6237, allocations: 17.34 kB / 0.5491 GB, free: 8.328 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.893e-05/0.6238, allocations: 28.28 kB / 0.5492 GB, free: 8.328 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001302/0.6251, allocations: 0.6756 MB / 0.5498 GB, free: 8.102 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.788e-05/0.6251, allocations: 1.094 kB / 0.5498 GB, free: 8.102 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.417e-05/0.6252, allocations: 15.31 kB / 0.5498 GB, free: 8.102 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.344e-05/0.6252, allocations: 19.89 kB / 0.5499 GB, free: 8.098 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00164/0.6269, allocations: 0.7512 MB / 0.5506 GB, free: 7.973 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.003904/0.6308, allocations: 1.823 MB / 0.5524 GB, free: 6.824 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001273/0.6321, allocations: 477.3 kB / 0.5528 GB, free: 6.695 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006191/0.6327, allocations: 235.2 kB / 0.5531 GB, free: 6.637 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.002581/0.6353, allocations: 1.389 MB / 0.5544 GB, free: 5.379 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.944e-05/0.6353, allocations: 37.25 kB / 0.5545 GB, free: 5.34 MB / 394.7 MB Notification: Performance of pre-optimization done (n=35): time 2.474e-06/0.6354, allocations: 0 / 0.5545 GB, free: 5.34 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.01367/0.649, allocations: 3.714 MB / 0.5581 GB, free: 3.59 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.981e-05/0.6491, allocations: 81.42 kB / 0.5582 GB, free: 3.496 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001864/0.6493, allocations: 189.5 kB / 0.5583 GB, free: 3.371 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 4.957e-05/0.6494, allocations: 29.27 kB / 0.5584 GB, free: 3.34 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001162/0.6495, allocations: 180.4 kB / 0.5585 GB, free: 3.184 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001396/0.6496, allocations: 179.3 kB / 0.5587 GB, free: 3.055 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002027/0.6499, allocations: 112 kB / 0.5588 GB, free: 3.023 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0001206/0.65, allocations: 344 kB / 0.5591 GB, free: 2.695 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00077/0.6508, allocations: 259.5 kB / 0.5594 GB, free: 2.648 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000823/0.6516, allocations: 426.9 kB / 0.5598 GB, free: 2.402 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001564/0.6532, allocations: 0.7059 MB / 0.5605 GB, free: 2.125 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.518e-06/0.6532, allocations: 2.094 kB / 0.5605 GB, free: 2.125 MB / 394.7 MB Notification: Performance of matching and sorting (n=72) (initialization): time 0.001945/0.6551, allocations: 0.7786 MB / 0.5613 GB, free: 1.922 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.215e-05/0.6552, allocations: 7.75 kB / 0.5613 GB, free: 1.922 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.763e-05/0.6552, allocations: 5.25 kB / 0.5613 GB, free: 1.922 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002333/0.6554, allocations: 58.97 kB / 0.5613 GB, free: 1.895 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001139/0.6566, allocations: 177.3 kB / 0.5615 GB, free: 1.848 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007015/0.6573, allocations: 1.078 MB / 0.5625 GB, free: 0.793 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008251/0.6581, allocations: 44.95 kB / 0.5626 GB, free: 0.7773 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.716e-05/0.6582, allocations: 38.77 kB / 0.5626 GB, free: 0.7734 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.0003482/0.6586, allocations: 190.4 kB / 0.5628 GB, free: 0.625 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001339/0.6587, allocations: 26.97 kB / 0.5628 GB, free: 0.6133 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002267/0.661, allocations: 0.785 MB / 0.5636 GB, free: 356 kB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.125e-06/0.661, allocations: 7.5 kB / 0.5636 GB, free: 356 kB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.574e-06/0.661, allocations: 0 / 0.5636 GB, free: 356 kB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.326e-06/0.661, allocations: 7.984 kB / 0.5636 GB, free: 348 kB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003228/0.6643, allocations: 1.56 MB / 0.5651 GB, free: 15.47 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.869e-06/0.6643, allocations: 2.562 kB / 0.5651 GB, free: 15.47 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001089/0.6654, allocations: 156 kB / 0.5653 GB, free: 15.33 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001472/0.6656, allocations: 41.31 kB / 0.5653 GB, free: 15.29 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.623e-05/0.6657, allocations: 31.17 kB / 0.5654 GB, free: 15.27 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001786/0.6674, allocations: 2.525 MB / 0.5678 GB, free: 12.57 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.034e-06/0.6675, allocations: 0 / 0.5678 GB, free: 12.57 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.03666/0.7041, allocations: 9.272 MB / 0.5769 GB, free: 3.152 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 8.869e-05/0.7043, allocations: 100.8 kB / 0.577 GB, free: 3.035 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.247e-05/0.7043, allocations: 8.094 kB / 0.577 GB, free: 3.027 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008366/0.7052, allocations: 51.89 kB / 0.577 GB, free: 2.977 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.155e-05/0.7053, allocations: 43.88 kB / 0.5771 GB, free: 2.934 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.551e-05/0.7054, allocations: 35.97 kB / 0.5771 GB, free: 2.898 MB / 410.7 MB Notification: Performance of sorting global known variables: time 9.542e-05/0.7055, allocations: 124.4 kB / 0.5772 GB, free: 2.777 MB / 410.7 MB Notification: Performance of sort global known variables: time 1.01e-07/0.7055, allocations: 4 kB / 0.5772 GB, free: 2.773 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.002555/0.708, allocations: 0.6911 MB / 0.5779 GB, free: 2.082 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.007408/0.7155, allocations: 1.972 MB / 0.5798 GB, free: 136 kB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.002018/0.7175, allocations: 0.6479 MB / 0.5805 GB, free: 15.49 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 5.66e-06/0.7175, allocations: 0 / 0.5805 GB, free: 15.49 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001135/0.7186, allocations: 0.542 MB / 0.581 GB, free: 14.93 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007902/0.7195, allocations: 104.9 kB / 0.5811 GB, free: 14.82 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002529/0.722, allocations: 1.646 MB / 0.5827 GB, free: 13.1 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003134/0.7223, allocations: 0.793 MB / 0.5835 GB, free: 12.28 MB / 426.7 MB Notification: Performance of simCode: alias equations: time 0.00119/0.7235, allocations: 204.3 kB / 0.5837 GB, free: 12.08 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003758/0.7239, allocations: 71.39 kB / 0.5837 GB, free: 12.01 MB / 426.7 MB Notification: Performance of SimCode: time 6.31e-07/0.7239, allocations: 0 / 0.5837 GB, free: 12.01 MB / 426.7 MB Notification: Performance of Templates: time 0.04442/0.7683, allocations: 34.86 MB / 0.6178 GB, free: 9.207 MB / 458.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@2/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