Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Media.TestOnly.MixIdealGasAir.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) 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/ModelicaTest trunk/package.mo", uses=false) Using package ModelicaTest with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 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) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: translateModel(ModelicaTest.Media.TestOnly.MixIdealGasAir,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|medium.T|medium.p|medium2.T|medium2.X.1.|medium2.X.2.|medium2.p",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.Media.TestOnly.MixIdealGasAir") translateModel(ModelicaTest.Media.TestOnly.MixIdealGasAir,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|medium.T|medium.p|medium2.T|medium2.X.1.|medium2.X.2.|medium2.p",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.Media.TestOnly.MixIdealGasAir") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001203/0.001203, allocations: 115.8 kB / 18.4 MB, free: 4.621 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001242/0.001242, allocations: 199.5 kB / 19.34 MB, free: 3.68 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.386/1.386, allocations: 227.4 MB / 247.5 MB, free: 10.36 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2157/0.2157, allocations: 46.09 MB / 344.9 MB, free: 11.48 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001657/0.001658, allocations: 71.89 kB / 419 MB, free: 19 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1409/0.1426, allocations: 62.45 MB / 481.5 MB, free: 4.512 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Media.TestOnly.MixIdealGasAir): time 0.4782/0.6208, allocations: 152.8 MB / 0.6194 GB, free: 10.02 MB / 462.1 MB Notification: Performance of NFInst.instExpressions: time 0.003723/0.6246, allocations: 3.247 MB / 0.6225 GB, free: 6.781 MB / 462.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.886e-05/0.6247, allocations: 0 / 0.6225 GB, free: 6.781 MB / 462.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004276/0.6252, allocations: 67.64 kB / 0.6226 GB, free: 6.715 MB / 462.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003176/0.6284, allocations: 1.066 MB / 0.6236 GB, free: 5.648 MB / 462.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00063/0.629, allocations: 191.5 kB / 0.6238 GB, free: 5.465 MB / 462.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005743/0.6296, allocations: 370.6 kB / 0.6242 GB, free: 5.102 MB / 462.1 MB Notification: Performance of NFFlatten.resolveConnections: time 7.596e-05/0.6297, allocations: 17.09 kB / 0.6242 GB, free: 5.086 MB / 462.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000347/0.6301, allocations: 151.5 kB / 0.6243 GB, free: 4.938 MB / 462.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000246/0.6303, allocations: 119.6 kB / 0.6245 GB, free: 4.82 MB / 462.1 MB Notification: Performance of NFPackage.collectConstants: time 3.117e-05/0.6304, allocations: 12 kB / 0.6245 GB, free: 4.809 MB / 462.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003353/0.6337, allocations: 1.527 MB / 0.626 GB, free: 3.277 MB / 462.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001277/0.6339, allocations: 91.7 kB / 0.626 GB, free: 3.188 MB / 462.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001286/0.634, allocations: 99.59 kB / 0.6261 GB, free: 3.09 MB / 462.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00162/0.6356, allocations: 1.015 MB / 0.6271 GB, free: 2.074 MB / 462.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.869e-06/0.6356, allocations: 0 / 0.6271 GB, free: 2.074 MB / 462.1 MB Notification: Performance of FrontEnd: time 2.274e-06/0.6357, allocations: 0 / 0.6271 GB, free: 2.074 MB / 462.1 MB Notification: Performance of Transformations before backend: time 8.727e-06/0.6357, allocations: 0 / 0.6271 GB, free: 2.074 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: 47 * Number of variables: 47 Notification: Performance of Generate backend data structure: time 0.0009994/0.6367, allocations: 0.554 MB / 0.6277 GB, free: 1.473 MB / 462.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.377e-05/0.6367, allocations: 11.97 kB / 0.6277 GB, free: 1.461 MB / 462.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001392/0.6381, allocations: 208.5 kB / 0.6279 GB, free: 1.258 MB / 462.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003749/0.6385, allocations: 260.2 kB / 0.6281 GB, free: 0.9648 MB / 462.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.051e-05/0.6385, allocations: 16.31 kB / 0.6281 GB, free: 0.9492 MB / 462.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.094e-05/0.6386, allocations: 20 kB / 0.6282 GB, free: 0.9297 MB / 462.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005666/0.6392, allocations: 380.1 kB / 0.6285 GB, free: 0.5469 MB / 462.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.172e-05/0.6392, allocations: 0 / 0.6285 GB, free: 0.5469 MB / 462.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.06e-05/0.6392, allocations: 12 kB / 0.6285 GB, free: 0.5352 MB / 462.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.207e-05/0.6393, allocations: 4 kB / 0.6285 GB, free: 0.5312 MB / 462.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005434/0.6398, allocations: 424.4 kB / 0.629 GB, free: 120 kB / 462.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.001641/0.6415, allocations: 0.8183 MB / 0.6297 GB, free: 15.25 MB / 478.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003781/0.6419, allocations: 241.9 kB / 0.63 GB, free: 14.99 MB / 478.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001939/0.6421, allocations: 121.7 kB / 0.6301 GB, free: 14.87 MB / 478.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001639/0.6437, allocations: 0.9762 MB / 0.631 GB, free: 13.73 MB / 478.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.772e-05/0.6438, allocations: 34.56 kB / 0.6311 GB, free: 13.68 MB / 478.1 MB Notification: Performance of pre-optimization done (n=31): time 1.593e-06/0.6438, allocations: 8 kB / 0.6311 GB, free: 13.68 MB / 478.1 MB Notification: Performance of matching and sorting (n=31): time 0.001114/0.6449, allocations: 377.8 kB / 0.6315 GB, free: 13.3 MB / 478.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.486e-05/0.645, allocations: 81.11 kB / 0.6315 GB, free: 13.2 MB / 478.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001025/0.6451, allocations: 115.4 kB / 0.6316 GB, free: 13.08 MB / 478.1 MB Notification: Performance of collectPreVariables (initialization): time 3.347e-05/0.6451, allocations: 33.64 kB / 0.6317 GB, free: 13.04 MB / 478.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.144e-05/0.6452, allocations: 108.4 kB / 0.6318 GB, free: 12.93 MB / 478.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.385e-05/0.6453, allocations: 122.3 kB / 0.6319 GB, free: 12.81 MB / 478.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001014/0.6454, allocations: 62.03 kB / 0.6319 GB, free: 12.74 MB / 478.1 MB Notification: Performance of setup shared object (initialization): time 0.0001129/0.6455, allocations: 330.8 kB / 0.6323 GB, free: 12.41 MB / 478.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001836/0.6457, allocations: 100.3 kB / 0.6324 GB, free: 12.31 MB / 478.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002351/0.6459, allocations: 194.8 kB / 0.6325 GB, free: 12.09 MB / 478.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004701/0.6464, allocations: 319.5 kB / 0.6329 GB, free: 11.74 MB / 478.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.939e-06/0.6464, allocations: 3.938 kB / 0.6329 GB, free: 11.74 MB / 478.1 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.0005761/0.647, allocations: 353.3 kB / 0.6332 GB, free: 11.39 MB / 478.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.947e-05/0.647, allocations: 4 kB / 0.6332 GB, free: 11.38 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.945e-06/0.6471, allocations: 4 kB / 0.6332 GB, free: 11.38 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.822e-05/0.6471, allocations: 4 kB / 0.6332 GB, free: 11.38 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003061/0.6474, allocations: 71.84 kB / 0.6333 GB, free: 11.3 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.093e-05/0.6474, allocations: 4 kB / 0.6333 GB, free: 11.3 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002035/0.6476, allocations: 35.67 kB / 0.6333 GB, free: 11.27 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.228e-05/0.6477, allocations: 18.69 kB / 0.6333 GB, free: 11.25 MB / 478.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 12 * 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 (40): * Single equations (assignments): 39 * Array equations: 1 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001383/0.6478, allocations: 153.8 kB / 0.6335 GB, free: 11.09 MB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.148e-05/0.6479, allocations: 11.91 kB / 0.6335 GB, free: 11.08 MB / 478.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006451/0.6486, allocations: 341 kB / 0.6338 GB, free: 10.74 MB / 478.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.246e-05/0.6486, allocations: 4 kB / 0.6338 GB, free: 10.74 MB / 478.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.13e-06/0.6486, allocations: 0 / 0.6338 GB, free: 10.74 MB / 478.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.935e-06/0.6486, allocations: 3.984 kB / 0.6338 GB, free: 10.73 MB / 478.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005453/0.6492, allocations: 334.9 kB / 0.6341 GB, free: 10.36 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.054e-06/0.6492, allocations: 0 / 0.6341 GB, free: 10.36 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003048/0.6495, allocations: 55.97 kB / 0.6342 GB, free: 10.3 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.705e-06/0.6495, allocations: 0 / 0.6342 GB, free: 10.3 MB / 478.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.742e-05/0.6495, allocations: 12 kB / 0.6342 GB, free: 10.29 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.33e-06/0.6495, allocations: 7.938 kB / 0.6342 GB, free: 10.29 MB / 478.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.292e-06/0.6495, allocations: 0 / 0.6342 GB, free: 10.29 MB / 478.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007566/0.6503, allocations: 0.5223 MB / 0.6347 GB, free: 9.746 MB / 478.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.742e-05/0.6504, allocations: 96.89 kB / 0.6348 GB, free: 9.633 MB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.474e-05/0.6504, allocations: 4.062 kB / 0.6348 GB, free: 9.629 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002953/0.6507, allocations: 19.98 kB / 0.6348 GB, free: 9.609 MB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.572e-05/0.6508, allocations: 19.97 kB / 0.6349 GB, free: 9.59 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.811e-05/0.6508, allocations: 19.98 kB / 0.6349 GB, free: 9.57 MB / 478.1 MB Notification: Performance of sorting global known variables: time 5.855e-05/0.6509, allocations: 87.28 kB / 0.635 GB, free: 9.484 MB / 478.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.6509, allocations: 0 / 0.635 GB, free: 9.484 MB / 478.1 MB Notification: Performance of remove unused functions: time 0.0008782/0.6518, allocations: 235.8 kB / 0.6352 GB, free: 9.254 MB / 478.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 6 (medium2.p,medium2.T,medium2.X[1],medium2.X[2],medium.p,medium.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 (30): * Single equations (assignments): 29 * Array equations: 1 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0009844/0.6527, allocations: 451.2 kB / 0.6356 GB, free: 8.805 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.0005103/0.6533, allocations: 275.3 kB / 0.6359 GB, free: 8.539 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 5.711e-06/0.6533, allocations: 4.625 kB / 0.6359 GB, free: 8.535 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002017/0.6535, allocations: 143.8 kB / 0.636 GB, free: 8.395 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006309/0.6541, allocations: 82.77 kB / 0.6361 GB, free: 8.316 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001128/0.6553, allocations: 0.7335 MB / 0.6368 GB, free: 7.551 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002904/0.6556, allocations: 0.7285 MB / 0.6375 GB, free: 6.797 MB / 478.1 MB Notification: Performance of simCode: alias equations: time 0.0002841/0.6559, allocations: 81.75 kB / 0.6376 GB, free: 6.719 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.556e-05/0.656, allocations: 35.44 kB / 0.6376 GB, free: 6.684 MB / 478.1 MB Notification: Performance of SimCode: time 6.72e-07/0.656, allocations: 3.938 kB / 0.6376 GB, free: 6.68 MB / 478.1 MB Notification: Performance of Templates: time 0.01352/0.6695, allocations: 8.525 MB / 0.646 GB, free: 14.2 MB / 494.1 MB make -j1 -f ModelicaTest_trunk_ModelicaTest.Media.TestOnly.MixIdealGasAir.makefile (rm -f ModelicaTest_trunk_ModelicaTest.Media.TestOnly.MixIdealGasAir.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Media.TestOnly.MixIdealGasAir.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Media.TestOnly.MixIdealGasAir.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Media.TestOnly.MixIdealGasAir.sim & ./ModelicaTest_trunk_ModelicaTest.Media.TestOnly.MixIdealGasAir -abortSlowSimulation -alarm=480 -s cvode -emit_protected -lv LOG_STATS > ModelicaTest_trunk_ModelicaTest.Media.TestOnly.MixIdealGasAir.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_ModelicaTest.Media.TestOnly.MixIdealGasAir_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Media/TestOnly/MixIdealGasAir/MixIdealGasAir.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_trunk_ModelicaTest.Media.TestOnly.MixIdealGasAir.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches