Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.1.0_ModelicaTest.Media.TestOnly.MixIdealGasAir.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.0009033/0.0009033, allocations: 79.7 kB / 20.67 MB, free: 3.891 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.0008354/0.0008354, allocations: 174 kB / 23.95 MB, free: 0.6094 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 0.9195/0.9195, allocations: 177.1 MB / 204.3 MB, free: 5.711 MB / 186.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0+maint.om/package.mo): time 0.2671/0.2671, allocations: 34.25 MB / 294.9 MB, free: 0.7148 MB / 266.7 MB " [Timeout remaining time 180] Using package ModelicaTest with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0+maint.om/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.Media.TestOnly.MixIdealGasAir,fileNamePrefix="ModelicaTest_4_1_0_ModelicaTest_Media_TestOnly_MixIdealGasAir",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Media.TestOnly.MixIdealGasAir,fileNamePrefix="ModelicaTest_4_1_0_ModelicaTest_Media_TestOnly_MixIdealGasAir",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 2.094e-06/2.094e-06, allocations: 0 / 442.2 MB, free: 1.688 MB / 410.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.306e-05/2.516e-05, allocations: 6.281 kB / 442.2 MB, free: 1.68 MB / 410.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Media.TestOnly.MixIdealGasAir): time 0.3484/0.3485, allocations: 131.8 MB / 0.5605 GB, free: 12.71 MB / 474.7 MB Notification: Performance of NFInst.instExpressions: time 0.002837/0.3513, allocations: 2.909 MB / 0.5634 GB, free: 9.793 MB / 474.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001011/0.3514, allocations: 11.88 kB / 0.5634 GB, free: 9.781 MB / 474.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0004041/0.3518, allocations: 59.61 kB / 0.5634 GB, free: 9.723 MB / 474.7 MB Notification: Performance of NFTyping.typeBindings: time 0.002173/0.354, allocations: 1.118 MB / 0.5645 GB, free: 8.602 MB / 474.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003962/0.3544, allocations: 216.7 kB / 0.5647 GB, free: 8.398 MB / 474.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003509/0.3547, allocations: 372.3 kB / 0.5651 GB, free: 8.035 MB / 474.7 MB Notification: Performance of NFFlatten.resolveConnections: time 5.482e-05/0.3548, allocations: 5.312 kB / 0.5651 GB, free: 8.031 MB / 474.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002828/0.3551, allocations: 215.3 kB / 0.5653 GB, free: 7.82 MB / 474.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004993/0.3556, allocations: 103.7 kB / 0.5654 GB, free: 7.719 MB / 474.7 MB Notification: Performance of NFPackage.collectConstants: time 2.537e-05/0.3556, allocations: 12 kB / 0.5654 GB, free: 7.707 MB / 474.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002045/0.3576, allocations: 1.352 MB / 0.5667 GB, free: 6.352 MB / 474.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001073/0.3577, allocations: 83.77 kB / 0.5668 GB, free: 6.27 MB / 474.7 MB Notification: Performance of NFVerifyModel.verify: time 8.614e-05/0.3578, allocations: 87.81 kB / 0.5669 GB, free: 6.184 MB / 474.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001336/0.3592, allocations: 1.076 MB / 0.568 GB, free: 5.105 MB / 474.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.67e-06/0.3592, allocations: 3.984 kB / 0.568 GB, free: 5.102 MB / 474.7 MB Notification: Performance of FrontEnd: time 1.563e-06/0.3592, allocations: 3.938 kB / 0.568 GB, free: 5.098 MB / 474.7 MB Notification: Performance of Transformations before backend: time 6.102e-06/0.3592, allocations: 0 / 0.568 GB, free: 5.098 MB / 474.7 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.0007549/0.3599, allocations: 497.8 kB / 0.5684 GB, free: 4.586 MB / 474.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.644e-05/0.36, allocations: 12.03 kB / 0.5685 GB, free: 4.574 MB / 474.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.15e-05/0.36, allocations: 54.72 kB / 0.5685 GB, free: 4.512 MB / 474.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008255/0.3609, allocations: 212.6 kB / 0.5687 GB, free: 4.305 MB / 474.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005368/0.3614, allocations: 189.5 kB / 0.5689 GB, free: 4.094 MB / 474.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.721e-05/0.3614, allocations: 16.75 kB / 0.5689 GB, free: 4.078 MB / 474.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.058e-05/0.3615, allocations: 23.94 kB / 0.5689 GB, free: 4.055 MB / 474.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000517/0.362, allocations: 0.5803 MB / 0.5695 GB, free: 3.418 MB / 474.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.084e-05/0.362, allocations: 0 / 0.5695 GB, free: 3.418 MB / 474.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.076e-05/0.362, allocations: 13.5 kB / 0.5695 GB, free: 3.406 MB / 474.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.2e-05/0.362, allocations: 8 kB / 0.5695 GB, free: 3.398 MB / 474.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004045/0.3624, allocations: 417.9 kB / 0.5699 GB, free: 2.992 MB / 474.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.001217/0.3637, allocations: 0.766 MB / 0.5707 GB, free: 2.18 MB / 474.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003192/0.364, allocations: 227.9 kB / 0.5709 GB, free: 1.945 MB / 474.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000132/0.3641, allocations: 125.6 kB / 0.571 GB, free: 1.816 MB / 474.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0008672/0.365, allocations: 306.4 kB / 0.5713 GB, free: 1.52 MB / 474.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.166e-05/0.365, allocations: 38.56 kB / 0.5713 GB, free: 1.473 MB / 474.7 MB Notification: Performance of pre-optimization done (n=31): time 2.295e-06/0.365, allocations: 0 / 0.5713 GB, free: 1.473 MB / 474.7 MB Notification: Performance of matching and sorting (n=31): time 0.0008223/0.3658, allocations: 393.1 kB / 0.5717 GB, free: 1.086 MB / 474.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.57e-05/0.3659, allocations: 81.11 kB / 0.5718 GB, free: 0.9883 MB / 474.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.332e-05/0.366, allocations: 117.8 kB / 0.5719 GB, free: 0.8633 MB / 474.7 MB Notification: Performance of collectPreVariables (initialization): time 2.815e-05/0.366, allocations: 29.7 kB / 0.5719 GB, free: 0.8281 MB / 474.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.916e-05/0.3661, allocations: 114.9 kB / 0.572 GB, free: 0.7148 MB / 474.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.134e-05/0.3661, allocations: 119 kB / 0.5721 GB, free: 0.5977 MB / 474.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.613e-05/0.3662, allocations: 62.02 kB / 0.5722 GB, free: 0.5312 MB / 474.7 MB Notification: Performance of setup shared object (initialization): time 9.248e-05/0.3663, allocations: 326.8 kB / 0.5725 GB, free: 208 kB / 474.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001295/0.3664, allocations: 104.3 kB / 0.5726 GB, free: 104 kB / 474.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001807/0.3666, allocations: 186.9 kB / 0.5728 GB, free: 15.88 MB / 490.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003059/0.3669, allocations: 315.5 kB / 0.5731 GB, free: 15.54 MB / 490.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.779e-06/0.3669, allocations: 8 kB / 0.5731 GB, free: 15.54 MB / 490.7 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.0004017/0.3673, allocations: 356.9 kB / 0.5734 GB, free: 15.18 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.91e-05/0.3673, allocations: 8 kB / 0.5734 GB, free: 15.18 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.215e-06/0.3673, allocations: 0 / 0.5734 GB, free: 15.18 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.689e-05/0.3674, allocations: 4 kB / 0.5735 GB, free: 15.17 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001871/0.3675, allocations: 76.2 kB / 0.5735 GB, free: 15.1 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.024e-05/0.3676, allocations: 8 kB / 0.5735 GB, free: 15.09 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001169/0.3677, allocations: 23.84 kB / 0.5736 GB, free: 15.07 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.185e-05/0.3677, allocations: 23.98 kB / 0.5736 GB, free: 15.04 MB / 490.7 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.0001366/0.3679, allocations: 142.8 kB / 0.5737 GB, free: 14.89 MB / 490.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.232e-05/0.3679, allocations: 23.78 kB / 0.5737 GB, free: 14.87 MB / 490.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004922/0.3684, allocations: 335.6 kB / 0.5741 GB, free: 14.54 MB / 490.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.116e-05/0.3684, allocations: 7.938 kB / 0.5741 GB, free: 14.54 MB / 490.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.495e-06/0.3684, allocations: 0 / 0.5741 GB, free: 14.54 MB / 490.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.653e-06/0.3685, allocations: 0 / 0.5741 GB, free: 14.54 MB / 490.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004307/0.3689, allocations: 286.3 kB / 0.5743 GB, free: 14.21 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.887e-06/0.3689, allocations: 0 / 0.5743 GB, free: 14.21 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001722/0.3691, allocations: 55.97 kB / 0.5744 GB, free: 14.16 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.392e-06/0.3691, allocations: 4 kB / 0.5744 GB, free: 14.16 MB / 490.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.296e-05/0.3691, allocations: 11.98 kB / 0.5744 GB, free: 14.14 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.845e-06/0.3691, allocations: 0 / 0.5744 GB, free: 14.14 MB / 490.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.925e-06/0.3691, allocations: 7.938 kB / 0.5744 GB, free: 14.14 MB / 490.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005887/0.3697, allocations: 0.5272 MB / 0.5749 GB, free: 13.6 MB / 490.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.508e-05/0.3697, allocations: 15.89 kB / 0.5749 GB, free: 13.58 MB / 490.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.067e-05/0.3697, allocations: 8.047 kB / 0.575 GB, free: 13.57 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001584/0.3699, allocations: 12 kB / 0.575 GB, free: 13.56 MB / 490.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.414e-05/0.3699, allocations: 27.95 kB / 0.575 GB, free: 13.54 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.901e-05/0.37, allocations: 15.98 kB / 0.575 GB, free: 13.52 MB / 490.7 MB Notification: Performance of sorting global known variables: time 4.347e-05/0.37, allocations: 91.27 kB / 0.5751 GB, free: 13.43 MB / 490.7 MB Notification: Performance of sort global known variables: time 7.1e-08/0.37, allocations: 0 / 0.5751 GB, free: 13.43 MB / 490.7 MB Notification: Performance of remove unused functions: time 0.0007533/0.3708, allocations: 239.3 kB / 0.5753 GB, free: 13.2 MB / 490.7 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.001755/0.3725, allocations: 1.424 MB / 0.5767 GB, free: 11.75 MB / 490.7 MB Notification: Performance of simCode: created initialization part: time 0.0004076/0.3729, allocations: 262.6 kB / 0.577 GB, free: 11.49 MB / 490.7 MB Notification: Performance of simCode: created event and clocks part: time 3.176e-06/0.3729, allocations: 0 / 0.577 GB, free: 11.49 MB / 490.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001401/0.3731, allocations: 140.3 kB / 0.5771 GB, free: 11.36 MB / 490.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000445/0.3735, allocations: 86 kB / 0.5772 GB, free: 11.28 MB / 490.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002474/0.376, allocations: 2.595 MB / 0.5797 GB, free: 8.547 MB / 490.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001088/0.3761, allocations: 127.9 kB / 0.5798 GB, free: 8.398 MB / 490.7 MB Notification: Performance of simCode: alias equations: time 0.0002362/0.3763, allocations: 74.02 kB / 0.5799 GB, free: 8.328 MB / 490.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001139/0.3764, allocations: 60.48 kB / 0.58 GB, free: 8.27 MB / 490.7 MB Notification: Performance of SimCode: time 1.092e-06/0.3764, allocations: 0 / 0.58 GB, free: 8.27 MB / 490.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03298/0.4094, allocations: 11.99 MB / 0.5917 GB, free: 12.48 MB / 0.4948 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.214/7.624, allocations: 6.719 kB / 0.5917 GB, free: 12.47 MB / 0.4948 GB " [Timeout remaining time 652] (rm -f ModelicaTest_4.1.0_ModelicaTest.Media.TestOnly.MixIdealGasAir.pipe ; mkfifo ModelicaTest_4.1.0_ModelicaTest.Media.TestOnly.MixIdealGasAir.pipe ; head -c 1048576 < ModelicaTest_4.1.0_ModelicaTest.Media.TestOnly.MixIdealGasAir.pipe >> ../files/ModelicaTest_4.1.0_ModelicaTest.Media.TestOnly.MixIdealGasAir.sim & python3 -m fmpy simulate --output-file ModelicaTest_4.1.0_ModelicaTest.Media.TestOnly.MixIdealGasAir_res.csv --start-time 0 --stop-time 1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.00019992 ModelicaTest_4_1_0_ModelicaTest_Media_TestOnly_MixIdealGasAir.fmu > ModelicaTest_4.1.0_ModelicaTest.Media.TestOnly.MixIdealGasAir.pipe 2>&1) [Timeout 52.5] diffSimulationResults("ModelicaTest_4.1.0_ModelicaTest.Media.TestOnly.MixIdealGasAir_res.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/ModelicaTest/Media/TestOnly/MixIdealGasAir/MixIdealGasAir.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.1.0_ModelicaTest.Media.TestOnly.MixIdealGasAir.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "Error: Could not read variable medium2.p in file ModelicaTest_4.1.0_ModelicaTest.Media.TestOnly.MixIdealGasAir_res.csv. Warning: Get data of variable medium2.p from file ModelicaTest_4.1.0_ModelicaTest.Media.TestOnly.MixIdealGasAir_res.csv failed! " [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 9.820660111494362]