Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_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 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaTest with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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_3.2.3_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_3.2.3_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.001022/0.001022, allocations: 96.7 kB / 15.7 MB, free: 468 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001033/0.001034, allocations: 176.2 kB / 16.58 MB, free: 6.062 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.751/1.751, allocations: 205.4 MB / 222.7 MB, free: 5.656 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.5496/0.5496, allocations: 43.56 MB / 314.6 MB, free: 8.68 MB / 254.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.0006032/0.0006033, allocations: 12 kB / 383.9 MB, free: 7.988 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1615/0.1621, allocations: 58.86 MB / 442.8 MB, free: 13.02 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Media.TestOnly.MixIdealGasAir): time 0.5026/0.6648, allocations: 137.1 MB / 0.5663 GB, free: 2.793 MB / 430.1 MB Notification: Performance of NFInst.instExpressions: time 0.004156/0.669, allocations: 2.826 MB / 0.5691 GB, free: 15.98 MB / 446.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001693/0.6692, allocations: 7.938 kB / 0.5691 GB, free: 15.97 MB / 446.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003925/0.6696, allocations: 39.75 kB / 0.5691 GB, free: 15.94 MB / 446.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002736/0.6724, allocations: 0.6881 MB / 0.5698 GB, free: 15.25 MB / 446.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005852/0.673, allocations: 165.8 kB / 0.57 GB, free: 15.09 MB / 446.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007218/0.6737, allocations: 410.5 kB / 0.5704 GB, free: 14.68 MB / 446.1 MB Notification: Performance of NFFlatten.resolveConnections: time 9.253e-05/0.6738, allocations: 7.781 kB / 0.5704 GB, free: 14.68 MB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004984/0.6743, allocations: 136.5 kB / 0.5705 GB, free: 14.55 MB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003966/0.6747, allocations: 115.6 kB / 0.5706 GB, free: 14.43 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 7.659e-05/0.6748, allocations: 8 kB / 0.5706 GB, free: 14.43 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003524/0.6783, allocations: 1.052 MB / 0.5717 GB, free: 13.37 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001766/0.6785, allocations: 79.75 kB / 0.5717 GB, free: 13.29 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001425/0.6787, allocations: 65.58 kB / 0.5718 GB, free: 13.22 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001436/0.6801, allocations: 0.5869 MB / 0.5724 GB, free: 12.64 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.963e-06/0.6802, allocations: 0 / 0.5724 GB, free: 12.64 MB / 446.1 MB Notification: Performance of FrontEnd: time 3.226e-06/0.6802, allocations: 0 / 0.5724 GB, free: 12.64 MB / 446.1 MB Notification: Performance of Transformations before backend: time 1.195e-05/0.6802, allocations: 0 / 0.5724 GB, free: 12.64 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.001416/0.6816, allocations: 0.5091 MB / 0.5729 GB, free: 12.09 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 7.005e-05/0.6817, allocations: 8.031 kB / 0.5729 GB, free: 12.08 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003432/0.6851, allocations: 380.5 kB / 0.5732 GB, free: 11.71 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004486/0.6856, allocations: 258.8 kB / 0.5735 GB, free: 11.42 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.587e-05/0.6856, allocations: 12.38 kB / 0.5735 GB, free: 11.41 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.888e-05/0.6857, allocations: 20 kB / 0.5735 GB, free: 11.39 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001099/0.6868, allocations: 487 kB / 0.574 GB, free: 10.9 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.496e-05/0.6869, allocations: 4 kB / 0.574 GB, free: 10.9 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.142e-05/0.6869, allocations: 15.94 kB / 0.574 GB, free: 10.88 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.706e-05/0.687, allocations: 4 kB / 0.574 GB, free: 10.88 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001167/0.6881, allocations: 0.5114 MB / 0.5745 GB, free: 10.37 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.002331/0.6905, allocations: 0.9872 MB / 0.5755 GB, free: 9.344 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000627/0.6911, allocations: 297.7 kB / 0.5757 GB, free: 9.035 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002771/0.6914, allocations: 150.2 kB / 0.5759 GB, free: 8.883 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001765/0.6932, allocations: 0.8892 MB / 0.5768 GB, free: 7.848 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.61e-05/0.6932, allocations: 34.56 kB / 0.5768 GB, free: 7.805 MB / 446.1 MB Notification: Performance of pre-optimization done (n=29): time 2.194e-06/0.6932, allocations: 4 kB / 0.5768 GB, free: 7.801 MB / 446.1 MB Notification: Performance of matching and sorting (n=29): time 0.001006/0.6943, allocations: 405.2 kB / 0.5772 GB, free: 7.402 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.333e-05/0.6943, allocations: 85.06 kB / 0.5773 GB, free: 7.301 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001121/0.6945, allocations: 109.8 kB / 0.5774 GB, free: 7.184 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 4.292e-05/0.6945, allocations: 33.7 kB / 0.5774 GB, free: 7.145 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.364e-05/0.6946, allocations: 116.3 kB / 0.5775 GB, free: 7.023 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000125/0.6947, allocations: 106.5 kB / 0.5776 GB, free: 6.918 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.199e-05/0.6947, allocations: 8 kB / 0.5776 GB, free: 6.91 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 0.0001639/0.6949, allocations: 326.8 kB / 0.5779 GB, free: 6.582 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002504/0.6952, allocations: 116.6 kB / 0.578 GB, free: 6.469 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002938/0.6955, allocations: 207.4 kB / 0.5782 GB, free: 6.23 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003011/0.6958, allocations: 141 kB / 0.5784 GB, free: 6.094 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.108e-06/0.6958, allocations: 0 / 0.5784 GB, free: 6.094 MB / 446.1 MB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0007478/0.6966, allocations: 377.6 kB / 0.5787 GB, free: 5.719 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.219e-05/0.6966, allocations: 4 kB / 0.5787 GB, free: 5.715 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.32e-05/0.6966, allocations: 7.984 kB / 0.5787 GB, free: 5.707 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.044e-05/0.6966, allocations: 4.312 kB / 0.5787 GB, free: 5.703 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00039/0.697, allocations: 79.89 kB / 0.5788 GB, free: 5.625 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.486e-05/0.6971, allocations: 4 kB / 0.5788 GB, free: 5.621 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003059/0.6974, allocations: 32.58 kB / 0.5789 GB, free: 5.59 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.553e-05/0.6974, allocations: 23.98 kB / 0.5789 GB, free: 5.566 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001684/0.6976, allocations: 154.7 kB / 0.579 GB, free: 5.406 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001084/0.6977, allocations: 19.84 kB / 0.579 GB, free: 5.387 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000805/0.6985, allocations: 373.1 kB / 0.5794 GB, free: 5.027 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.076e-06/0.6986, allocations: 4 kB / 0.5794 GB, free: 5.023 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.853e-06/0.6986, allocations: 0 / 0.5794 GB, free: 5.023 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.43e-06/0.6986, allocations: 0 / 0.5794 GB, free: 5.023 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007691/0.6993, allocations: 366.3 kB / 0.5798 GB, free: 4.613 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.057e-06/0.6994, allocations: 0 / 0.5798 GB, free: 4.613 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003997/0.6998, allocations: 51.97 kB / 0.5798 GB, free: 4.562 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.947e-06/0.6998, allocations: 4 kB / 0.5798 GB, free: 4.559 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.245e-05/0.6998, allocations: 15.92 kB / 0.5798 GB, free: 4.543 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.594e-06/0.6999, allocations: 7.125 kB / 0.5798 GB, free: 4.539 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.903e-06/0.6999, allocations: 0 / 0.5798 GB, free: 4.539 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001007/0.7009, allocations: 0.5519 MB / 0.5804 GB, free: 3.977 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001012/0.701, allocations: 92.95 kB / 0.5805 GB, free: 3.867 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5e-05/0.7011, allocations: 8.062 kB / 0.5805 GB, free: 3.859 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003668/0.7014, allocations: 19.89 kB / 0.5805 GB, free: 3.84 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.143e-05/0.7015, allocations: 19.97 kB / 0.5805 GB, free: 3.82 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.612e-05/0.7015, allocations: 19.98 kB / 0.5805 GB, free: 3.801 MB / 446.1 MB Notification: Performance of sorting global known variables: time 8.16e-05/0.7016, allocations: 94.7 kB / 0.5806 GB, free: 3.711 MB / 446.1 MB Notification: Performance of sort global known variables: time 2.064e-06/0.7016, allocations: 0 / 0.5806 GB, free: 3.711 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.001022/0.7027, allocations: 231.7 kB / 0.5808 GB, free: 3.484 MB / 446.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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.00179/0.7045, allocations: 362.8 kB / 0.5812 GB, free: 3.121 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.000753/0.7052, allocations: 295.9 kB / 0.5815 GB, free: 2.832 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 7.704e-06/0.7052, allocations: 0.625 kB / 0.5815 GB, free: 2.832 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003091/0.7056, allocations: 151.8 kB / 0.5816 GB, free: 2.684 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007378/0.7063, allocations: 79.92 kB / 0.5817 GB, free: 2.605 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0017/0.708, allocations: 0.9025 MB / 0.5826 GB, free: 1.68 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004534/0.7085, allocations: 0.7248 MB / 0.5833 GB, free: 0.9297 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.0005424/0.709, allocations: 85.78 kB / 0.5834 GB, free: 0.8477 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001331/0.7092, allocations: 31.42 kB / 0.5834 GB, free: 0.8203 MB / 446.1 MB Notification: Performance of SimCode: time 7.02e-07/0.7092, allocations: 0 / 0.5834 GB, free: 0.8203 MB / 446.1 MB Notification: Performance of Templates: time 0.01689/0.7261, allocations: 7.947 MB / 0.5911 GB, free: 8.906 MB / 462.1 MB make -j1 -f ModelicaTest_3.2.3_ModelicaTest.Media.TestOnly.MixIdealGasAir.makefile (rm -f ModelicaTest_3.2.3_ModelicaTest.Media.TestOnly.MixIdealGasAir.pipe ; mkfifo ModelicaTest_3.2.3_ModelicaTest.Media.TestOnly.MixIdealGasAir.pipe ; head -c 1048576 < ModelicaTest_3.2.3_ModelicaTest.Media.TestOnly.MixIdealGasAir.pipe >> ../files/ModelicaTest_3.2.3_ModelicaTest.Media.TestOnly.MixIdealGasAir.sim & ./ModelicaTest_3.2.3_ModelicaTest.Media.TestOnly.MixIdealGasAir -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_3.2.3_ModelicaTest.Media.TestOnly.MixIdealGasAir.pipe 2>&1) diffSimulationResults("ModelicaTest_3.2.3_ModelicaTest.Media.TestOnly.MixIdealGasAir_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/Media/TestOnly/MixIdealGasAir/MixIdealGasAir.csv","../files/ModelicaTest_3.2.3_ModelicaTest.Media.TestOnly.MixIdealGasAir.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches