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.001049/0.001049, allocations: 104.5 kB / 17.63 MB, free: 5.344 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.001066/0.001066, allocations: 192 kB / 18.56 MB, free: 4.434 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.386/1.386, allocations: 222.9 MB / 242.3 MB, free: 15.15 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.2215/0.2215, allocations: 44.18 MB / 336.6 MB, free: 2.746 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001432/0.001432, allocations: 68.02 kB / 408.5 MB, free: 27.13 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1251/0.1266, allocations: 60.83 MB / 469.4 MB, free: 14.27 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Media.TestOnly.MixIdealGasAir): time 0.4407/0.5673, allocations: 149.9 MB / 0.6047 GB, free: 10.81 MB / 446.1 MB Notification: Performance of NFInst.instExpressions: time 0.004178/0.5716, allocations: 3.134 MB / 0.6078 GB, free: 7.688 MB / 446.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001475/0.5717, allocations: 0 / 0.6078 GB, free: 7.688 MB / 446.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004116/0.5722, allocations: 67.59 kB / 0.6079 GB, free: 7.621 MB / 446.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003187/0.5754, allocations: 1.025 MB / 0.6089 GB, free: 6.594 MB / 446.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005479/0.576, allocations: 192.9 kB / 0.609 GB, free: 6.41 MB / 446.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005115/0.5765, allocations: 358.6 kB / 0.6094 GB, free: 6.059 MB / 446.1 MB Notification: Performance of NFFlatten.resolveConnections: time 7.054e-05/0.5766, allocations: 17.08 kB / 0.6094 GB, free: 6.039 MB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003299/0.5769, allocations: 147.5 kB / 0.6095 GB, free: 5.895 MB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002394/0.5772, allocations: 107.6 kB / 0.6096 GB, free: 5.789 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 4.545e-05/0.5772, allocations: 12 kB / 0.6097 GB, free: 5.777 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003165/0.5804, allocations: 1.524 MB / 0.6111 GB, free: 4.25 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001389/0.5806, allocations: 75.83 kB / 0.6112 GB, free: 4.176 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001605/0.5807, allocations: 103.6 kB / 0.6113 GB, free: 4.074 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002022/0.5828, allocations: 0.994 MB / 0.6123 GB, free: 3.078 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.689e-06/0.5828, allocations: 4 kB / 0.6123 GB, free: 3.074 MB / 446.1 MB Notification: Performance of FrontEnd: time 1.363e-06/0.5828, allocations: 0 / 0.6123 GB, free: 3.074 MB / 446.1 MB Notification: Performance of Transformations before backend: time 1.03e-05/0.5828, allocations: 0 / 0.6123 GB, free: 3.074 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.00124/0.584, allocations: 0.543 MB / 0.6128 GB, free: 2.484 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.548e-05/0.5841, allocations: 12.03 kB / 0.6128 GB, free: 2.473 MB / 446.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.095e-05/0.5842, allocations: 58.67 kB / 0.6129 GB, free: 2.406 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004252/0.5884, allocations: 380.2 kB / 0.6133 GB, free: 2.035 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004247/0.5889, allocations: 264 kB / 0.6135 GB, free: 1.738 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.35e-05/0.5889, allocations: 20.31 kB / 0.6135 GB, free: 1.719 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.526e-05/0.589, allocations: 20 kB / 0.6135 GB, free: 1.699 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009938/0.59, allocations: 485.3 kB / 0.614 GB, free: 1.215 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.243e-05/0.59, allocations: 3.984 kB / 0.614 GB, free: 1.211 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.342e-05/0.5901, allocations: 8.875 kB / 0.614 GB, free: 1.203 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.294e-06/0.5901, allocations: 4 kB / 0.614 GB, free: 1.199 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001069/0.5912, allocations: 0.5035 MB / 0.6145 GB, free: 0.6953 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.002613/0.5938, allocations: 0.9929 MB / 0.6155 GB, free: 15.64 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000605/0.5944, allocations: 293 kB / 0.6158 GB, free: 15.34 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002808/0.5947, allocations: 160.4 kB / 0.6159 GB, free: 15.18 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001979/0.5967, allocations: 0.9723 MB / 0.6169 GB, free: 14.04 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.788e-05/0.5968, allocations: 38.56 kB / 0.6169 GB, free: 14 MB / 462.1 MB Notification: Performance of pre-optimization done (n=29): time 2.465e-06/0.5968, allocations: 0 / 0.6169 GB, free: 14 MB / 462.1 MB Notification: Performance of matching and sorting (n=29): time 0.0009842/0.5978, allocations: 409.8 kB / 0.6173 GB, free: 13.59 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.944e-05/0.5978, allocations: 81.11 kB / 0.6174 GB, free: 13.49 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.734e-05/0.5979, allocations: 114.7 kB / 0.6175 GB, free: 13.37 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 3.596e-05/0.598, allocations: 29.7 kB / 0.6175 GB, free: 13.34 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.434e-05/0.598, allocations: 112.4 kB / 0.6176 GB, free: 13.22 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.259e-05/0.5981, allocations: 106.5 kB / 0.6177 GB, free: 13.11 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001144/0.5983, allocations: 62.02 kB / 0.6178 GB, free: 13.05 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 0.0001152/0.5984, allocations: 330.8 kB / 0.6181 GB, free: 12.71 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002405/0.5986, allocations: 112.6 kB / 0.6182 GB, free: 12.61 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003069/0.599, allocations: 203.5 kB / 0.6184 GB, free: 12.37 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005861/0.5995, allocations: 346.1 kB / 0.6187 GB, free: 12 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.559e-06/0.5996, allocations: 0 / 0.6187 GB, free: 12 MB / 462.1 MB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0007523/0.6003, allocations: 381.8 kB / 0.6191 GB, free: 11.62 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.958e-05/0.6004, allocations: 4 kB / 0.6191 GB, free: 11.62 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.298e-06/0.6004, allocations: 7.938 kB / 0.6191 GB, free: 11.61 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.86e-05/0.6004, allocations: 7.984 kB / 0.6191 GB, free: 11.6 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004736/0.6009, allocations: 71.91 kB / 0.6192 GB, free: 11.53 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.609e-05/0.6009, allocations: 9.625 kB / 0.6192 GB, free: 11.52 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003186/0.6012, allocations: 27.78 kB / 0.6192 GB, free: 11.5 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.445e-05/0.6013, allocations: 15.98 kB / 0.6192 GB, free: 11.48 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.0001566/0.6015, allocations: 149.8 kB / 0.6194 GB, free: 11.32 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001133/0.6016, allocations: 15.81 kB / 0.6194 GB, free: 11.31 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008175/0.6024, allocations: 363.3 kB / 0.6197 GB, free: 10.95 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.043e-06/0.6024, allocations: 4 kB / 0.6197 GB, free: 10.95 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.741e-06/0.6024, allocations: 0 / 0.6197 GB, free: 10.95 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.869e-06/0.6024, allocations: 3.984 kB / 0.6197 GB, free: 10.94 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006258/0.6031, allocations: 368.7 kB / 0.6201 GB, free: 10.53 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.568e-06/0.6031, allocations: 0 / 0.6201 GB, free: 10.53 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004379/0.6035, allocations: 55.95 kB / 0.6201 GB, free: 10.47 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.991e-06/0.6036, allocations: 1.75 kB / 0.6201 GB, free: 10.47 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.604e-05/0.6036, allocations: 12 kB / 0.6202 GB, free: 10.46 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.178e-06/0.6036, allocations: 4 kB / 0.6202 GB, free: 10.46 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.689e-06/0.6036, allocations: 3.984 kB / 0.6202 GB, free: 10.45 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009566/0.6046, allocations: 0.5529 MB / 0.6207 GB, free: 9.883 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.042e-05/0.6047, allocations: 96.84 kB / 0.6208 GB, free: 9.77 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.575e-05/0.6047, allocations: 8.062 kB / 0.6208 GB, free: 9.762 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004172/0.6051, allocations: 15.98 kB / 0.6208 GB, free: 9.746 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.002e-05/0.6052, allocations: 23.97 kB / 0.6208 GB, free: 9.723 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.441e-05/0.6052, allocations: 19.98 kB / 0.6209 GB, free: 9.703 MB / 462.1 MB Notification: Performance of sorting global known variables: time 5.315e-05/0.6053, allocations: 87.27 kB / 0.6209 GB, free: 9.617 MB / 462.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.6053, allocations: 8 kB / 0.621 GB, free: 9.609 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.0008543/0.6062, allocations: 227.7 kB / 0.6212 GB, free: 9.387 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.00242/0.6086, allocations: 1.425 MB / 0.6226 GB, free: 7.938 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.0006968/0.6093, allocations: 306 kB / 0.6229 GB, free: 7.641 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 3.587e-06/0.6093, allocations: 0.625 kB / 0.6229 GB, free: 7.641 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000334/0.6097, allocations: 159.6 kB / 0.623 GB, free: 7.488 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006717/0.6103, allocations: 81.27 kB / 0.6231 GB, free: 7.41 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003922/0.6143, allocations: 2.743 MB / 0.6258 GB, free: 4.52 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003116/0.6146, allocations: 0.7361 MB / 0.6265 GB, free: 3.758 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.0004895/0.6151, allocations: 85.95 kB / 0.6266 GB, free: 3.672 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001809/0.6153, allocations: 67.41 kB / 0.6266 GB, free: 3.605 MB / 462.1 MB Notification: Performance of SimCode: time 4.21e-07/0.6153, allocations: 0 / 0.6266 GB, free: 3.605 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03819/0.6535, allocations: 10.52 MB / 0.6369 GB, free: 9.184 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.133/8.787, allocations: 1.031 kB / 0.6369 GB, free: 9.184 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