Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_cpp_Modelica.Media.Examples.MixtureGases.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/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_cpp_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_cpp_Modelica.Media.Examples.MixtureGases") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001344/0.001344, allocations: 190.9 kB / 17.37 MB, free: 4.434 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.262/1.262, allocations: 226.6 MB / 244.7 MB, free: 6.445 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007742/0.0007741, allocations: 100.2 kB / 296.8 MB, free: 6.676 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002013/0.0002013, allocations: 11.98 kB / 356.7 MB, free: 10.71 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1861/0.1864, allocations: 51.3 MB / 408 MB, free: 27.69 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Media.Examples.MixtureGases): time 0.3049/0.4913, allocations: 138.4 MB / 0.5337 GB, free: 13.32 MB / 394.7 MB Notification: Performance of NFInst.instExpressions: time 0.003396/0.4947, allocations: 3.751 MB / 0.5373 GB, free: 13.07 MB / 394.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.847e-05/0.4948, allocations: 7.281 kB / 0.5373 GB, free: 13.07 MB / 394.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0003481/0.4952, allocations: 93.83 kB / 0.5374 GB, free: 13.05 MB / 394.7 MB Notification: Performance of NFTyping.typeBindings: time 0.002086/0.4973, allocations: 1.065 MB / 0.5385 GB, free: 12.84 MB / 394.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007702/0.4981, allocations: 339.3 kB / 0.5388 GB, free: 12.79 MB / 394.7 MB Notification: Performance of NFFlatten.flatten: time 0.0004821/0.4986, allocations: 0.5181 MB / 0.5393 GB, free: 12.71 MB / 394.7 MB Notification: Performance of NFFlatten.resolveConnections: time 4.366e-05/0.4986, allocations: 11.7 kB / 0.5393 GB, free: 12.71 MB / 394.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002872/0.4989, allocations: 203.3 kB / 0.5395 GB, free: 12.68 MB / 394.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001894/0.4991, allocations: 162.2 kB / 0.5396 GB, free: 12.66 MB / 394.7 MB Notification: Performance of NFPackage.collectConstants: time 3.465e-05/0.4992, allocations: 13.2 kB / 0.5397 GB, free: 12.66 MB / 394.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003489/0.5026, allocations: 2.561 MB / 0.5422 GB, free: 12.02 MB / 394.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001248/0.5028, allocations: 136.8 kB / 0.5423 GB, free: 11.96 MB / 394.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001717/0.503, allocations: 178.2 kB / 0.5425 GB, free: 11.89 MB / 394.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001415/0.5044, allocations: 1.232 MB / 0.5437 GB, free: 11.38 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.266e-06/0.5044, allocations: 0 / 0.5437 GB, free: 11.38 MB / 394.7 MB Notification: Performance of FrontEnd: time 1.794e-06/0.5044, allocations: 3.938 kB / 0.5437 GB, free: 11.38 MB / 394.7 MB Notification: Performance of Transformations before backend: time 5.2e-06/0.5044, allocations: 1.859 kB / 0.5437 GB, free: 11.38 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.001765/0.5062, allocations: 0.6938 MB / 0.5443 GB, free: 10.82 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.204e-05/0.5062, allocations: 14.44 kB / 0.5444 GB, free: 10.82 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002072/0.5083, allocations: 260.6 kB / 0.5446 GB, free: 10.71 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003536/0.5087, allocations: 289.8 kB / 0.5449 GB, free: 10.46 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.983e-05/0.5087, allocations: 17.94 kB / 0.5449 GB, free: 10.46 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.192e-05/0.5088, allocations: 31.64 kB / 0.5449 GB, free: 10.46 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001135/0.5099, allocations: 0.6732 MB / 0.5456 GB, free: 10.24 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.527e-05/0.51, allocations: 0 / 0.5456 GB, free: 10.24 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.622e-05/0.51, allocations: 13.38 kB / 0.5456 GB, free: 10.24 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.722e-05/0.5101, allocations: 18.2 kB / 0.5456 GB, free: 10.24 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001404/0.5115, allocations: 0.7608 MB / 0.5464 GB, free: 10.1 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.003467/0.515, allocations: 1.806 MB / 0.5481 GB, free: 8.969 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001098/0.5161, allocations: 487.1 kB / 0.5486 GB, free: 8.832 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005207/0.5166, allocations: 230 kB / 0.5488 GB, free: 8.777 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.002137/0.5187, allocations: 1.371 MB / 0.5502 GB, free: 7.516 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.634e-05/0.5188, allocations: 48.95 kB / 0.5502 GB, free: 7.465 MB / 394.7 MB Notification: Performance of pre-optimization done (n=35): time 1.944e-06/0.5188, allocations: 0 / 0.5502 GB, free: 7.465 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.01203/0.5308, allocations: 3.631 MB / 0.5537 GB, free: 5.766 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.87e-05/0.5309, allocations: 86.44 kB / 0.5538 GB, free: 5.668 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001417/0.531, allocations: 173 kB / 0.554 GB, free: 5.551 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 5.877e-05/0.5311, allocations: 37.45 kB / 0.554 GB, free: 5.516 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.237e-05/0.5312, allocations: 182.8 kB / 0.5542 GB, free: 5.355 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001237/0.5313, allocations: 167 kB / 0.5544 GB, free: 5.234 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.218e-05/0.5314, allocations: 13.94 kB / 0.5544 GB, free: 5.234 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0001044/0.5315, allocations: 338.1 kB / 0.5547 GB, free: 4.91 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006493/0.5322, allocations: 268.6 kB / 0.555 GB, free: 4.855 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007244/0.5329, allocations: 423.9 kB / 0.5554 GB, free: 4.609 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001408/0.5343, allocations: 0.6976 MB / 0.556 GB, free: 4.336 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.265e-06/0.5343, allocations: 0 / 0.556 GB, free: 4.336 MB / 394.7 MB Notification: Performance of matching and sorting (n=72) (initialization): time 0.001701/0.536, allocations: 0.7795 MB / 0.5568 GB, free: 4.133 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.678e-05/0.5361, allocations: 8 kB / 0.5568 GB, free: 4.133 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.376e-06/0.5361, allocations: 5.781 kB / 0.5568 GB, free: 4.133 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001815/0.5363, allocations: 56.03 kB / 0.5569 GB, free: 4.105 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001081/0.5373, allocations: 182.9 kB / 0.557 GB, free: 4.055 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.000648/0.538, allocations: 1.074 MB / 0.5581 GB, free: 3.004 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007151/0.5387, allocations: 52.64 kB / 0.5581 GB, free: 2.984 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.384e-05/0.5388, allocations: 35.14 kB / 0.5582 GB, free: 2.98 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 (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 2 {1 1,1 1} Notification: Performance of prepare postOptimizeDAE: time 0.0002198/0.539, allocations: 179.3 kB / 0.5583 GB, free: 2.844 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.746e-05/0.5391, allocations: 28.38 kB / 0.5584 GB, free: 2.832 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002017/0.5412, allocations: 0.7892 MB / 0.5591 GB, free: 2.559 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.536e-05/0.5412, allocations: 10.23 kB / 0.5592 GB, free: 2.555 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.682e-06/0.5412, allocations: 2.875 kB / 0.5592 GB, free: 2.555 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.262e-06/0.5412, allocations: 0 / 0.5592 GB, free: 2.555 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002916/0.5441, allocations: 1.559 MB / 0.5607 GB, free: 1.68 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.719e-06/0.5442, allocations: 2 kB / 0.5607 GB, free: 1.68 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009817/0.5452, allocations: 146.9 kB / 0.5608 GB, free: 1.637 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001319/0.5453, allocations: 44.97 kB / 0.5609 GB, free: 1.609 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.465e-05/0.5454, allocations: 26.16 kB / 0.5609 GB, free: 1.602 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001599/0.547, allocations: 2.542 MB / 0.5634 GB, free: 15.03 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.186e-06/0.547, allocations: 2.812 kB / 0.5634 GB, free: 15.03 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002248/0.5492, allocations: 1.072 MB / 0.5644 GB, free: 14.57 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 7.681e-05/0.5493, allocations: 108 kB / 0.5645 GB, free: 14.45 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.313e-05/0.5494, allocations: 15.97 kB / 0.5645 GB, free: 14.45 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007441/0.5502, allocations: 36.36 kB / 0.5646 GB, free: 14.44 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.001e-05/0.5502, allocations: 41.61 kB / 0.5646 GB, free: 14.42 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.155e-05/0.5503, allocations: 36.78 kB / 0.5646 GB, free: 14.41 MB / 410.7 MB Notification: Performance of sorting global known variables: time 8.18e-05/0.5504, allocations: 125.8 kB / 0.5648 GB, free: 14.32 MB / 410.7 MB Notification: Performance of sort global known variables: time 2.1e-07/0.5504, allocations: 0 / 0.5648 GB, free: 14.32 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.001296/0.5517, allocations: 415.7 kB / 0.5652 GB, free: 14.27 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 (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 1,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.002439/0.5542, allocations: 0.8581 MB / 0.566 GB, free: 13.87 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.001601/0.5558, allocations: 0.6405 MB / 0.5666 GB, free: 13.73 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 3.467e-06/0.5558, allocations: 4 kB / 0.5666 GB, free: 13.72 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0009178/0.5567, allocations: 0.5461 MB / 0.5672 GB, free: 13.41 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006962/0.5574, allocations: 104 kB / 0.5673 GB, free: 13.38 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001851/0.5593, allocations: 1.205 MB / 0.5684 GB, free: 12.55 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000319/0.5596, allocations: 0.7887 MB / 0.5692 GB, free: 11.81 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004225/0.56, allocations: 79.08 kB / 0.5693 GB, free: 11.78 MB / 410.7 MB Notification: Performance of SimCode: time 3.5e-07/0.5601, allocations: 4 kB / 0.5693 GB, free: 11.77 MB / 410.7 MB Notification: Performance of Templates: time 0.01848/0.5785, allocations: 14.73 MB / 0.5837 GB, free: 14.11 MB / 426.7 MB make -j1 -f Modelica_trunk_cpp_Modelica.Media.Examples.MixtureGases.makefile (rm -f Modelica_trunk_cpp_Modelica.Media.Examples.MixtureGases.pipe ; mkfifo Modelica_trunk_cpp_Modelica.Media.Examples.MixtureGases.pipe ; head -c 1048576 < Modelica_trunk_cpp_Modelica.Media.Examples.MixtureGases.pipe >> ../files/Modelica_trunk_cpp_Modelica.Media.Examples.MixtureGases.sim & ./Modelica_trunk_cpp_Modelica.Media.Examples.MixtureGases --alarm=480 -emit_protected > Modelica_trunk_cpp_Modelica.Media.Examples.MixtureGases.pipe 2>&1) diffSimulationResults("Modelica_trunk_cpp_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_cpp_Modelica.Media.Examples.MixtureGases.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches