Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.0.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.002018/0.002018, allocations: 113.1 kB / 20.43 MB, free: 1.457 MB / 14.72 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.002363/0.002363, allocations: 217 kB / 23.75 MB, free: 4.668 MB / 14.72 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 1.522/1.522, allocations: 230.6 MB / 257.5 MB, free: 8.004 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.2249/0.2249, allocations: 44.91 MB / 358.8 MB, free: 6.293 MB / 286.1 MB " [Timeout remaining time 179] Using package ModelicaTest with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.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_0_0_ModelicaTest_Media_TestOnly_MixIdealGasAir",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Media.TestOnly.MixIdealGasAir,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Media_TestOnly_MixIdealGasAir",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: ModelicaTest requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.002859/0.002859, allocations: 71.89 kB / 0.4931 GB, free: 10.74 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3629/0.3658, allocations: 65.46 MB / 0.557 GB, free: 7.547 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Media.TestOnly.MixIdealGasAir): time 0.1883/0.5541, allocations: 153.3 MB / 0.7067 GB, free: 13.94 MB / 0.545 GB Notification: Performance of NFInst.instExpressions: time 0.004158/0.5582, allocations: 3.154 MB / 0.7098 GB, free: 10.78 MB / 0.545 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001355/0.5584, allocations: 4 kB / 0.7098 GB, free: 10.77 MB / 0.545 GB Notification: Performance of NFTyping.typeComponents: time 0.0003964/0.5588, allocations: 67.64 kB / 0.7098 GB, free: 10.71 MB / 0.545 GB Notification: Performance of NFTyping.typeBindings: time 0.002732/0.5615, allocations: 1.067 MB / 0.7109 GB, free: 9.637 MB / 0.545 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005603/0.5621, allocations: 203.1 kB / 0.7111 GB, free: 9.441 MB / 0.545 GB Notification: Performance of NFFlatten.flatten: time 0.0005014/0.5626, allocations: 362.6 kB / 0.7114 GB, free: 9.086 MB / 0.545 GB Notification: Performance of NFFlatten.resolveConnections: time 5.757e-05/0.5626, allocations: 9.297 kB / 0.7114 GB, free: 9.078 MB / 0.545 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0003034/0.5629, allocations: 167.4 kB / 0.7116 GB, free: 8.914 MB / 0.545 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002282/0.5632, allocations: 115.6 kB / 0.7117 GB, free: 8.801 MB / 0.545 GB Notification: Performance of NFPackage.collectConstants: time 2.979e-05/0.5632, allocations: 12 kB / 0.7117 GB, free: 8.789 MB / 0.545 GB Notification: Performance of NFFlatten.collectFunctions: time 0.003082/0.5663, allocations: 1.605 MB / 0.7133 GB, free: 7.18 MB / 0.545 GB Notification: Performance of NFScalarize.scalarize: time 0.0001129/0.5664, allocations: 75.83 kB / 0.7133 GB, free: 7.105 MB / 0.545 GB Notification: Performance of NFVerifyModel.verify: time 0.0001454/0.5665, allocations: 107.5 kB / 0.7134 GB, free: 7 MB / 0.545 GB Notification: Performance of NFConvertDAE.convert: time 0.001642/0.5682, allocations: 1.005 MB / 0.7144 GB, free: 5.992 MB / 0.545 GB Notification: Performance of FrontEnd - DAE generated: time 6.091e-06/0.5682, allocations: 3.984 kB / 0.7144 GB, free: 5.988 MB / 0.545 GB Notification: Performance of FrontEnd: time 1.102e-06/0.5682, allocations: 0 / 0.7144 GB, free: 5.988 MB / 0.545 GB Notification: Performance of Transformations before backend: time 6.072e-06/0.5682, allocations: 0 / 0.7144 GB, free: 5.988 MB / 0.545 GB 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.0009671/0.5692, allocations: 493.1 kB / 0.7149 GB, free: 5.477 MB / 0.545 GB Notification: Performance of prepare preOptimizeDAE: time 4.972e-05/0.5692, allocations: 12.03 kB / 0.7149 GB, free: 5.465 MB / 0.545 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.758e-05/0.5693, allocations: 54.73 kB / 0.715 GB, free: 5.402 MB / 0.545 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001419/0.5707, allocations: 208.6 kB / 0.7152 GB, free: 5.199 MB / 0.545 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003596/0.5711, allocations: 189.8 kB / 0.7153 GB, free: 4.988 MB / 0.545 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.655e-05/0.5711, allocations: 16.38 kB / 0.7154 GB, free: 4.973 MB / 0.545 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.495e-05/0.5711, allocations: 16 kB / 0.7154 GB, free: 4.957 MB / 0.545 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006031/0.5717, allocations: 377.7 kB / 0.7157 GB, free: 4.578 MB / 0.545 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.472e-05/0.5717, allocations: 7.938 kB / 0.7157 GB, free: 4.57 MB / 0.545 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.907e-05/0.5718, allocations: 8 kB / 0.7158 GB, free: 4.562 MB / 0.545 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.665e-06/0.5718, allocations: 4 kB / 0.7158 GB, free: 4.559 MB / 0.545 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005977/0.5724, allocations: 402 kB / 0.7161 GB, free: 4.168 MB / 0.545 GB 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.001734/0.5741, allocations: 0.7804 MB / 0.7169 GB, free: 3.34 MB / 0.545 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004107/0.5745, allocations: 217.1 kB / 0.7171 GB, free: 3.109 MB / 0.545 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001807/0.5747, allocations: 118 kB / 0.7172 GB, free: 2.988 MB / 0.545 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001569/0.5763, allocations: 305.5 kB / 0.7175 GB, free: 2.688 MB / 0.545 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.703e-05/0.5763, allocations: 38.56 kB / 0.7175 GB, free: 2.641 MB / 0.545 GB Notification: Performance of pre-optimization done (n=29): time 2.284e-06/0.5763, allocations: 0 / 0.7175 GB, free: 2.641 MB / 0.545 GB Notification: Performance of matching and sorting (n=29): time 0.001198/0.5775, allocations: 364.5 kB / 0.7179 GB, free: 2.281 MB / 0.545 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.257e-05/0.5776, allocations: 89.09 kB / 0.718 GB, free: 2.176 MB / 0.545 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001045/0.5777, allocations: 121.8 kB / 0.7181 GB, free: 2.047 MB / 0.545 GB Notification: Performance of collectPreVariables (initialization): time 4.361e-05/0.5777, allocations: 29.7 kB / 0.7181 GB, free: 2.012 MB / 0.545 GB Notification: Performance of collectInitialEqns (initialization): time 7.345e-05/0.5778, allocations: 120.5 kB / 0.7182 GB, free: 1.891 MB / 0.545 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001033/0.5779, allocations: 115 kB / 0.7184 GB, free: 1.777 MB / 0.545 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.893e-05/0.578, allocations: 62.02 kB / 0.7184 GB, free: 1.711 MB / 0.545 GB Notification: Performance of setup shared object (initialization): time 0.0001449/0.5781, allocations: 326.8 kB / 0.7187 GB, free: 1.383 MB / 0.545 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001977/0.5783, allocations: 96.61 kB / 0.7188 GB, free: 1.289 MB / 0.545 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002671/0.5786, allocations: 183.5 kB / 0.719 GB, free: 1.074 MB / 0.545 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004783/0.5791, allocations: 302.1 kB / 0.7193 GB, free: 0.7422 MB / 0.545 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.745e-06/0.5791, allocations: 0 / 0.7193 GB, free: 0.7422 MB / 0.545 GB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0006281/0.5797, allocations: 347.5 kB / 0.7196 GB, free: 412 kB / 0.545 GB Notification: Performance of prepare postOptimizeDAE: time 1.831e-05/0.5797, allocations: 8.312 kB / 0.7196 GB, free: 404 kB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.286e-06/0.5797, allocations: 8 kB / 0.7196 GB, free: 396 kB / 0.545 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.203e-05/0.5798, allocations: 4 kB / 0.7196 GB, free: 392 kB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003434/0.5801, allocations: 71.91 kB / 0.7197 GB, free: 320 kB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.988e-06/0.5801, allocations: 4 kB / 0.7197 GB, free: 316 kB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002077/0.5803, allocations: 23.88 kB / 0.7197 GB, free: 292 kB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.049e-05/0.5804, allocations: 19.94 kB / 0.7197 GB, free: 272 kB / 0.545 GB 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.0001631/0.5805, allocations: 149.6 kB / 0.7199 GB, free: 112 kB / 0.545 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.644e-05/0.5806, allocations: 15.91 kB / 0.7199 GB, free: 96 kB / 0.545 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006776/0.5813, allocations: 326.1 kB / 0.7202 GB, free: 15.77 MB / 0.5606 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.596e-06/0.5813, allocations: 4 kB / 0.7202 GB, free: 15.77 MB / 0.5606 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.041e-06/0.5813, allocations: 4 kB / 0.7202 GB, free: 15.76 MB / 0.5606 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.36e-06/0.5813, allocations: 0 / 0.7202 GB, free: 15.76 MB / 0.5606 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005846/0.5819, allocations: 313.9 kB / 0.7205 GB, free: 15.41 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.857e-06/0.5819, allocations: 4 kB / 0.7205 GB, free: 15.41 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003318/0.5822, allocations: 55.91 kB / 0.7206 GB, free: 15.36 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.206e-06/0.5822, allocations: 0 / 0.7206 GB, free: 15.36 MB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.818e-05/0.5823, allocations: 8 kB / 0.7206 GB, free: 15.35 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.304e-06/0.5823, allocations: 4 kB / 0.7206 GB, free: 15.34 MB / 0.5606 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.906e-06/0.5823, allocations: 3.984 kB / 0.7206 GB, free: 15.34 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007588/0.583, allocations: 0.5025 MB / 0.7211 GB, free: 14.82 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 2.65e-05/0.5831, allocations: 15.88 kB / 0.7211 GB, free: 14.8 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.465e-05/0.5831, allocations: 16 kB / 0.7211 GB, free: 14.79 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003134/0.5834, allocations: 15.98 kB / 0.7211 GB, free: 14.77 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.219e-05/0.5835, allocations: 23.91 kB / 0.7211 GB, free: 14.75 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.508e-05/0.5835, allocations: 15.92 kB / 0.7212 GB, free: 14.73 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 5.64e-05/0.5836, allocations: 91.28 kB / 0.7213 GB, free: 14.64 MB / 0.5606 GB Notification: Performance of sort global known variables: time 8e-08/0.5836, allocations: 0 / 0.7213 GB, free: 14.64 MB / 0.5606 GB Notification: Performance of remove unused functions: time 0.0008244/0.5844, allocations: 235.4 kB / 0.7215 GB, free: 14.41 MB / 0.5606 GB 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.002026/0.5864, allocations: 1.376 MB / 0.7228 GB, free: 13.01 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 0.000531/0.5869, allocations: 239.7 kB / 0.723 GB, free: 12.78 MB / 0.5606 GB Notification: Performance of simCode: created event and clocks part: time 3.477e-06/0.5869, allocations: 0.625 kB / 0.723 GB, free: 12.78 MB / 0.5606 GB Notification: Performance of simCode: created simulation system equations: time 0.0002535/0.5872, allocations: 123.9 kB / 0.7232 GB, free: 12.66 MB / 0.5606 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00063/0.5878, allocations: 87.42 kB / 0.7232 GB, free: 12.57 MB / 0.5606 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003597/0.5914, allocations: 2.687 MB / 0.7259 GB, free: 9.727 MB / 0.5606 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003719/0.5918, allocations: 0.7324 MB / 0.7266 GB, free: 8.969 MB / 0.5606 GB Notification: Performance of simCode: alias equations: time 0.0002972/0.5921, allocations: 70.03 kB / 0.7267 GB, free: 8.902 MB / 0.5606 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001471/0.5922, allocations: 63.41 kB / 0.7267 GB, free: 8.84 MB / 0.5606 GB Notification: Performance of SimCode: time 4.21e-07/0.5922, allocations: 0 / 0.7267 GB, free: 8.84 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2991/0.8913, allocations: 10.89 MB / 0.7373 GB, free: 176.9 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate platform static: time 11.16/12.06, allocations: 3.922 kB / 0.7374 GB, free: 176.9 MB / 0.5606 GB " [Timeout remaining time 648] (rm -f ModelicaTest_4.0.0_ModelicaTest.Media.TestOnly.MixIdealGasAir.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Media.TestOnly.MixIdealGasAir.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Media.TestOnly.MixIdealGasAir.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Media.TestOnly.MixIdealGasAir.sim & python3 -m fmpy simulate --output-file ModelicaTest_4.0.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_0_0_ModelicaTest_Media_TestOnly_MixIdealGasAir.fmu > ModelicaTest_4.0.0_ModelicaTest.Media.TestOnly.MixIdealGasAir.pipe 2>&1) [Timeout 52.5] diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.Media.TestOnly.MixIdealGasAir_res.csv","/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_4.0.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.0.0_ModelicaTest.Media.TestOnly.MixIdealGasAir_res.csv. Warning: Get data of variable medium2.p from file ModelicaTest_4.0.0_ModelicaTest.Media.TestOnly.MixIdealGasAir_res.csv failed! " [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 15.313235103996703]