Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_cpp_ModelicaTest.Media.TestOnly.MixIdealGasAir.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+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/ModelicaServices 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 ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+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_cpp_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_cpp_ModelicaTest.Media.TestOnly.MixIdealGasAir") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001209/0.001209, allocations: 177.5 kB / 16.41 MB, free: 5.707 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.649/1.649, allocations: 205.4 MB / 222.5 MB, free: 9.121 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008087/0.0008083, allocations: 94.3 kB / 270.9 MB, free: 8.355 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.3963/0.3963, allocations: 43.56 MB / 362.7 MB, free: 52.13 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003554/0.0003553, allocations: 8 kB / 431.4 MB, free: 6.16 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1396/0.14, allocations: 58.85 MB / 490.2 MB, free: 11.22 MB / 378.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Media.TestOnly.MixIdealGasAir): time 0.4598/0.5999, allocations: 137.1 MB / 0.6127 GB, free: 14.12 MB / 442.7 MB Notification: Performance of NFInst.instExpressions: time 0.003453/0.6034, allocations: 2.822 MB / 0.6154 GB, free: 11.31 MB / 442.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.744e-05/0.6035, allocations: 7.938 kB / 0.6154 GB, free: 11.3 MB / 442.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002941/0.6038, allocations: 31.81 kB / 0.6155 GB, free: 11.27 MB / 442.7 MB Notification: Performance of NFTyping.typeBindings: time 0.002001/0.6058, allocations: 0.6959 MB / 0.6161 GB, free: 10.57 MB / 442.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005174/0.6064, allocations: 166.8 kB / 0.6163 GB, free: 10.41 MB / 442.7 MB Notification: Performance of NFFlatten.flatten: time 0.0004981/0.6069, allocations: 410.5 kB / 0.6167 GB, free: 10.01 MB / 442.7 MB Notification: Performance of NFFlatten.resolveConnections: time 5.974e-05/0.6069, allocations: 8.047 kB / 0.6167 GB, free: 10 MB / 442.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000264/0.6072, allocations: 139.5 kB / 0.6168 GB, free: 9.867 MB / 442.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002154/0.6074, allocations: 115.6 kB / 0.6169 GB, free: 9.754 MB / 442.7 MB Notification: Performance of NFPackage.collectConstants: time 3.252e-05/0.6075, allocations: 8 kB / 0.6169 GB, free: 9.746 MB / 442.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002498/0.61, allocations: 1.056 MB / 0.618 GB, free: 8.688 MB / 442.7 MB Notification: Performance of NFScalarize.scalarize: time 9.23e-05/0.6101, allocations: 75.77 kB / 0.618 GB, free: 8.613 MB / 442.7 MB Notification: Performance of NFVerifyModel.verify: time 6.542e-05/0.6102, allocations: 61.64 kB / 0.6181 GB, free: 8.547 MB / 442.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0008294/0.611, allocations: 0.5863 MB / 0.6187 GB, free: 7.961 MB / 442.7 MB Notification: Performance of FrontEnd - DAE generated: time 7.774e-06/0.611, allocations: 0 / 0.6187 GB, free: 7.961 MB / 442.7 MB Notification: Performance of FrontEnd: time 2.445e-06/0.611, allocations: 3.938 kB / 0.6187 GB, free: 7.957 MB / 442.7 MB Notification: Performance of Transformations before backend: time 6.362e-06/0.611, allocations: 0 / 0.6187 GB, free: 7.957 MB / 442.7 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.0008149/0.6119, allocations: 0.5027 MB / 0.6192 GB, free: 7.41 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.34e-05/0.6119, allocations: 8.031 kB / 0.6192 GB, free: 7.402 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003449/0.6154, allocations: 381.5 kB / 0.6195 GB, free: 7.035 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000353/0.6157, allocations: 250.8 kB / 0.6198 GB, free: 6.75 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.174e-05/0.6158, allocations: 16.38 kB / 0.6198 GB, free: 6.734 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.549e-05/0.6158, allocations: 16 kB / 0.6198 GB, free: 6.719 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00099/0.6168, allocations: 495.4 kB / 0.6203 GB, free: 6.227 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.195e-05/0.6169, allocations: 3.938 kB / 0.6203 GB, free: 6.223 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.934e-05/0.617, allocations: 16 kB / 0.6203 GB, free: 6.207 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.16e-05/0.617, allocations: 7.938 kB / 0.6203 GB, free: 6.199 MB / 442.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001011/0.618, allocations: 0.5074 MB / 0.6208 GB, free: 5.691 MB / 442.7 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.002232/0.6203, allocations: 0.9899 MB / 0.6218 GB, free: 4.66 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005883/0.6208, allocations: 297.2 kB / 0.6221 GB, free: 4.352 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003293/0.6212, allocations: 145.7 kB / 0.6222 GB, free: 4.203 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001683/0.6229, allocations: 0.8931 MB / 0.6231 GB, free: 3.16 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.924e-05/0.6229, allocations: 34.56 kB / 0.6231 GB, free: 3.117 MB / 442.7 MB Notification: Performance of pre-optimization done (n=29): time 2.525e-06/0.6229, allocations: 1.312 kB / 0.6231 GB, free: 3.117 MB / 442.7 MB Notification: Performance of matching and sorting (n=29): time 0.00095/0.6239, allocations: 410.5 kB / 0.6235 GB, free: 2.715 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.87e-05/0.624, allocations: 81.06 kB / 0.6236 GB, free: 2.617 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.878e-05/0.6241, allocations: 117.8 kB / 0.6237 GB, free: 2.492 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 3.995e-05/0.6241, allocations: 33.7 kB / 0.6237 GB, free: 2.453 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.644e-05/0.6242, allocations: 112.3 kB / 0.6238 GB, free: 2.34 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 8.703e-05/0.6243, allocations: 106.5 kB / 0.6239 GB, free: 2.234 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.132e-05/0.6243, allocations: 8 kB / 0.6239 GB, free: 2.227 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.0001203/0.6244, allocations: 326.8 kB / 0.6242 GB, free: 1.898 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002325/0.6247, allocations: 116.6 kB / 0.6244 GB, free: 1.785 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003249/0.625, allocations: 199.5 kB / 0.6245 GB, free: 1.555 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002647/0.6253, allocations: 142.7 kB / 0.6247 GB, free: 1.418 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.765e-06/0.6253, allocations: 0 / 0.6247 GB, free: 1.418 MB / 442.7 MB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0006968/0.626, allocations: 381.1 kB / 0.625 GB, free: 1.039 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.852e-05/0.626, allocations: 9.156 kB / 0.6251 GB, free: 1.031 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.176e-06/0.626, allocations: 4 kB / 0.6251 GB, free: 1.027 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.766e-05/0.6261, allocations: 4 kB / 0.6251 GB, free: 1.023 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004167/0.6265, allocations: 76.2 kB / 0.6251 GB, free: 0.9492 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.182e-05/0.6265, allocations: 8 kB / 0.6251 GB, free: 0.9414 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003179/0.6268, allocations: 35.69 kB / 0.6252 GB, free: 0.9062 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.272e-05/0.6269, allocations: 20 kB / 0.6252 GB, free: 0.8867 MB / 442.7 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.0001499/0.627, allocations: 149.6 kB / 0.6253 GB, free: 0.7305 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.619e-05/0.6271, allocations: 11.91 kB / 0.6253 GB, free: 0.7188 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000794/0.6279, allocations: 380.8 kB / 0.6257 GB, free: 356 kB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.905e-06/0.6279, allocations: 7.984 kB / 0.6257 GB, free: 348 kB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.358e-06/0.628, allocations: 0 / 0.6257 GB, free: 348 kB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.75e-06/0.628, allocations: 0 / 0.6257 GB, free: 348 kB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006069/0.6286, allocations: 364.7 kB / 0.6261 GB, free: 15.93 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.697e-06/0.6286, allocations: 0.875 kB / 0.6261 GB, free: 15.93 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004392/0.629, allocations: 63.89 kB / 0.6261 GB, free: 15.87 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.807e-06/0.6291, allocations: 0 / 0.6261 GB, free: 15.87 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.986e-05/0.6291, allocations: 12 kB / 0.6261 GB, free: 15.86 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.668e-06/0.6291, allocations: 4.859 kB / 0.6261 GB, free: 15.85 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.022e-06/0.6291, allocations: 0 / 0.6261 GB, free: 15.85 MB / 458.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008751/0.63, allocations: 0.5512 MB / 0.6267 GB, free: 15.29 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.725e-05/0.6301, allocations: 88.95 kB / 0.6268 GB, free: 15.18 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.949e-05/0.6301, allocations: 16.05 kB / 0.6268 GB, free: 15.17 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003977/0.6305, allocations: 19.89 kB / 0.6268 GB, free: 15.15 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.839e-05/0.6305, allocations: 15.98 kB / 0.6268 GB, free: 15.13 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.128e-05/0.6306, allocations: 19.98 kB / 0.6268 GB, free: 15.11 MB / 458.7 MB Notification: Performance of sorting global known variables: time 5.49e-05/0.6307, allocations: 91.2 kB / 0.6269 GB, free: 15.02 MB / 458.7 MB Notification: Performance of sort global known variables: time 1.5e-07/0.6307, allocations: 0 / 0.6269 GB, free: 15.02 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.0007992/0.6315, allocations: 227.8 kB / 0.6271 GB, free: 14.8 MB / 458.7 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.0008982/0.6324, allocations: 358.3 kB / 0.6275 GB, free: 14.45 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.000648/0.633, allocations: 306.9 kB / 0.6278 GB, free: 14.15 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 6.462e-06/0.633, allocations: 4 kB / 0.6278 GB, free: 14.14 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002585/0.6333, allocations: 144.4 kB / 0.6279 GB, free: 14 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006655/0.634, allocations: 89.25 kB / 0.628 GB, free: 13.92 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001416/0.6354, allocations: 0.931 MB / 0.6289 GB, free: 12.96 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003791/0.6358, allocations: 0.7326 MB / 0.6296 GB, free: 12.2 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001701/0.636, allocations: 35.42 kB / 0.6297 GB, free: 12.17 MB / 458.7 MB Notification: Performance of SimCode: time 2.004e-06/0.636, allocations: 0 / 0.6297 GB, free: 12.17 MB / 458.7 MB Notification: Performance of Templates: time 0.009281/0.6453, allocations: 6.327 MB / 0.6358 GB, free: 5.852 MB / 458.7 MB make -j1 -f ModelicaTest_3.2.3_cpp_ModelicaTest.Media.TestOnly.MixIdealGasAir.makefile (rm -f ModelicaTest_3.2.3_cpp_ModelicaTest.Media.TestOnly.MixIdealGasAir.pipe ; mkfifo ModelicaTest_3.2.3_cpp_ModelicaTest.Media.TestOnly.MixIdealGasAir.pipe ; head -c 1048576 < ModelicaTest_3.2.3_cpp_ModelicaTest.Media.TestOnly.MixIdealGasAir.pipe >> ../files/ModelicaTest_3.2.3_cpp_ModelicaTest.Media.TestOnly.MixIdealGasAir.sim & ./ModelicaTest_3.2.3_cpp_ModelicaTest.Media.TestOnly.MixIdealGasAir --alarm=480 -emit_protected > ModelicaTest_3.2.3_cpp_ModelicaTest.Media.TestOnly.MixIdealGasAir.pipe 2>&1) diffSimulationResults("ModelicaTest_3.2.3_cpp_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_cpp_ModelicaTest.Media.TestOnly.MixIdealGasAir.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches