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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) 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) 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) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001076/0.001081, allocations: 114.2 kB / 17.07 MB, free: 5.988 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001098/0.001098, allocations: 194.9 kB / 18.01 MB, free: 5.066 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.32/1.32, allocations: 222.9 MB / 241.7 MB, free: 15.13 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0009078/0.0009078, allocations: 43.94 kB / 351.3 MB, free: 3.234 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2206/0.2215, allocations: 49.44 MB / 400.7 MB, free: 8.727 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Media.Examples.MixtureGases): time 0.4019/0.6234, allocations: 152.5 MB / 0.5403 GB, free: 1.672 MB / 462.1 MB Notification: Performance of NFInst.instExpressions: time 0.004147/0.6276, allocations: 4.042 MB / 0.5442 GB, free: 1.656 MB / 462.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001205/0.6277, allocations: 2.625 kB / 0.5442 GB, free: 1.656 MB / 462.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004352/0.6282, allocations: 107.2 kB / 0.5443 GB, free: 1.656 MB / 462.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002513/0.6307, allocations: 1.189 MB / 0.5455 GB, free: 1.605 MB / 462.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008744/0.6316, allocations: 395.8 kB / 0.5458 GB, free: 1.59 MB / 462.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004526/0.6321, allocations: 457.5 kB / 0.5463 GB, free: 1.59 MB / 462.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.906e-05/0.6322, allocations: 14.12 kB / 0.5463 GB, free: 1.59 MB / 462.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003002/0.6325, allocations: 234.7 kB / 0.5465 GB, free: 1.59 MB / 462.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001759/0.6326, allocations: 136.5 kB / 0.5467 GB, free: 1.59 MB / 462.1 MB Notification: Performance of NFPackage.collectConstants: time 3.594e-05/0.6327, allocations: 14.5 kB / 0.5467 GB, free: 1.59 MB / 462.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002831/0.6355, allocations: 2.062 MB / 0.5487 GB, free: 1.574 MB / 462.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001113/0.6357, allocations: 138.5 kB / 0.5488 GB, free: 1.574 MB / 462.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001641/0.6358, allocations: 162.7 kB / 0.549 GB, free: 1.574 MB / 462.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001659/0.6375, allocations: 1.54 MB / 0.5505 GB, free: 1.523 MB / 462.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.017e-06/0.6375, allocations: 1.031 kB / 0.5505 GB, free: 1.523 MB / 462.1 MB Notification: Performance of FrontEnd: time 1.383e-06/0.6375, allocations: 0 / 0.5505 GB, free: 1.523 MB / 462.1 MB Notification: Performance of Transformations before backend: time 7.625e-06/0.6375, allocations: 1.062 kB / 0.5505 GB, free: 1.523 MB / 462.1 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.001935/0.6395, allocations: 0.7672 MB / 0.5512 GB, free: 17.05 MB / 478.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.37e-05/0.6395, allocations: 11.44 kB / 0.5512 GB, free: 17.05 MB / 478.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006689/0.6402, allocations: 105.3 kB / 0.5513 GB, free: 17.04 MB / 478.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003555/0.6406, allocations: 288.4 kB / 0.5516 GB, free: 16.82 MB / 478.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.653e-05/0.6406, allocations: 24.92 kB / 0.5516 GB, free: 16.82 MB / 478.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.354e-05/0.6407, allocations: 26.09 kB / 0.5517 GB, free: 16.82 MB / 478.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009109/0.6416, allocations: 0.5915 MB / 0.5522 GB, free: 16.77 MB / 478.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.618e-05/0.6416, allocations: 3.938 kB / 0.5522 GB, free: 16.77 MB / 478.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.334e-05/0.6417, allocations: 13.41 kB / 0.5522 GB, free: 16.77 MB / 478.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.678e-05/0.6417, allocations: 23.41 kB / 0.5523 GB, free: 16.77 MB / 478.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001093/0.6428, allocations: 0.6403 MB / 0.5529 GB, free: 16.76 MB / 478.1 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.002472/0.6453, allocations: 1.276 MB / 0.5541 GB, free: 16.35 MB / 478.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000811/0.6461, allocations: 358.1 kB / 0.5545 GB, free: 16.3 MB / 478.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003998/0.6465, allocations: 178.5 kB / 0.5547 GB, free: 16.28 MB / 478.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.002191/0.6487, allocations: 1.39 MB / 0.556 GB, free: 15.14 MB / 478.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.905e-05/0.6487, allocations: 35.89 kB / 0.556 GB, free: 15.1 MB / 478.1 MB Notification: Performance of pre-optimization done (n=35): time 1.924e-06/0.6488, allocations: 1 kB / 0.556 GB, free: 15.1 MB / 478.1 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.01357/0.6623, allocations: 3.471 MB / 0.5594 GB, free: 14 MB / 478.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.688e-05/0.6624, allocations: 87.61 kB / 0.5595 GB, free: 13.91 MB / 478.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001388/0.6626, allocations: 181.9 kB / 0.5597 GB, free: 13.8 MB / 478.1 MB Notification: Performance of collectPreVariables (initialization): time 5.243e-05/0.6626, allocations: 31.23 kB / 0.5597 GB, free: 13.77 MB / 478.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.119e-05/0.6627, allocations: 181.1 kB / 0.5599 GB, free: 13.62 MB / 478.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001121/0.6628, allocations: 176.7 kB / 0.5601 GB, free: 13.51 MB / 478.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002021/0.663, allocations: 114.7 kB / 0.5602 GB, free: 13.49 MB / 478.1 MB Notification: Performance of setup shared object (initialization): time 0.0001113/0.6632, allocations: 339.1 kB / 0.5605 GB, free: 13.18 MB / 478.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006542/0.6638, allocations: 266.1 kB / 0.5608 GB, free: 13.17 MB / 478.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007038/0.6645, allocations: 429.7 kB / 0.5612 GB, free: 13 MB / 478.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001349/0.6659, allocations: 0.692 MB / 0.5618 GB, free: 12.82 MB / 478.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.374e-06/0.6659, allocations: 0.8125 kB / 0.5618 GB, free: 12.82 MB / 478.1 MB Notification: Performance of matching and sorting (n=72) (initialization): time 0.001732/0.6676, allocations: 0.7823 MB / 0.5626 GB, free: 12.75 MB / 478.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.695e-05/0.6677, allocations: 7.719 kB / 0.5626 GB, free: 12.75 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.418e-06/0.6677, allocations: 4.719 kB / 0.5626 GB, free: 12.75 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000193/0.6679, allocations: 57.39 kB / 0.5627 GB, free: 12.73 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001085/0.669, allocations: 183.6 kB / 0.5628 GB, free: 12.73 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0005926/0.6696, allocations: 1.09 MB / 0.5639 GB, free: 11.69 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000735/0.6703, allocations: 42.39 kB / 0.5639 GB, free: 11.69 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.423e-05/0.6704, allocations: 41.17 kB / 0.564 GB, free: 11.69 MB / 478.1 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.000222/0.6706, allocations: 176.9 kB / 0.5642 GB, free: 11.57 MB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001172/0.6708, allocations: 27.97 kB / 0.5642 GB, free: 11.55 MB / 478.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001973/0.6727, allocations: 0.7784 MB / 0.5649 GB, free: 11.48 MB / 478.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.961e-06/0.6728, allocations: 5.5 kB / 0.5649 GB, free: 11.48 MB / 478.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.364e-06/0.6728, allocations: 3.406 kB / 0.565 GB, free: 11.48 MB / 478.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.182e-06/0.6728, allocations: 3.922 kB / 0.565 GB, free: 11.48 MB / 478.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002952/0.6757, allocations: 1.556 MB / 0.5665 GB, free: 10.89 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.888e-06/0.6758, allocations: 1.062 kB / 0.5665 GB, free: 10.89 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001047/0.6768, allocations: 150.5 kB / 0.5666 GB, free: 10.89 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000128/0.677, allocations: 37.77 kB / 0.5667 GB, free: 10.88 MB / 478.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.656e-05/0.677, allocations: 31.89 kB / 0.5667 GB, free: 10.87 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001602/0.6786, allocations: 2.731 MB / 0.5694 GB, free: 8.18 MB / 478.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.895e-06/0.6787, allocations: 3.188 kB / 0.5694 GB, free: 8.18 MB / 478.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002304/0.681, allocations: 1.072 MB / 0.5704 GB, free: 7.875 MB / 478.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.648e-05/0.6811, allocations: 102 kB / 0.5705 GB, free: 7.77 MB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.114e-05/0.6811, allocations: 17.72 kB / 0.5705 GB, free: 7.766 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007731/0.6819, allocations: 37.56 kB / 0.5706 GB, free: 7.766 MB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.132e-05/0.682, allocations: 45.59 kB / 0.5706 GB, free: 7.762 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.098e-05/0.6821, allocations: 36.92 kB / 0.5706 GB, free: 7.762 MB / 478.1 MB Notification: Performance of sorting global known variables: time 8.636e-05/0.6822, allocations: 120.2 kB / 0.5707 GB, free: 7.688 MB / 478.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.6822, allocations: 3.094 kB / 0.5707 GB, free: 7.688 MB / 478.1 MB Notification: Performance of remove unused functions: time 0.001362/0.6835, allocations: 387.9 kB / 0.5711 GB, free: 7.645 MB / 478.1 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.002065/0.6856, allocations: 0.8579 MB / 0.572 GB, free: 7.492 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.001697/0.6873, allocations: 0.6624 MB / 0.5726 GB, free: 7.48 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 4.248e-06/0.6873, allocations: 0 / 0.5726 GB, free: 7.48 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001009/0.6883, allocations: 0.5387 MB / 0.5731 GB, free: 7.254 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006955/0.6891, allocations: 97.56 kB / 0.5732 GB, free: 7.246 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001931/0.691, allocations: 0.9857 MB / 0.5742 GB, free: 6.75 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003133/0.6913, allocations: 0.7873 MB / 0.575 GB, free: 6.047 MB / 478.1 MB Notification: Performance of simCode: alias equations: time 0.0007458/0.6921, allocations: 186.3 kB / 0.5751 GB, free: 5.961 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000279/0.6924, allocations: 63.55 kB / 0.5752 GB, free: 5.949 MB / 478.1 MB Notification: Performance of SimCode: time 4.51e-07/0.6924, allocations: 3.094 kB / 0.5752 GB, free: 5.949 MB / 478.1 MB Notification: Performance of Templates: time 0.0231/0.7155, allocations: 16.19 MB / 0.591 GB, free: 0.9531 MB / 478.1 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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Media.Examples.MixtureGases.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches