Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Media.TestOnly.IdealGasN2.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) 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/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 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) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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_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_ModelicaTest.Media.TestOnly.IdealGasN2") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001136/0.001136, allocations: 103.7 kB / 17.63 MB, free: 5.523 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001127/0.001127, allocations: 212.6 kB / 18.58 MB, free: 4.578 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.454/1.454, allocations: 227.4 MB / 246.8 MB, free: 10.64 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.231/0.231, allocations: 46.09 MB / 344.1 MB, free: 11.54 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001365/0.001365, allocations: 75.88 kB / 417.6 MB, free: 19.76 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1542/0.1556, allocations: 62.46 MB / 480 MB, free: 5.293 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Media.TestOnly.IdealGasN2): time 0.4751/0.6307, allocations: 152.2 MB / 0.6174 GB, free: 10.98 MB / 462.1 MB Notification: Performance of NFInst.instExpressions: time 0.001447/0.6322, allocations: 1.055 MB / 0.6185 GB, free: 9.938 MB / 462.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.096e-05/0.6323, allocations: 0 / 0.6185 GB, free: 9.938 MB / 462.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002677/0.6326, allocations: 38.55 kB / 0.6185 GB, free: 9.902 MB / 462.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006854/0.6333, allocations: 272.5 kB / 0.6188 GB, free: 9.637 MB / 462.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003695/0.6337, allocations: 125.7 kB / 0.6189 GB, free: 9.52 MB / 462.1 MB Notification: Performance of NFFlatten.flatten: time 0.000256/0.6339, allocations: 179.2 kB / 0.6191 GB, free: 9.344 MB / 462.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.1e-05/0.634, allocations: 7.984 kB / 0.6191 GB, free: 9.336 MB / 462.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000207/0.6342, allocations: 93.59 kB / 0.6192 GB, free: 9.246 MB / 462.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001052/0.6343, allocations: 51.77 kB / 0.6192 GB, free: 9.195 MB / 462.1 MB Notification: Performance of NFPackage.collectConstants: time 2.385e-05/0.6344, allocations: 8 kB / 0.6192 GB, free: 9.188 MB / 462.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005261/0.6349, allocations: 267.7 kB / 0.6195 GB, free: 8.926 MB / 462.1 MB Notification: Performance of NFScalarize.scalarize: time 6.059e-05/0.635, allocations: 19.92 kB / 0.6195 GB, free: 8.906 MB / 462.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001239/0.6351, allocations: 55.84 kB / 0.6195 GB, free: 8.852 MB / 462.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005019/0.6356, allocations: 283.3 kB / 0.6198 GB, free: 8.574 MB / 462.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.256e-06/0.6356, allocations: 0 / 0.6198 GB, free: 8.574 MB / 462.1 MB Notification: Performance of FrontEnd: time 2.004e-06/0.6356, allocations: 0 / 0.6198 GB, free: 8.574 MB / 462.1 MB Notification: Performance of Transformations before backend: time 6.503e-06/0.6356, allocations: 0 / 0.6198 GB, free: 8.574 MB / 462.1 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.0006279/0.6363, allocations: 403.3 kB / 0.6202 GB, free: 8.133 MB / 462.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.007e-05/0.6363, allocations: 8.031 kB / 0.6202 GB, free: 8.125 MB / 462.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00233/0.6386, allocations: 204.5 kB / 0.6204 GB, free: 7.926 MB / 462.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002947/0.639, allocations: 209.8 kB / 0.6206 GB, free: 7.684 MB / 462.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.519e-05/0.639, allocations: 4 kB / 0.6206 GB, free: 7.68 MB / 462.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.729e-05/0.639, allocations: 8 kB / 0.6206 GB, free: 7.672 MB / 462.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007275/0.6398, allocations: 226.4 kB / 0.6208 GB, free: 7.438 MB / 462.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.213e-05/0.6398, allocations: 4 kB / 0.6208 GB, free: 7.434 MB / 462.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.854e-05/0.6398, allocations: 8 kB / 0.6208 GB, free: 7.426 MB / 462.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.131e-06/0.6398, allocations: 0 / 0.6208 GB, free: 7.426 MB / 462.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004431/0.6403, allocations: 167.9 kB / 0.621 GB, free: 7.262 MB / 462.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.001145/0.6415, allocations: 0.5804 MB / 0.6216 GB, free: 6.625 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003443/0.6418, allocations: 134.5 kB / 0.6217 GB, free: 6.484 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000146/0.642, allocations: 77.61 kB / 0.6218 GB, free: 6.406 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.697e-05/0.642, allocations: 7.938 kB / 0.6218 GB, free: 6.398 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.903e-05/0.642, allocations: 34.5 kB / 0.6218 GB, free: 6.355 MB / 462.1 MB Notification: Performance of pre-optimization done (n=14): time 1.583e-06/0.642, allocations: 4 kB / 0.6218 GB, free: 6.352 MB / 462.1 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.005575/0.6476, allocations: 1.311 MB / 0.6231 GB, free: 4.949 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.423e-05/0.6477, allocations: 55.41 kB / 0.6231 GB, free: 4.883 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.63e-05/0.6478, allocations: 109.8 kB / 0.6233 GB, free: 4.766 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 2.987e-05/0.6478, allocations: 29.7 kB / 0.6233 GB, free: 4.73 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.897e-05/0.6479, allocations: 95.94 kB / 0.6234 GB, free: 4.633 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.689e-05/0.648, allocations: 67.05 kB / 0.6234 GB, free: 4.566 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.306e-05/0.6481, allocations: 57.59 kB / 0.6235 GB, free: 4.504 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 0.0001332/0.6482, allocations: 322.8 kB / 0.6238 GB, free: 4.18 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001587/0.6484, allocations: 75.83 kB / 0.6239 GB, free: 4.105 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001772/0.6486, allocations: 95.39 kB / 0.624 GB, free: 4 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000332/0.6489, allocations: 187.3 kB / 0.6241 GB, free: 3.805 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.212e-06/0.6489, allocations: 4 kB / 0.6241 GB, free: 3.801 MB / 462.1 MB Notification: Performance of matching and sorting (n=24) (initialization): time 0.0005694/0.6495, allocations: 257.8 kB / 0.6244 GB, free: 3.543 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.862e-05/0.6495, allocations: 4 kB / 0.6244 GB, free: 3.539 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.023e-05/0.6495, allocations: 4 kB / 0.6244 GB, free: 3.535 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001906/0.6497, allocations: 48.77 kB / 0.6244 GB, free: 3.484 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003425/0.6501, allocations: 59.58 kB / 0.6245 GB, free: 3.43 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0004876/0.6506, allocations: 0.5719 MB / 0.6251 GB, free: 2.832 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000169/0.6508, allocations: 4.031 kB / 0.6251 GB, free: 2.828 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.444e-05/0.6508, allocations: 24 kB / 0.6251 GB, free: 2.805 MB / 462.1 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 (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,1)} Notification: Performance of prepare postOptimizeDAE: time 0.0001346/0.651, allocations: 121.8 kB / 0.6252 GB, free: 2.676 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.105e-05/0.651, allocations: 15.84 kB / 0.6252 GB, free: 2.66 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000831/0.6519, allocations: 347.5 kB / 0.6256 GB, free: 2.316 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.741e-06/0.6519, allocations: 4 kB / 0.6256 GB, free: 2.312 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.943e-06/0.6519, allocations: 0 / 0.6256 GB, free: 2.312 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.422e-06/0.6519, allocations: 3.984 kB / 0.6256 GB, free: 2.309 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00107/0.653, allocations: 0.6327 MB / 0.6262 GB, free: 1.609 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.877e-06/0.653, allocations: 4 kB / 0.6262 GB, free: 1.605 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003316/0.6533, allocations: 63.89 kB / 0.6262 GB, free: 1.543 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.153e-05/0.6534, allocations: 16.84 kB / 0.6263 GB, free: 1.523 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.968e-05/0.6534, allocations: 15.98 kB / 0.6263 GB, free: 1.508 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001154/0.6546, allocations: 1.369 MB / 0.6276 GB, free: 0 / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.763e-06/0.6546, allocations: 4.078 kB / 0.6276 GB, free: 15.99 MB / 478.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007004/0.6553, allocations: 426.4 kB / 0.628 GB, free: 15.55 MB / 478.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.331e-05/0.6554, allocations: 89.17 kB / 0.6281 GB, free: 15.45 MB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.499e-05/0.6555, allocations: 9.188 kB / 0.6281 GB, free: 15.44 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002128/0.6557, allocations: 15.92 kB / 0.6281 GB, free: 15.42 MB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.321e-05/0.6557, allocations: 23.97 kB / 0.6282 GB, free: 15.4 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.863e-05/0.6558, allocations: 20 kB / 0.6282 GB, free: 15.38 MB / 478.1 MB Notification: Performance of sorting global known variables: time 6.964e-05/0.6559, allocations: 91.27 kB / 0.6283 GB, free: 15.29 MB / 478.1 MB Notification: Performance of sort global known variables: time 2.2e-07/0.6559, allocations: 0 / 0.6283 GB, free: 15.29 MB / 478.1 MB Notification: Performance of remove unused functions: time 0.0004249/0.6563, allocations: 83.94 kB / 0.6283 GB, free: 15.21 MB / 478.1 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 (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0003958/0.6567, allocations: 147.1 kB / 0.6285 GB, free: 15.05 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.000565/0.6573, allocations: 222.7 kB / 0.6287 GB, free: 14.84 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 3.767e-06/0.6573, allocations: 0 / 0.6287 GB, free: 14.84 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003725/0.6577, allocations: 214.6 kB / 0.6289 GB, free: 14.61 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004686/0.6581, allocations: 47.72 kB / 0.6289 GB, free: 14.57 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009065/0.6591, allocations: 483.5 kB / 0.6294 GB, free: 14.06 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000357/0.6594, allocations: 0.7085 MB / 0.6301 GB, free: 13.33 MB / 478.1 MB Notification: Performance of simCode: alias equations: time 0.0004153/0.6599, allocations: 77.61 kB / 0.6302 GB, free: 13.25 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002085/0.6601, allocations: 55.41 kB / 0.6302 GB, free: 13.2 MB / 478.1 MB Notification: Performance of SimCode: time 1.893e-06/0.6601, allocations: 0 / 0.6302 GB, free: 13.2 MB / 478.1 MB Notification: Performance of Templates: time 0.01059/0.6707, allocations: 5.626 MB / 0.6357 GB, free: 7.582 MB / 478.1 MB make -j1 -f ModelicaTest_trunk_ModelicaTest.Media.TestOnly.IdealGasN2.makefile (rm -f ModelicaTest_trunk_ModelicaTest.Media.TestOnly.IdealGasN2.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Media.TestOnly.IdealGasN2.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Media.TestOnly.IdealGasN2.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Media.TestOnly.IdealGasN2.sim & ./ModelicaTest_trunk_ModelicaTest.Media.TestOnly.IdealGasN2 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_trunk_ModelicaTest.Media.TestOnly.IdealGasN2.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_trunk_ModelicaTest.Media.TestOnly.IdealGasN2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches