Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Media.Examples.TestOnly.MixIdealGasAir.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 3.2.3+maint.om/package.mo", uses=false) 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 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.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="Modelica_3.2.3_Modelica.Media.Examples.TestOnly.MixIdealGasAir") translateModel(Modelica.Media.Examples.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="Modelica_3.2.3_Modelica.Media.Examples.TestOnly.MixIdealGasAir") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001001/0.001001, allocations: 99.38 kB / 17.3 MB, free: 6.395 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.001297/0.001297, allocations: 177.5 kB / 18.2 MB, free: 5.555 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.36/1.36, allocations: 205.4 MB / 224.4 MB, free: 13.08 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.0004484/0.0004484, allocations: 12 kB / 281.4 MB, free: 3.441 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1183/0.1188, allocations: 47.58 MB / 329 MB, free: 3.785 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Media.Examples.TestOnly.MixIdealGasAir): time 0.4054/0.5243, allocations: 147 MB / 476 MB, free: 6.754 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.003539/0.5279, allocations: 3.093 MB / 479.1 MB, free: 3.672 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.286e-05/0.528, allocations: 0 / 479.1 MB, free: 3.672 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003124/0.5283, allocations: 67.7 kB / 479.1 MB, free: 3.605 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001951/0.5302, allocations: 0.9197 MB / 480.1 MB, free: 2.684 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004608/0.5307, allocations: 184.8 kB / 480.2 MB, free: 2.504 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.000508/0.5312, allocations: 482.5 kB / 480.7 MB, free: 2.031 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.636e-05/0.5313, allocations: 13.08 kB / 480.7 MB, free: 2.02 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002196/0.5315, allocations: 135.5 kB / 480.9 MB, free: 1.887 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001815/0.5317, allocations: 115.6 kB / 481 MB, free: 1.773 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 2.372e-05/0.5318, allocations: 8 kB / 481 MB, free: 1.766 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00261/0.5344, allocations: 1.722 MB / 482.7 MB, free: 40 kB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000106/0.5345, allocations: 79.86 kB / 482.8 MB, free: 15.96 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001347/0.5346, allocations: 125.2 kB / 482.9 MB, free: 15.83 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001405/0.536, allocations: 1.111 MB / 484 MB, free: 14.72 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.196e-06/0.5361, allocations: 0 / 484 MB, free: 14.72 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.815e-06/0.5361, allocations: 7.984 kB / 484 MB, free: 14.71 MB / 382.1 MB Notification: Performance of Transformations before backend: time 4.979e-06/0.5361, allocations: 0 / 484 MB, free: 14.71 MB / 382.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 45 * Number of variables: 45 Notification: Performance of Generate backend data structure: time 0.0007189/0.5368, allocations: 0.4922 MB / 484.5 MB, free: 14.17 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.692e-05/0.5368, allocations: 8.031 kB / 484.5 MB, free: 14.16 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003928/0.5408, allocations: 380.2 kB / 484.9 MB, free: 13.79 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003486/0.5411, allocations: 256 kB / 485.1 MB, free: 13.5 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.963e-05/0.5412, allocations: 12.94 kB / 485.2 MB, free: 13.49 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.807e-05/0.5413, allocations: 23.94 kB / 485.2 MB, free: 13.47 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00102/0.5423, allocations: 493.3 kB / 485.7 MB, free: 12.98 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.331e-05/0.5423, allocations: 15.92 kB / 485.7 MB, free: 12.96 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.537e-05/0.5424, allocations: 7.984 kB / 485.7 MB, free: 12.95 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.334e-06/0.5424, allocations: 4 kB / 485.7 MB, free: 12.95 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001105/0.5435, allocations: 0.5114 MB / 486.2 MB, free: 12.44 MB / 382.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.002367/0.5459, allocations: 0.9936 MB / 487.2 MB, free: 11.39 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005949/0.5465, allocations: 300.7 kB / 487.5 MB, free: 11.08 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003001/0.5468, allocations: 149.6 kB / 487.6 MB, free: 10.93 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001723/0.5486, allocations: 0.8931 MB / 488.5 MB, free: 9.891 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.987e-05/0.5486, allocations: 30.56 kB / 488.6 MB, free: 9.852 MB / 382.1 MB Notification: Performance of pre-optimization done (n=29): time 2.304e-06/0.5486, allocations: 4 kB / 488.6 MB, free: 9.848 MB / 382.1 MB Notification: Performance of matching and sorting (n=29): time 0.0009325/0.5495, allocations: 409.5 kB / 489 MB, free: 9.441 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.967e-05/0.5496, allocations: 77.11 kB / 489 MB, free: 9.348 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.665e-05/0.5497, allocations: 121.8 kB / 489.2 MB, free: 9.219 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 3.848e-05/0.5497, allocations: 33.7 kB / 489.2 MB, free: 9.18 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.556e-05/0.5498, allocations: 108.4 kB / 489.3 MB, free: 9.066 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.885e-05/0.5499, allocations: 106.4 kB / 489.4 MB, free: 8.961 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.379e-05/0.55, allocations: 33.7 kB / 489.4 MB, free: 8.922 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001008/0.5501, allocations: 326.8 kB / 489.7 MB, free: 8.594 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002333/0.5503, allocations: 116.6 kB / 489.9 MB, free: 8.48 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000308/0.5506, allocations: 205.6 kB / 490.1 MB, free: 8.246 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005463/0.5512, allocations: 338.1 kB / 490.4 MB, free: 7.879 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.126e-06/0.5512, allocations: 0 / 490.4 MB, free: 7.879 MB / 382.1 MB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0007265/0.5519, allocations: 385.8 kB / 490.8 MB, free: 7.496 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.929e-05/0.552, allocations: 8 kB / 490.8 MB, free: 7.488 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.157e-06/0.552, allocations: 4 kB / 490.8 MB, free: 7.484 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.598e-05/0.552, allocations: 4 kB / 490.8 MB, free: 7.48 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000433/0.5524, allocations: 71.89 kB / 490.9 MB, free: 7.41 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.287e-05/0.5525, allocations: 4 kB / 490.9 MB, free: 7.406 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003207/0.5528, allocations: 40.08 kB / 490.9 MB, free: 7.367 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.73e-05/0.5528, allocations: 12 kB / 490.9 MB, free: 7.355 MB / 382.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 (39): * Single equations (assignments): 39 * Array equations: 0 * 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.0001326/0.553, allocations: 145.7 kB / 491.1 MB, free: 7.203 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.876e-05/0.5531, allocations: 23.75 kB / 491.1 MB, free: 7.18 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000779/0.5539, allocations: 367 kB / 491.4 MB, free: 6.82 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.794e-06/0.5539, allocations: 4 kB / 491.4 MB, free: 6.816 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.439e-06/0.5539, allocations: 0 / 491.4 MB, free: 6.816 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.282e-06/0.5539, allocations: 7.938 kB / 491.4 MB, free: 6.809 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005771/0.5545, allocations: 368.5 kB / 491.8 MB, free: 6.398 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.918e-06/0.5545, allocations: 4 kB / 491.8 MB, free: 6.395 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004469/0.555, allocations: 59.89 kB / 491.9 MB, free: 6.336 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.95e-06/0.555, allocations: 4 kB / 491.9 MB, free: 6.332 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.505e-05/0.555, allocations: 11.98 kB / 491.9 MB, free: 6.32 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.204e-06/0.555, allocations: 320 / 491.9 MB, free: 6.32 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.303e-06/0.555, allocations: 4 kB / 491.9 MB, free: 6.316 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008808/0.5559, allocations: 0.5492 MB / 492.4 MB, free: 5.75 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.738e-05/0.556, allocations: 92.86 kB / 492.5 MB, free: 5.641 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.122e-05/0.556, allocations: 8.062 kB / 492.5 MB, free: 5.633 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004271/0.5565, allocations: 20.86 kB / 492.6 MB, free: 5.613 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.534e-05/0.5565, allocations: 23.91 kB / 492.6 MB, free: 5.59 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.83e-05/0.5566, allocations: 15.98 kB / 492.6 MB, free: 5.574 MB / 382.1 MB Notification: Performance of sorting global known variables: time 4.921e-05/0.5566, allocations: 95.25 kB / 492.7 MB, free: 5.48 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.5566, allocations: 0 / 492.7 MB, free: 5.48 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0009235/0.5576, allocations: 235.8 kB / 492.9 MB, free: 5.25 MB / 382.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 (29): * Single equations (assignments): 29 * Array equations: 0 * 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.001111/0.5587, allocations: 422.7 kB / 493.3 MB, free: 4.824 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0006252/0.5593, allocations: 297.5 kB / 493.6 MB, free: 4.535 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 3.717e-06/0.5593, allocations: 0.625 kB / 493.6 MB, free: 4.535 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002692/0.5596, allocations: 151.8 kB / 493.8 MB, free: 4.387 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007094/0.5603, allocations: 88.23 kB / 493.9 MB, free: 4.301 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001244/0.5616, allocations: 0.926 MB / 494.8 MB, free: 3.348 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002865/0.5619, allocations: 0.7365 MB / 495.5 MB, free: 2.586 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0005062/0.5624, allocations: 81.83 kB / 495.6 MB, free: 2.504 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001268/0.5625, allocations: 31.42 kB / 495.6 MB, free: 2.473 MB / 382.1 MB Notification: Performance of SimCode: time 6.41e-07/0.5625, allocations: 0 / 495.6 MB, free: 2.473 MB / 382.1 MB Notification: Performance of Templates: time 0.01349/0.576, allocations: 8.243 MB / 0.4921 GB, free: 10.23 MB / 398.1 MB make -j1 -f Modelica_3.2.3_Modelica.Media.Examples.TestOnly.MixIdealGasAir.makefile (rm -f Modelica_3.2.3_Modelica.Media.Examples.TestOnly.MixIdealGasAir.pipe ; mkfifo Modelica_3.2.3_Modelica.Media.Examples.TestOnly.MixIdealGasAir.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Media.Examples.TestOnly.MixIdealGasAir.pipe >> ../files/Modelica_3.2.3_Modelica.Media.Examples.TestOnly.MixIdealGasAir.sim & ./Modelica_3.2.3_Modelica.Media.Examples.TestOnly.MixIdealGasAir -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Media.Examples.TestOnly.MixIdealGasAir.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Media.Examples.TestOnly.MixIdealGasAir_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Media/Examples/TestOnly/MixIdealGasAir/MixIdealGasAir.csv","../files/Modelica_3.2.3_Modelica.Media.Examples.TestOnly.MixIdealGasAir.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches