Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_cpp_ModelicaTest.Media.TestOnly.IdealGasN2.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.IdealGasN2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|medium.T|medium.p",fileNamePrefix="ModelicaTest_trunk_cpp_ModelicaTest.Media.TestOnly.IdealGasN2") translateModel(ModelicaTest.Media.TestOnly.IdealGasN2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|medium.T|medium.p",fileNamePrefix="ModelicaTest_trunk_cpp_ModelicaTest.Media.TestOnly.IdealGasN2") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001463/0.001463, allocations: 194.5 kB / 16.09 MB, free: 5.707 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.295/1.295, allocations: 226.5 MB / 243.4 MB, free: 6.457 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007754/0.0007756, allocations: 96.28 kB / 295.5 MB, free: 6.672 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.3189/0.3189, allocations: 44.82 MB / 392.3 MB, free: 35.66 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002526/0.0002533, allocations: 8 kB / 465.3 MB, free: 12.68 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3001/0.3004, allocations: 62.96 MB / 0.5159 GB, free: 37.31 MB / 378.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Media.TestOnly.IdealGasN2): time 0.1334/0.4338, allocations: 135.5 MB / 0.6482 GB, free: 1.582 MB / 458.7 MB Notification: Performance of NFInst.instExpressions: time 0.00113/0.435, allocations: 0.8963 MB / 0.6491 GB, free: 0.6836 MB / 458.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 4.255e-05/0.435, allocations: 7.938 kB / 0.6491 GB, free: 0.6758 MB / 458.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002085/0.4353, allocations: 23.89 kB / 0.6491 GB, free: 0.6523 MB / 458.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0004809/0.4357, allocations: 199 kB / 0.6493 GB, free: 468 kB / 458.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003012/0.4361, allocations: 95.73 kB / 0.6494 GB, free: 372 kB / 458.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002189/0.4363, allocations: 183.2 kB / 0.6496 GB, free: 188 kB / 458.7 MB Notification: Performance of NFFlatten.resolveConnections: time 5.086e-05/0.4363, allocations: 4 kB / 0.6496 GB, free: 184 kB / 458.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001924/0.4365, allocations: 83.67 kB / 0.6497 GB, free: 100 kB / 458.7 MB Notification: Performance of NFSimplifyModel.simplify: time 9.79e-05/0.4367, allocations: 55.77 kB / 0.6497 GB, free: 44 kB / 458.7 MB Notification: Performance of NFPackage.collectConstants: time 2.037e-05/0.4367, allocations: 4 kB / 0.6497 GB, free: 40 kB / 458.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005383/0.4372, allocations: 275.7 kB / 0.65 GB, free: 15.77 MB / 474.7 MB Notification: Performance of NFScalarize.scalarize: time 4.717e-05/0.4373, allocations: 15.92 kB / 0.65 GB, free: 15.75 MB / 474.7 MB Notification: Performance of NFVerifyModel.verify: time 7.86e-05/0.4374, allocations: 69.55 kB / 0.6501 GB, free: 15.68 MB / 474.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002892/0.4377, allocations: 205.1 kB / 0.6503 GB, free: 15.48 MB / 474.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.328e-06/0.4377, allocations: 0 / 0.6503 GB, free: 15.48 MB / 474.7 MB Notification: Performance of FrontEnd: time 1.353e-06/0.4377, allocations: 0 / 0.6503 GB, free: 15.48 MB / 474.7 MB Notification: Performance of Transformations before backend: time 3.637e-06/0.4377, allocations: 0 / 0.6503 GB, free: 15.48 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: 19 * Number of variables: 19 Notification: Performance of Generate backend data structure: time 0.0004716/0.4382, allocations: 379.4 kB / 0.6506 GB, free: 15.06 MB / 474.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.802e-05/0.4382, allocations: 19.97 kB / 0.6506 GB, free: 15.04 MB / 474.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002021/0.4402, allocations: 192.6 kB / 0.6508 GB, free: 14.86 MB / 474.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002203/0.4405, allocations: 207.6 kB / 0.651 GB, free: 14.61 MB / 474.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.193e-05/0.4405, allocations: 4 kB / 0.651 GB, free: 14.61 MB / 474.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.021e-05/0.4405, allocations: 8 kB / 0.651 GB, free: 14.6 MB / 474.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004631/0.441, allocations: 224 kB / 0.6513 GB, free: 14.37 MB / 474.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.091e-05/0.441, allocations: 7.984 kB / 0.6513 GB, free: 14.36 MB / 474.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.371e-05/0.4411, allocations: 4 kB / 0.6513 GB, free: 14.36 MB / 474.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.125e-06/0.4411, allocations: 4 kB / 0.6513 GB, free: 14.35 MB / 474.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004115/0.4415, allocations: 175.7 kB / 0.6514 GB, free: 14.18 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.0009469/0.4425, allocations: 0.5799 MB / 0.652 GB, free: 13.54 MB / 474.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003194/0.4428, allocations: 138.5 kB / 0.6521 GB, free: 13.4 MB / 474.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001366/0.4429, allocations: 68.83 kB / 0.6522 GB, free: 13.33 MB / 474.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.439e-05/0.443, allocations: 0 / 0.6522 GB, free: 13.33 MB / 474.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.556e-05/0.443, allocations: 42.56 kB / 0.6522 GB, free: 13.28 MB / 474.7 MB Notification: Performance of pre-optimization done (n=14): time 9.42e-07/0.443, allocations: 0 / 0.6522 GB, free: 13.28 MB / 474.7 MB Warning: Some equations could not be differentiated for following variables having attribute stateSelect=StateSelect.prefer. They will be treated as if they had stateSelect=StateSelect.default ======================================== 1: medium.T Please use -d=bltdump for more information. Notification: Performance of matching and sorting (n=19): time 0.004986/0.448, allocations: 1.31 MB / 0.6535 GB, free: 11.88 MB / 474.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.187e-05/0.4481, allocations: 55.41 kB / 0.6536 GB, free: 11.81 MB / 474.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.06e-05/0.4482, allocations: 109.8 kB / 0.6537 GB, free: 11.7 MB / 474.7 MB Notification: Performance of collectPreVariables (initialization): time 2.796e-05/0.4482, allocations: 29.7 kB / 0.6537 GB, free: 11.66 MB / 474.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.957e-05/0.4482, allocations: 99.97 kB / 0.6538 GB, free: 11.56 MB / 474.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.957e-05/0.4483, allocations: 70.98 kB / 0.6539 GB, free: 11.49 MB / 474.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.941e-05/0.4483, allocations: 4 kB / 0.6539 GB, free: 11.48 MB / 474.7 MB Notification: Performance of setup shared object (initialization): time 0.0001032/0.4484, allocations: 322.8 kB / 0.6542 GB, free: 11.16 MB / 474.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001529/0.4486, allocations: 71.81 kB / 0.6543 GB, free: 11.09 MB / 474.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001728/0.4488, allocations: 108.1 kB / 0.6544 GB, free: 10.97 MB / 474.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003308/0.4491, allocations: 175.4 kB / 0.6545 GB, free: 10.79 MB / 474.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.986e-06/0.4491, allocations: 0 / 0.6545 GB, free: 10.79 MB / 474.7 MB Notification: Performance of matching and sorting (n=24) (initialization): time 0.0004825/0.4496, allocations: 259.1 kB / 0.6548 GB, free: 10.53 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.682e-05/0.4497, allocations: 4 kB / 0.6548 GB, free: 10.52 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.384e-06/0.4497, allocations: 4 kB / 0.6548 GB, free: 10.52 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000172/0.4498, allocations: 56.83 kB / 0.6548 GB, free: 10.46 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003124/0.4502, allocations: 51.91 kB / 0.6549 GB, free: 10.41 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0003978/0.4506, allocations: 0.5644 MB / 0.6554 GB, free: 9.82 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001896/0.4508, allocations: 11.94 kB / 0.6554 GB, free: 9.809 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.68e-05/0.4508, allocations: 27.98 kB / 0.6555 GB, free: 9.781 MB / 474.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 4 * 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 (23): * Single equations (assignments): 22 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 1} Notification: Performance of prepare postOptimizeDAE: time 0.0001226/0.451, allocations: 133.7 kB / 0.6556 GB, free: 9.641 MB / 474.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.49e-05/0.451, allocations: 7.906 kB / 0.6556 GB, free: 9.633 MB / 474.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008185/0.4518, allocations: 357.6 kB / 0.6559 GB, free: 9.277 MB / 474.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.618e-06/0.4519, allocations: 4 kB / 0.6559 GB, free: 9.273 MB / 474.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.749e-06/0.4519, allocations: 0 / 0.6559 GB, free: 9.273 MB / 474.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.677e-06/0.4519, allocations: 0 / 0.6559 GB, free: 9.273 MB / 474.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009667/0.4529, allocations: 0.6308 MB / 0.6566 GB, free: 8.574 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.825e-06/0.4529, allocations: 0 / 0.6566 GB, free: 8.574 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003369/0.4532, allocations: 63.95 kB / 0.6566 GB, free: 8.512 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.742e-05/0.4533, allocations: 20.84 kB / 0.6566 GB, free: 8.488 MB / 474.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.099e-05/0.4533, allocations: 12 kB / 0.6567 GB, free: 8.477 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008637/0.4542, allocations: 1.273 MB / 0.6579 GB, free: 7.07 MB / 474.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.943e-06/0.4542, allocations: 0 / 0.6579 GB, free: 7.07 MB / 474.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006648/0.4549, allocations: 427.2 kB / 0.6583 GB, free: 6.625 MB / 474.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.389e-05/0.455, allocations: 96.88 kB / 0.6584 GB, free: 6.512 MB / 474.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.173e-05/0.455, allocations: 8 kB / 0.6584 GB, free: 6.504 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002094/0.4552, allocations: 4 kB / 0.6584 GB, free: 6.5 MB / 474.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.344e-05/0.4553, allocations: 31.97 kB / 0.6584 GB, free: 6.469 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.21e-05/0.4553, allocations: 27.98 kB / 0.6585 GB, free: 6.441 MB / 474.7 MB Notification: Performance of sorting global known variables: time 5.075e-05/0.4554, allocations: 83.28 kB / 0.6585 GB, free: 6.359 MB / 474.7 MB Notification: Performance of sort global known variables: time 1.2e-07/0.4554, allocations: 0 / 0.6585 GB, free: 6.359 MB / 474.7 MB Notification: Performance of remove unused functions: time 0.0003878/0.4558, allocations: 87.98 kB / 0.6586 GB, free: 6.273 MB / 474.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 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 (21): * Single equations (assignments): 20 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0003462/0.4561, allocations: 151.1 kB / 0.6588 GB, free: 6.117 MB / 474.7 MB Notification: Performance of simCode: created initialization part: time 0.0004598/0.4566, allocations: 203.2 kB / 0.659 GB, free: 5.922 MB / 474.7 MB Notification: Performance of simCode: created event and clocks part: time 3.086e-06/0.4566, allocations: 0 / 0.659 GB, free: 5.922 MB / 474.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000322/0.4569, allocations: 218.8 kB / 0.6592 GB, free: 5.695 MB / 474.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004405/0.4574, allocations: 51.64 kB / 0.6592 GB, free: 5.648 MB / 474.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008285/0.4582, allocations: 0.5975 MB / 0.6598 GB, free: 5.012 MB / 474.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002672/0.4585, allocations: 0.7049 MB / 0.6605 GB, free: 4.277 MB / 474.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002604/0.4588, allocations: 59.41 kB / 0.6606 GB, free: 4.219 MB / 474.7 MB Notification: Performance of SimCode: time 3.61e-07/0.4588, allocations: 0 / 0.6606 GB, free: 4.219 MB / 474.7 MB Notification: Performance of Templates: time 0.006129/0.4649, allocations: 3.856 MB / 0.6643 GB, free: 364 kB / 474.7 MB make -j1 -f ModelicaTest_trunk_cpp_ModelicaTest.Media.TestOnly.IdealGasN2.makefile (rm -f ModelicaTest_trunk_cpp_ModelicaTest.Media.TestOnly.IdealGasN2.pipe ; mkfifo ModelicaTest_trunk_cpp_ModelicaTest.Media.TestOnly.IdealGasN2.pipe ; head -c 1048576 < ModelicaTest_trunk_cpp_ModelicaTest.Media.TestOnly.IdealGasN2.pipe >> ../files/ModelicaTest_trunk_cpp_ModelicaTest.Media.TestOnly.IdealGasN2.sim & ./ModelicaTest_trunk_cpp_ModelicaTest.Media.TestOnly.IdealGasN2 --alarm=480 -emit_protected > ModelicaTest_trunk_cpp_ModelicaTest.Media.TestOnly.IdealGasN2.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_cpp_ModelicaTest.Media.TestOnly.IdealGasN2_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Media/TestOnly/IdealGasN2/IdealGasN2.csv","../files/ModelicaTest_trunk_cpp_ModelicaTest.Media.TestOnly.IdealGasN2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches