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.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 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) 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.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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: "" <> 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"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001176/0.001176, allocations: 106.5 kB / 17.2 MB, free: 6.289 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.001284/0.001284, allocations: 194 kB / 18.12 MB, free: 5.383 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.367/1.367, allocations: 222.9 MB / 241.8 MB, free: 15.37 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.2137/0.2137, allocations: 44.19 MB / 336.1 MB, free: 2.984 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001308/0.001308, allocations: 72.7 kB / 407.8 MB, free: 27.61 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1419/0.1432, allocations: 60.82 MB / 468.6 MB, free: 14.75 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Media.TestOnly.MixIdealGasAir): time 0.515/0.6583, allocations: 147.7 MB / 0.6019 GB, free: 13.55 MB / 446.1 MB Notification: Performance of NFInst.instExpressions: time 0.004881/0.6632, allocations: 3.219 MB / 0.605 GB, free: 10.35 MB / 446.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001844/0.6634, allocations: 8 kB / 0.605 GB, free: 10.34 MB / 446.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004788/0.6639, allocations: 59.72 kB / 0.6051 GB, free: 10.28 MB / 446.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002951/0.6669, allocations: 0.9438 MB / 0.606 GB, free: 9.336 MB / 446.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006641/0.6676, allocations: 181.1 kB / 0.6062 GB, free: 9.16 MB / 446.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006784/0.6683, allocations: 478.5 kB / 0.6066 GB, free: 8.691 MB / 446.1 MB Notification: Performance of NFFlatten.resolveConnections: time 7.48e-05/0.6684, allocations: 13.08 kB / 0.6066 GB, free: 8.676 MB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003677/0.6688, allocations: 139.5 kB / 0.6068 GB, free: 8.539 MB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002944/0.6691, allocations: 123.5 kB / 0.6069 GB, free: 8.418 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 4.573e-05/0.6691, allocations: 12 kB / 0.6069 GB, free: 8.406 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003808/0.673, allocations: 1.754 MB / 0.6086 GB, free: 6.648 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001279/0.6731, allocations: 67.83 kB / 0.6087 GB, free: 6.582 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001824/0.6733, allocations: 103.5 kB / 0.6088 GB, free: 6.48 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00247/0.6758, allocations: 1.126 MB / 0.6099 GB, free: 5.352 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.258e-06/0.6758, allocations: 0 / 0.6099 GB, free: 5.352 MB / 446.1 MB Notification: Performance of FrontEnd: time 1.483e-06/0.6758, allocations: 4 kB / 0.6099 GB, free: 5.348 MB / 446.1 MB Notification: Performance of Transformations before backend: time 1.177e-05/0.6758, allocations: 0 / 0.6099 GB, free: 5.348 MB / 446.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.001388/0.6772, allocations: 0.5314 MB / 0.6104 GB, free: 4.77 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.128e-05/0.6773, allocations: 15.97 kB / 0.6104 GB, free: 4.754 MB / 446.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.126e-05/0.6774, allocations: 54.73 kB / 0.6105 GB, free: 4.691 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003937/0.6813, allocations: 392.1 kB / 0.6108 GB, free: 4.309 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004392/0.6818, allocations: 260 kB / 0.6111 GB, free: 4.016 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.52e-05/0.6818, allocations: 20.31 kB / 0.6111 GB, free: 3.996 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.263e-05/0.6819, allocations: 16 kB / 0.6111 GB, free: 3.98 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001157/0.6831, allocations: 493.3 kB / 0.6116 GB, free: 3.488 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.131e-05/0.6831, allocations: 0 / 0.6116 GB, free: 3.488 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.373e-05/0.6831, allocations: 12 kB / 0.6116 GB, free: 3.477 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.097e-05/0.6832, allocations: 7.984 kB / 0.6116 GB, free: 3.469 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001163/0.6843, allocations: 0.4997 MB / 0.6121 GB, free: 2.969 MB / 446.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.002521/0.6869, allocations: 0.9935 MB / 0.6131 GB, free: 1.922 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006768/0.6876, allocations: 299.8 kB / 0.6134 GB, free: 1.617 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002841/0.6879, allocations: 149.7 kB / 0.6135 GB, free: 1.465 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.002069/0.6899, allocations: 0.9762 MB / 0.6145 GB, free: 332 kB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.042e-05/0.69, allocations: 42.5 kB / 0.6145 GB, free: 280 kB / 446.1 MB Notification: Performance of pre-optimization done (n=29): time 1.843e-06/0.69, allocations: 4 kB / 0.6145 GB, free: 276 kB / 446.1 MB Notification: Performance of matching and sorting (n=29): time 0.001037/0.691, allocations: 397.5 kB / 0.6149 GB, free: 15.88 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.64e-05/0.6911, allocations: 81.36 kB / 0.615 GB, free: 15.78 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001027/0.6912, allocations: 113.8 kB / 0.6151 GB, free: 15.66 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 4.231e-05/0.6913, allocations: 29.7 kB / 0.6151 GB, free: 15.62 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.446e-05/0.6914, allocations: 112.4 kB / 0.6152 GB, free: 15.5 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.359e-05/0.6915, allocations: 102.5 kB / 0.6153 GB, free: 15.4 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001388/0.6916, allocations: 66.02 kB / 0.6154 GB, free: 15.33 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 0.0001485/0.6918, allocations: 330.8 kB / 0.6157 GB, free: 15 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002614/0.692, allocations: 116.6 kB / 0.6158 GB, free: 14.89 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003196/0.6924, allocations: 195.5 kB / 0.616 GB, free: 14.66 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005922/0.693, allocations: 349.9 kB / 0.6163 GB, free: 14.28 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.937e-06/0.693, allocations: 0 / 0.6163 GB, free: 14.28 MB / 462.1 MB Notification: Performance of matching and sorting (n=39) (initialization): time 0.000793/0.6938, allocations: 378.5 kB / 0.6167 GB, free: 13.91 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.192e-05/0.6938, allocations: 4 kB / 0.6167 GB, free: 13.9 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.878e-06/0.6938, allocations: 4 kB / 0.6167 GB, free: 13.9 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.027e-05/0.6938, allocations: 4 kB / 0.6167 GB, free: 13.89 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004198/0.6943, allocations: 75.89 kB / 0.6168 GB, free: 13.82 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.817e-05/0.6943, allocations: 8.953 kB / 0.6168 GB, free: 13.81 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003328/0.6946, allocations: 35.77 kB / 0.6168 GB, free: 13.78 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.122e-05/0.6947, allocations: 16 kB / 0.6168 GB, free: 13.76 MB / 462.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.0001849/0.6949, allocations: 141.7 kB / 0.6169 GB, free: 13.61 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001297/0.695, allocations: 19.81 kB / 0.617 GB, free: 13.59 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008468/0.6959, allocations: 374.3 kB / 0.6173 GB, free: 13.23 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.771e-06/0.6959, allocations: 4 kB / 0.6173 GB, free: 13.23 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.634e-06/0.6959, allocations: 0 / 0.6173 GB, free: 13.23 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.771e-06/0.6959, allocations: 0 / 0.6173 GB, free: 13.23 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006328/0.6966, allocations: 364.7 kB / 0.6177 GB, free: 12.82 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.968e-06/0.6966, allocations: 0 / 0.6177 GB, free: 12.82 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004272/0.697, allocations: 55.91 kB / 0.6177 GB, free: 12.76 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.787e-06/0.697, allocations: 7.984 kB / 0.6177 GB, free: 12.75 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.036e-05/0.6971, allocations: 15.98 kB / 0.6177 GB, free: 12.74 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.046e-06/0.6971, allocations: 4 kB / 0.6178 GB, free: 12.73 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.833e-06/0.6971, allocations: 3.938 kB / 0.6178 GB, free: 12.73 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000961/0.6981, allocations: 0.549 MB / 0.6183 GB, free: 12.16 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.151e-05/0.6982, allocations: 99.48 kB / 0.6184 GB, free: 12.05 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.613e-05/0.6982, allocations: 4.062 kB / 0.6184 GB, free: 12.05 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004065/0.6986, allocations: 31.91 kB / 0.6184 GB, free: 12.02 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.77e-05/0.6987, allocations: 19.92 kB / 0.6184 GB, free: 12 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.379e-05/0.6987, allocations: 19.98 kB / 0.6185 GB, free: 11.98 MB / 462.1 MB Notification: Performance of sorting global known variables: time 5.429e-05/0.6988, allocations: 87.27 kB / 0.6185 GB, free: 11.89 MB / 462.1 MB Notification: Performance of sort global known variables: time 1.31e-07/0.6988, allocations: 0 / 0.6185 GB, free: 11.89 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.001052/0.6999, allocations: 239.7 kB / 0.6188 GB, free: 11.66 MB / 462.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.002709/0.7026, allocations: 1.412 MB / 0.6201 GB, free: 10.22 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.0006888/0.7033, allocations: 315.9 kB / 0.6205 GB, free: 9.91 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 4.579e-06/0.7033, allocations: 0 / 0.6205 GB, free: 9.91 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000302/0.7036, allocations: 139.9 kB / 0.6206 GB, free: 9.773 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007448/0.7044, allocations: 88.47 kB / 0.6207 GB, free: 9.688 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005177/0.7096, allocations: 2.799 MB / 0.6234 GB, free: 6.75 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005175/0.7101, allocations: 0.7361 MB / 0.6241 GB, free: 5.984 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.0005726/0.7107, allocations: 89.94 kB / 0.6242 GB, free: 5.895 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002027/0.7109, allocations: 59.41 kB / 0.6243 GB, free: 5.836 MB / 462.1 MB Notification: Performance of SimCode: time 8.02e-07/0.7109, allocations: 0 / 0.6243 GB, free: 5.836 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03017/0.7411, allocations: 10.25 MB / 0.6343 GB, free: 11.71 MB / 478.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002284/0.7414, allocations: 194 kB / 0.6345 GB, free: 11.46 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.16/2.902, allocations: 0 / 0.6345 GB, free: 11.46 MB / 478.1 MB (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_4.0.0_ModelicaTest.Media.TestOnly.MixIdealGasAir_res.mat --tempDir=temp_ModelicaTest_4_0_0_ModelicaTest_Media_TestOnly_MixIdealGasAir_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 ModelicaTest_4_0_0_ModelicaTest_Media_TestOnly_MixIdealGasAir.fmu > ModelicaTest_4.0.0_ModelicaTest.Media.TestOnly.MixIdealGasAir.pipe 2>&1) diffSimulationResults("ModelicaTest_4.0.0_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_4.0.0_ModelicaTest.Media.TestOnly.MixIdealGasAir.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches