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: translateModel(ModelicaTest.Media.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="ModelicaTest_4.0.0_ModelicaTest.Media.TestOnly.MixIdealGasAir") translateModel(ModelicaTest.Media.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="ModelicaTest_4.0.0_ModelicaTest.Media.TestOnly.MixIdealGasAir") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.000998/0.0009984, allocations: 94.94 kB / 17.35 MB, free: 6.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.001107/0.001107, allocations: 168.5 kB / 18.25 MB, free: 5.508 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.454/1.454, allocations: 223.3 MB / 242.3 MB, free: 14.47 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.2336/0.2336, allocations: 44.24 MB / 337.7 MB, free: 2.453 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0004072/0.0004071, allocations: 8 kB / 410.3 MB, free: 27.3 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.159/0.1595, allocations: 61.92 MB / 472.3 MB, free: 13.34 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Media.TestOnly.MixIdealGasAir): time 0.525/0.6845, allocations: 145.8 MB / 0.6035 GB, free: 0.9492 MB / 430.1 MB Notification: Performance of NFInst.instExpressions: time 0.004005/0.6886, allocations: 3.172 MB / 0.6066 GB, free: 13.79 MB / 446.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.048e-05/0.6886, allocations: 7.938 kB / 0.6067 GB, free: 13.78 MB / 446.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003711/0.689, allocations: 51.77 kB / 0.6067 GB, free: 13.73 MB / 446.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00212/0.6912, allocations: 0.9512 MB / 0.6076 GB, free: 12.78 MB / 446.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000453/0.6916, allocations: 187.2 kB / 0.6078 GB, free: 12.6 MB / 446.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005141/0.6922, allocations: 482.5 kB / 0.6083 GB, free: 12.12 MB / 446.1 MB Notification: Performance of NFFlatten.resolveConnections: time 7.208e-05/0.6922, allocations: 13.06 kB / 0.6083 GB, free: 12.11 MB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002629/0.6925, allocations: 139.5 kB / 0.6084 GB, free: 11.97 MB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002037/0.6927, allocations: 115.6 kB / 0.6085 GB, free: 11.86 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 2.895e-05/0.6928, allocations: 12 kB / 0.6085 GB, free: 11.85 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002971/0.6957, allocations: 1.754 MB / 0.6103 GB, free: 10.09 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001402/0.6959, allocations: 79.77 kB / 0.6103 GB, free: 10.01 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001782/0.6961, allocations: 125.3 kB / 0.6104 GB, free: 9.883 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002022/0.6981, allocations: 1.111 MB / 0.6115 GB, free: 8.77 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.16e-06/0.6981, allocations: 0 / 0.6115 GB, free: 8.77 MB / 446.1 MB Notification: Performance of FrontEnd: time 1.593e-06/0.6981, allocations: 4 kB / 0.6115 GB, free: 8.766 MB / 446.1 MB Notification: Performance of Transformations before backend: time 7.664e-06/0.6982, allocations: 0 / 0.6115 GB, free: 8.766 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.001119/0.6993, allocations: 0.5 MB / 0.612 GB, free: 8.219 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.684e-05/0.6993, allocations: 8.031 kB / 0.612 GB, free: 8.211 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003919/0.7033, allocations: 388.1 kB / 0.6124 GB, free: 7.832 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000418/0.7037, allocations: 260.3 kB / 0.6127 GB, free: 7.539 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.575e-05/0.7037, allocations: 16.31 kB / 0.6127 GB, free: 7.523 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.794e-05/0.7038, allocations: 23.91 kB / 0.6127 GB, free: 7.5 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000997/0.7048, allocations: 493.3 kB / 0.6132 GB, free: 7.008 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.182e-05/0.7049, allocations: 0 / 0.6132 GB, free: 7.008 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.193e-05/0.7049, allocations: 12 kB / 0.6132 GB, free: 6.996 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.656e-06/0.7049, allocations: 4 kB / 0.6132 GB, free: 6.992 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001041/0.706, allocations: 0.4919 MB / 0.6137 GB, free: 6.5 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.002402/0.7084, allocations: 0.9896 MB / 0.6146 GB, free: 5.457 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005928/0.709, allocations: 297 kB / 0.6149 GB, free: 5.148 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002826/0.7093, allocations: 157.6 kB / 0.6151 GB, free: 4.988 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001902/0.7112, allocations: 0.9762 MB / 0.616 GB, free: 3.848 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.444e-05/0.7113, allocations: 38.75 kB / 0.616 GB, free: 3.801 MB / 446.1 MB Notification: Performance of pre-optimization done (n=29): time 1.613e-06/0.7113, allocations: 0 / 0.616 GB, free: 3.801 MB / 446.1 MB Notification: Performance of matching and sorting (n=29): time 0.0009611/0.7122, allocations: 412 kB / 0.6164 GB, free: 3.398 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.478e-05/0.7123, allocations: 81.11 kB / 0.6165 GB, free: 3.301 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.692e-05/0.7124, allocations: 109.8 kB / 0.6166 GB, free: 3.184 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 4.12e-05/0.7125, allocations: 37.7 kB / 0.6167 GB, free: 3.141 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.757e-05/0.7125, allocations: 116.4 kB / 0.6168 GB, free: 3.02 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.159e-05/0.7126, allocations: 102.5 kB / 0.6169 GB, free: 2.918 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.748e-05/0.7127, allocations: 33.7 kB / 0.6169 GB, free: 2.879 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 0.0001252/0.7128, allocations: 322.8 kB / 0.6172 GB, free: 2.555 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002422/0.7131, allocations: 112.6 kB / 0.6173 GB, free: 2.445 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003022/0.7134, allocations: 207.5 kB / 0.6175 GB, free: 2.207 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005952/0.714, allocations: 338 kB / 0.6178 GB, free: 1.84 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.47e-06/0.714, allocations: 7.938 kB / 0.6178 GB, free: 1.832 MB / 446.1 MB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0007456/0.7148, allocations: 365.2 kB / 0.6182 GB, free: 1.469 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.416e-05/0.7148, allocations: 7.984 kB / 0.6182 GB, free: 1.461 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.176e-05/0.7148, allocations: 4 kB / 0.6182 GB, free: 1.457 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.894e-05/0.7148, allocations: 8.25 kB / 0.6182 GB, free: 1.449 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004259/0.7153, allocations: 79.84 kB / 0.6183 GB, free: 1.371 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.557e-05/0.7153, allocations: 7.984 kB / 0.6183 GB, free: 1.363 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003126/0.7156, allocations: 31.69 kB / 0.6183 GB, free: 1.332 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.678e-05/0.7157, allocations: 23.98 kB / 0.6183 GB, free: 1.309 MB / 446.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.000157/0.7158, allocations: 137.7 kB / 0.6185 GB, free: 1.164 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.695e-05/0.716, allocations: 27.8 kB / 0.6185 GB, free: 1.137 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008359/0.7168, allocations: 370.6 kB / 0.6189 GB, free: 0.7773 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.887e-06/0.7168, allocations: 4 kB / 0.6189 GB, free: 0.7734 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.488e-06/0.7168, allocations: 3.984 kB / 0.6189 GB, free: 0.7695 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.823e-06/0.7168, allocations: 4 kB / 0.6189 GB, free: 0.7656 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006426/0.7175, allocations: 352.8 kB / 0.6192 GB, free: 376 kB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.974e-06/0.7175, allocations: 0 / 0.6192 GB, free: 376 kB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004181/0.7179, allocations: 68.77 kB / 0.6193 GB, free: 308 kB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.921e-06/0.7179, allocations: 4 kB / 0.6193 GB, free: 304 kB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.072e-05/0.718, allocations: 11.98 kB / 0.6193 GB, free: 292 kB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.084e-06/0.718, allocations: 0 / 0.6193 GB, free: 292 kB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.663e-06/0.718, allocations: 3.938 kB / 0.6193 GB, free: 288 kB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009268/0.7189, allocations: 0.5604 MB / 0.6198 GB, free: 15.7 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.505e-05/0.719, allocations: 96.86 kB / 0.6199 GB, free: 15.59 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.897e-05/0.719, allocations: 4.062 kB / 0.6199 GB, free: 15.59 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003996/0.7194, allocations: 23.92 kB / 0.62 GB, free: 15.56 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.282e-05/0.7195, allocations: 19.97 kB / 0.62 GB, free: 15.54 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.87e-05/0.7196, allocations: 15.98 kB / 0.62 GB, free: 15.53 MB / 462.1 MB Notification: Performance of sorting global known variables: time 5.319e-05/0.7196, allocations: 83.28 kB / 0.6201 GB, free: 15.45 MB / 462.1 MB Notification: Performance of sort global known variables: time 1.21e-07/0.7196, allocations: 4 kB / 0.6201 GB, free: 15.44 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.00105/0.7207, allocations: 235.8 kB / 0.6203 GB, free: 15.21 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.001093/0.7218, allocations: 435 kB / 0.6207 GB, free: 14.78 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.0006228/0.7224, allocations: 300.1 kB / 0.621 GB, free: 14.48 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 4.318e-06/0.7224, allocations: 0 / 0.621 GB, free: 14.48 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000268/0.7227, allocations: 143.8 kB / 0.6211 GB, free: 14.34 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006876/0.7234, allocations: 83.17 kB / 0.6212 GB, free: 14.27 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001476/0.7249, allocations: 0.9189 MB / 0.6221 GB, free: 13.31 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003582/0.7253, allocations: 0.7326 MB / 0.6228 GB, free: 12.55 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.0004745/0.7257, allocations: 89.7 kB / 0.6229 GB, free: 12.46 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001274/0.7259, allocations: 35.42 kB / 0.6229 GB, free: 12.43 MB / 462.1 MB Notification: Performance of SimCode: time 3.61e-07/0.7259, allocations: 4 kB / 0.623 GB, free: 12.43 MB / 462.1 MB Notification: Performance of Templates: time 0.01546/0.7413, allocations: 8.104 MB / 0.6309 GB, free: 4.375 MB / 462.1 MB make -j1 -f ModelicaTest_4.0.0_ModelicaTest.Media.TestOnly.MixIdealGasAir.makefile (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 & ./ModelicaTest_4.0.0_ModelicaTest.Media.TestOnly.MixIdealGasAir -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_4.0.0_ModelicaTest.Media.TestOnly.MixIdealGasAir.pipe 2>&1) diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.Media.TestOnly.MixIdealGasAir_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Media/TestOnly/MixIdealGasAir/MixIdealGasAir.csv","/var/lib/jenkins/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