Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_cpp_ModelicaTest.Media.TestOnly.MixIdealGasAir.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) Using package ModelicaTest with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/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_trunk_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_trunk_cpp_ModelicaTest.Media.TestOnly.MixIdealGasAir") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001005/0.001004, allocations: 199.5 kB / 15.8 MB, free: 6.309 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.301/1.301, allocations: 226.6 MB / 243.1 MB, free: 14.3 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008254/0.0008251, allocations: 103.8 kB / 295.1 MB, free: 10.04 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.193/0.193, allocations: 44.84 MB / 392 MB, free: 9.32 MB / 330.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002391/0.0002391, allocations: 7.984 kB / 464.7 MB, free: 49.77 MB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09066/0.09091, allocations: 62.96 MB / 0.5153 GB, free: 2.766 MB / 346.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Media.TestOnly.MixIdealGasAir): time 0.3179/0.4089, allocations: 136 MB / 0.6481 GB, free: 5.434 MB / 458.7 MB Notification: Performance of NFInst.instExpressions: time 0.003233/0.4121, allocations: 2.919 MB / 0.651 GB, free: 2.508 MB / 458.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.913e-05/0.4123, allocations: 0 / 0.651 GB, free: 2.508 MB / 458.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002748/0.4126, allocations: 43.73 kB / 0.651 GB, free: 2.465 MB / 458.7 MB Notification: Performance of NFTyping.typeBindings: time 0.001978/0.4146, allocations: 0.7076 MB / 0.6517 GB, free: 1.754 MB / 458.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004651/0.415, allocations: 158.3 kB / 0.6519 GB, free: 1.602 MB / 458.7 MB Notification: Performance of NFFlatten.flatten: time 0.0004461/0.4155, allocations: 398.5 kB / 0.6523 GB, free: 1.211 MB / 458.7 MB Notification: Performance of NFFlatten.resolveConnections: time 5.665e-05/0.4156, allocations: 17.06 kB / 0.6523 GB, free: 1.195 MB / 458.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002734/0.4158, allocations: 147.5 kB / 0.6524 GB, free: 1.051 MB / 458.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002071/0.416, allocations: 119.6 kB / 0.6525 GB, free: 0.9336 MB / 458.7 MB Notification: Performance of NFPackage.collectConstants: time 3.263e-05/0.4161, allocations: 4 kB / 0.6525 GB, free: 0.9297 MB / 458.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002143/0.4182, allocations: 1.06 MB / 0.6536 GB, free: 15.86 MB / 474.7 MB Notification: Performance of NFScalarize.scalarize: time 9.554e-05/0.4183, allocations: 83.67 kB / 0.6537 GB, free: 15.79 MB / 474.7 MB Notification: Performance of NFVerifyModel.verify: time 6.331e-05/0.4184, allocations: 57.64 kB / 0.6537 GB, free: 15.72 MB / 474.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0009389/0.4194, allocations: 0.6096 MB / 0.6543 GB, free: 15.11 MB / 474.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.028e-06/0.4194, allocations: 0 / 0.6543 GB, free: 15.11 MB / 474.7 MB Notification: Performance of FrontEnd: time 2.976e-06/0.4194, allocations: 0 / 0.6543 GB, free: 15.11 MB / 474.7 MB Notification: Performance of Transformations before backend: time 7.153e-06/0.4194, allocations: 3.938 kB / 0.6543 GB, free: 15.11 MB / 474.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.0007663/0.4202, allocations: 0.4953 MB / 0.6548 GB, free: 14.57 MB / 474.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.795e-05/0.4202, allocations: 12.03 kB / 0.6548 GB, free: 14.55 MB / 474.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003486/0.4237, allocations: 391.8 kB / 0.6552 GB, free: 14.17 MB / 474.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003463/0.4241, allocations: 266.7 kB / 0.6554 GB, free: 13.87 MB / 474.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.699e-05/0.4241, allocations: 12.38 kB / 0.6554 GB, free: 13.86 MB / 474.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.127e-05/0.4242, allocations: 20 kB / 0.6555 GB, free: 13.84 MB / 474.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009018/0.4251, allocations: 485.5 kB / 0.6559 GB, free: 13.36 MB / 474.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.726e-06/0.4251, allocations: 0 / 0.6559 GB, free: 13.36 MB / 474.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.941e-05/0.4252, allocations: 8 kB / 0.6559 GB, free: 13.35 MB / 474.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.743e-06/0.4252, allocations: 4 kB / 0.6559 GB, free: 13.34 MB / 474.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009538/0.4261, allocations: 0.5035 MB / 0.6564 GB, free: 12.84 MB / 474.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.002002/0.4282, allocations: 0.9887 MB / 0.6574 GB, free: 11.8 MB / 474.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005219/0.4287, allocations: 285 kB / 0.6577 GB, free: 11.5 MB / 474.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002437/0.4289, allocations: 150.5 kB / 0.6578 GB, free: 11.35 MB / 474.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001594/0.4305, allocations: 0.9802 MB / 0.6588 GB, free: 10.2 MB / 474.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.542e-05/0.4306, allocations: 38.56 kB / 0.6588 GB, free: 10.15 MB / 474.7 MB Notification: Performance of pre-optimization done (n=29): time 1.663e-06/0.4306, allocations: 0 / 0.6588 GB, free: 10.15 MB / 474.7 MB Notification: Performance of matching and sorting (n=29): time 0.0008575/0.4315, allocations: 399.1 kB / 0.6592 GB, free: 9.762 MB / 474.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.417e-05/0.4315, allocations: 85.11 kB / 0.6593 GB, free: 9.66 MB / 474.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.56e-05/0.4316, allocations: 117.8 kB / 0.6594 GB, free: 9.535 MB / 474.7 MB Notification: Performance of collectPreVariables (initialization): time 3.499e-05/0.4316, allocations: 29.7 kB / 0.6594 GB, free: 9.5 MB / 474.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.462e-05/0.4317, allocations: 112.4 kB / 0.6595 GB, free: 9.387 MB / 474.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.627e-05/0.4318, allocations: 110.4 kB / 0.6596 GB, free: 9.277 MB / 474.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.161e-05/0.4318, allocations: 8 kB / 0.6596 GB, free: 9.27 MB / 474.7 MB Notification: Performance of setup shared object (initialization): time 8.843e-05/0.4319, allocations: 326.8 kB / 0.6599 GB, free: 8.941 MB / 474.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002199/0.4321, allocations: 112.6 kB / 0.66 GB, free: 8.832 MB / 474.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002612/0.4324, allocations: 203.5 kB / 0.6602 GB, free: 8.598 MB / 474.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002485/0.4326, allocations: 139.9 kB / 0.6604 GB, free: 8.461 MB / 474.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.294e-06/0.4327, allocations: 0 / 0.6604 GB, free: 8.461 MB / 474.7 MB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0006429/0.4333, allocations: 371.7 kB / 0.6607 GB, free: 8.094 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.777e-05/0.4333, allocations: 11.94 kB / 0.6607 GB, free: 8.082 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.461e-06/0.4333, allocations: 0 / 0.6607 GB, free: 8.082 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.381e-05/0.4334, allocations: 4 kB / 0.6607 GB, free: 8.078 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004025/0.4338, allocations: 79.89 kB / 0.6608 GB, free: 8 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.995e-06/0.4338, allocations: 4 kB / 0.6608 GB, free: 7.996 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002981/0.4341, allocations: 39.86 kB / 0.6609 GB, free: 7.957 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.21e-05/0.4341, allocations: 16 kB / 0.6609 GB, free: 7.941 MB / 474.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.0001281/0.4343, allocations: 145.7 kB / 0.661 GB, free: 7.789 MB / 474.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.632e-05/0.4344, allocations: 11.91 kB / 0.661 GB, free: 7.777 MB / 474.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007397/0.4351, allocations: 377.6 kB / 0.6614 GB, free: 7.406 MB / 474.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.571e-06/0.4351, allocations: 8 kB / 0.6614 GB, free: 7.398 MB / 474.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.869e-06/0.4351, allocations: 0 / 0.6614 GB, free: 7.398 MB / 474.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.55e-06/0.4351, allocations: 0.5 kB / 0.6614 GB, free: 7.398 MB / 474.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005403/0.4357, allocations: 380.2 kB / 0.6618 GB, free: 6.973 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.593e-06/0.4357, allocations: 3.938 kB / 0.6618 GB, free: 6.969 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003933/0.4361, allocations: 56.84 kB / 0.6618 GB, free: 6.914 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.766e-06/0.4361, allocations: 0 / 0.6618 GB, free: 6.914 MB / 474.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.997e-05/0.4361, allocations: 11.98 kB / 0.6618 GB, free: 6.902 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.216e-06/0.4362, allocations: 4 kB / 0.6618 GB, free: 6.898 MB / 474.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.202e-06/0.4362, allocations: 0 / 0.6618 GB, free: 6.898 MB / 474.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008031/0.437, allocations: 0.5551 MB / 0.6624 GB, free: 6.328 MB / 474.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.747e-05/0.437, allocations: 94.11 kB / 0.6625 GB, free: 6.219 MB / 474.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.902e-05/0.4371, allocations: 12.06 kB / 0.6625 GB, free: 6.207 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000376/0.4375, allocations: 23.91 kB / 0.6625 GB, free: 6.184 MB / 474.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.847e-05/0.4375, allocations: 15.98 kB / 0.6625 GB, free: 6.168 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.296e-05/0.4375, allocations: 19.98 kB / 0.6625 GB, free: 6.148 MB / 474.7 MB Notification: Performance of sorting global known variables: time 4.453e-05/0.4376, allocations: 95.25 kB / 0.6626 GB, free: 6.055 MB / 474.7 MB Notification: Performance of sort global known variables: time 1.4e-07/0.4376, allocations: 0 / 0.6626 GB, free: 6.055 MB / 474.7 MB Notification: Performance of remove unused functions: time 0.0007358/0.4383, allocations: 227.8 kB / 0.6628 GB, free: 5.832 MB / 474.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.0008135/0.4392, allocations: 362.8 kB / 0.6632 GB, free: 5.469 MB / 474.7 MB Notification: Performance of simCode: created initialization part: time 0.0005563/0.4397, allocations: 295.7 kB / 0.6635 GB, free: 5.18 MB / 474.7 MB Notification: Performance of simCode: created event and clocks part: time 3.436e-06/0.4397, allocations: 0 / 0.6635 GB, free: 5.18 MB / 474.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002412/0.44, allocations: 147.9 kB / 0.6636 GB, free: 5.035 MB / 474.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006021/0.4406, allocations: 89.22 kB / 0.6637 GB, free: 4.953 MB / 474.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00111/0.4417, allocations: 0.9249 MB / 0.6646 GB, free: 3.988 MB / 474.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002633/0.442, allocations: 0.7404 MB / 0.6653 GB, free: 3.223 MB / 474.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001581/0.4422, allocations: 31.42 kB / 0.6653 GB, free: 3.191 MB / 474.7 MB Notification: Performance of SimCode: time 2.5e-07/0.4422, allocations: 7.875 kB / 0.6654 GB, free: 3.184 MB / 474.7 MB Notification: Performance of Templates: time 0.008318/0.4505, allocations: 6.411 MB / 0.6716 GB, free: 12.79 MB / 490.7 MB make -j1 -f ModelicaTest_trunk_cpp_ModelicaTest.Media.TestOnly.MixIdealGasAir.makefile (rm -f ModelicaTest_trunk_cpp_ModelicaTest.Media.TestOnly.MixIdealGasAir.pipe ; mkfifo ModelicaTest_trunk_cpp_ModelicaTest.Media.TestOnly.MixIdealGasAir.pipe ; head -c 1048576 < ModelicaTest_trunk_cpp_ModelicaTest.Media.TestOnly.MixIdealGasAir.pipe >> ../files/ModelicaTest_trunk_cpp_ModelicaTest.Media.TestOnly.MixIdealGasAir.sim & ./ModelicaTest_trunk_cpp_ModelicaTest.Media.TestOnly.MixIdealGasAir --alarm=480 -emit_protected > ModelicaTest_trunk_cpp_ModelicaTest.Media.TestOnly.MixIdealGasAir.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_cpp_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","../files/ModelicaTest_trunk_cpp_ModelicaTest.Media.TestOnly.MixIdealGasAir.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches