Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Media.Examples.MixtureGases.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+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_3.2.3_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_3.2.3_cpp_Modelica.Media.Examples.MixtureGases") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001736/0.001736, allocations: 175.9 kB / 17.41 MB, free: 4.285 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.425/1.425, allocations: 205.4 MB / 223.6 MB, free: 9.016 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0007786/0.0007788, allocations: 89.42 kB / 271.9 MB, free: 8.254 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003193/0.0003194, allocations: 8 kB / 328.1 MB, free: 15.95 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2578/0.2581, allocations: 47.56 MB / 375.7 MB, free: 45.41 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 1.345/1.603, allocations: 0.7381 GB / 1.105 GB, free: 29.92 MB / 426.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000217/1.604, allocations: 71.31 kB / 1.105 GB, free: 29.85 MB / 426.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.3517/1.955, allocations: 107.3 MB / 1.21 GB, free: 92.81 MB / 426.7 MB Notification: Performance of FrontEnd: time 1.803e-06/1.955, allocations: 0 / 1.21 GB, free: 92.81 MB / 426.7 MB Notification: Performance of Transformations before backend: time 1.243e-05/1.955, allocations: 8 kB / 1.21 GB, free: 92.8 MB / 426.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.002252/1.958, allocations: 0.7568 MB / 1.211 GB, free: 92 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.67e-05/1.958, allocations: 12.03 kB / 1.211 GB, free: 91.99 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001724/1.959, allocations: 240.3 kB / 1.211 GB, free: 91.75 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003861/1.96, allocations: 295.9 kB / 1.211 GB, free: 91.43 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.918e-05/1.96, allocations: 20.94 kB / 1.211 GB, free: 91.41 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.186e-05/1.96, allocations: 28.38 kB / 1.211 GB, free: 91.38 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001182/1.961, allocations: 0.6641 MB / 1.212 GB, free: 90.7 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.075e-05/1.961, allocations: 0 / 1.212 GB, free: 90.7 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.686e-05/1.961, allocations: 16 kB / 1.212 GB, free: 90.69 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.204e-05/1.961, allocations: 16.44 kB / 1.212 GB, free: 90.67 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001446/1.963, allocations: 0.7472 MB / 1.213 GB, free: 89.92 MB / 426.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.003143/1.966, allocations: 1.799 MB / 1.214 GB, free: 88.03 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001084/1.967, allocations: 476.8 kB / 1.215 GB, free: 87.54 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005231/1.968, allocations: 239.9 kB / 1.215 GB, free: 87.3 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001783/1.969, allocations: 1.352 MB / 1.216 GB, free: 85.73 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.696e-05/1.969, allocations: 38.5 kB / 1.216 GB, free: 85.68 MB / 426.7 MB Notification: Performance of pre-optimization done (n=35): time 3.116e-06/1.969, allocations: 0 / 1.216 GB, free: 85.68 MB / 426.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.0119/1.981, allocations: 3.637 MB / 1.22 GB, free: 81.84 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.059e-05/1.981, allocations: 89.09 kB / 1.22 GB, free: 81.73 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001253/1.982, allocations: 171.3 kB / 1.22 GB, free: 81.55 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 5.677e-05/1.982, allocations: 37.7 kB / 1.22 GB, free: 81.51 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.829e-05/1.982, allocations: 176 kB / 1.22 GB, free: 81.33 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001005/1.982, allocations: 169.6 kB / 1.221 GB, free: 81.16 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.008e-05/1.982, allocations: 16 kB / 1.221 GB, free: 81.15 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 5.178e-05/1.982, allocations: 334.8 kB / 1.221 GB, free: 80.81 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006285/1.983, allocations: 265.1 kB / 1.221 GB, free: 80.55 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006744/1.983, allocations: 429 kB / 1.222 GB, free: 80.07 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001297/1.985, allocations: 0.6933 MB / 1.222 GB, free: 79.31 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.445e-06/1.985, allocations: 0 / 1.222 GB, free: 79.31 MB / 426.7 MB Notification: Performance of matching and sorting (n=72) (initialization): time 0.00164/1.986, allocations: 0.7854 MB / 1.223 GB, free: 78.52 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.049e-05/1.986, allocations: 8.938 kB / 1.223 GB, free: 78.51 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.268e-06/1.986, allocations: 7.938 kB / 1.223 GB, free: 78.5 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001852/1.986, allocations: 58.31 kB / 1.223 GB, free: 78.44 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009557/1.987, allocations: 179.7 kB / 1.223 GB, free: 78.26 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0004188/1.988, allocations: 1.081 MB / 1.224 GB, free: 77.13 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006238/1.988, allocations: 47.86 kB / 1.224 GB, free: 77.08 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.434e-05/1.989, allocations: 35.98 kB / 1.224 GB, free: 77.05 MB / 426.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.0002067/1.989, allocations: 173.7 kB / 1.224 GB, free: 76.87 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.716e-05/1.989, allocations: 35.64 kB / 1.225 GB, free: 76.83 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001921/1.991, allocations: 0.7742 MB / 1.225 GB, free: 76.05 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.623e-06/1.991, allocations: 11.94 kB / 1.225 GB, free: 76.04 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.733e-06/1.991, allocations: 0 / 1.225 GB, free: 76.04 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.182e-06/1.991, allocations: 3.984 kB / 1.225 GB, free: 76.03 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002674/1.994, allocations: 1.574 MB / 1.227 GB, free: 74.36 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.199e-06/1.994, allocations: 4 kB / 1.227 GB, free: 74.36 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008733/1.994, allocations: 152 kB / 1.227 GB, free: 74.21 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001065/1.995, allocations: 37.69 kB / 1.227 GB, free: 74.17 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.524e-05/1.995, allocations: 23.98 kB / 1.227 GB, free: 74.14 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00109/1.996, allocations: 2.54 MB / 1.23 GB, free: 71.34 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.314e-06/1.996, allocations: 0 / 1.23 GB, free: 71.34 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002142/1.998, allocations: 1.083 MB / 1.231 GB, free: 70.21 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.251e-05/1.998, allocations: 96.83 kB / 1.231 GB, free: 70.09 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.218e-05/1.998, allocations: 16.03 kB / 1.231 GB, free: 70.08 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006601/1.999, allocations: 35.97 kB / 1.231 GB, free: 70.04 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.736e-05/1.999, allocations: 47.88 kB / 1.231 GB, free: 70 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.18e-05/1.999, allocations: 35.97 kB / 1.231 GB, free: 69.96 MB / 426.7 MB Notification: Performance of sorting global known variables: time 6.922e-05/1.999, allocations: 124.4 kB / 1.231 GB, free: 69.84 MB / 426.7 MB Notification: Performance of sort global known variables: time 1.3e-07/1.999, allocations: 0 / 1.231 GB, free: 69.84 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.001527/2, allocations: 439.6 kB / 1.231 GB, free: 69.41 MB / 426.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.002841/2.003, allocations: 1.15 MB / 1.232 GB, free: 68.26 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.00167/2.005, allocations: 0.6521 MB / 1.233 GB, free: 67.61 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 5.972e-06/2.005, allocations: 8 kB / 1.233 GB, free: 67.6 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0009117/2.006, allocations: 0.5287 MB / 1.234 GB, free: 67.05 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008322/2.007, allocations: 107.7 kB / 1.234 GB, free: 66.94 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00195/2.009, allocations: 1.211 MB / 1.235 GB, free: 65.67 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002416/2.009, allocations: 0.7813 MB / 1.236 GB, free: 64.87 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000439/2.009, allocations: 75.38 kB / 1.236 GB, free: 64.79 MB / 426.7 MB Notification: Performance of SimCode: time 4.71e-07/2.009, allocations: 0 / 1.236 GB, free: 64.79 MB / 426.7 MB Notification: Performance of Templates: time 0.02124/2.031, allocations: 17.21 MB / 1.253 GB, free: 47.55 MB / 426.7 MB make -j1 -f Modelica_3.2.3_cpp_Modelica.Media.Examples.MixtureGases.makefile (rm -f Modelica_3.2.3_cpp_Modelica.Media.Examples.MixtureGases.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Media.Examples.MixtureGases.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Media.Examples.MixtureGases.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Media.Examples.MixtureGases.sim & ./Modelica_3.2.3_cpp_Modelica.Media.Examples.MixtureGases --alarm=480 -emit_protected > Modelica_3.2.3_cpp_Modelica.Media.Examples.MixtureGases.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_cpp_Modelica.Media.Examples.MixtureGases_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Media/Examples/MixtureGases/MixtureGases.csv","../files/Modelica_3.2.3_cpp_Modelica.Media.Examples.MixtureGases.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches