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.001885/0.001885, allocations: 112.5 kB / 17.86 MB, free: 5.629 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002468/0.002468, allocations: 209.7 kB / 18.79 MB, free: 4.699 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 2.523/2.523, allocations: 227.4 MB / 246.9 MB, free: 9.078 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.5014/0.5014, allocations: 46.12 MB / 344.3 MB, free: 11.59 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002983/0.002983, allocations: 80.05 kB / 417.5 MB, free: 20.18 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.155/0.158, allocations: 62.44 MB / 479.9 MB, free: 5.723 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Media.TestOnly.IdealGasN2): time 0.7348/0.8929, allocations: 150 MB / 0.6152 GB, free: 13.74 MB / 462.1 MB Notification: Performance of NFInst.instExpressions: time 0.002221/0.8952, allocations: 1.105 MB / 0.6163 GB, free: 12.64 MB / 462.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.857e-05/0.8953, allocations: 0 / 0.6163 GB, free: 12.64 MB / 462.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004074/0.8957, allocations: 27.81 kB / 0.6163 GB, free: 12.62 MB / 462.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001104/0.8969, allocations: 242.4 kB / 0.6165 GB, free: 12.39 MB / 462.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005853/0.8975, allocations: 99.41 kB / 0.6166 GB, free: 12.29 MB / 462.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004324/0.8979, allocations: 243.1 kB / 0.6169 GB, free: 12.05 MB / 462.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.742e-05/0.898, allocations: 4 kB / 0.6169 GB, free: 12.05 MB / 462.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002862/0.8983, allocations: 93.66 kB / 0.617 GB, free: 11.96 MB / 462.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001673/0.8985, allocations: 63.69 kB / 0.617 GB, free: 11.9 MB / 462.1 MB Notification: Performance of NFPackage.collectConstants: time 2.905e-05/0.8985, allocations: 4 kB / 0.617 GB, free: 11.89 MB / 462.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0008583/0.8994, allocations: 271.7 kB / 0.6173 GB, free: 11.63 MB / 462.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001044/0.8995, allocations: 27.89 kB / 0.6173 GB, free: 11.6 MB / 462.1 MB Notification: Performance of NFVerifyModel.verify: time 9.664e-05/0.8996, allocations: 39.81 kB / 0.6173 GB, free: 11.56 MB / 462.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004806/0.9001, allocations: 203.6 kB / 0.6175 GB, free: 11.36 MB / 462.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.252e-06/0.9001, allocations: 0 / 0.6175 GB, free: 11.36 MB / 462.1 MB Notification: Performance of FrontEnd: time 1.433e-06/0.9001, allocations: 0 / 0.6175 GB, free: 11.36 MB / 462.1 MB Notification: Performance of Transformations before backend: time 1.122e-05/0.9002, allocations: 0 / 0.6175 GB, free: 11.36 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.000795/0.901, allocations: 415.2 kB / 0.6179 GB, free: 10.91 MB / 462.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.377e-05/0.901, allocations: 8.875 kB / 0.6179 GB, free: 10.9 MB / 462.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002996/0.904, allocations: 192.6 kB / 0.6181 GB, free: 10.71 MB / 462.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003865/0.9045, allocations: 214.2 kB / 0.6183 GB, free: 10.47 MB / 462.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.01e-05/0.9045, allocations: 4 kB / 0.6183 GB, free: 10.46 MB / 462.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.32e-05/0.9046, allocations: 19.42 kB / 0.6183 GB, free: 10.45 MB / 462.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007931/0.9054, allocations: 224 kB / 0.6186 GB, free: 10.21 MB / 462.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.699e-05/0.9054, allocations: 0 / 0.6186 GB, free: 10.21 MB / 462.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.631e-05/0.9055, allocations: 8 kB / 0.6186 GB, free: 10.21 MB / 462.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.787e-06/0.9055, allocations: 0 / 0.6186 GB, free: 10.21 MB / 462.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000662/0.9062, allocations: 171.8 kB / 0.6187 GB, free: 10.04 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.001579/0.9078, allocations: 0.5809 MB / 0.6193 GB, free: 9.402 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005513/0.9083, allocations: 138.5 kB / 0.6194 GB, free: 9.258 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002338/0.9086, allocations: 72.83 kB / 0.6195 GB, free: 9.184 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.082e-05/0.9086, allocations: 4 kB / 0.6195 GB, free: 9.18 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.912e-05/0.9087, allocations: 34.55 kB / 0.6195 GB, free: 9.137 MB / 462.1 MB Notification: Performance of pre-optimization done (n=14): time 2.504e-06/0.9087, allocations: 0 / 0.6195 GB, free: 9.137 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.008766/0.9175, allocations: 1.311 MB / 0.6208 GB, free: 7.738 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.645e-05/0.9176, allocations: 55.34 kB / 0.6209 GB, free: 7.672 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001591/0.9178, allocations: 109.8 kB / 0.621 GB, free: 7.555 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 4.699e-05/0.9179, allocations: 29.7 kB / 0.621 GB, free: 7.52 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001298/0.918, allocations: 103.9 kB / 0.6211 GB, free: 7.414 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.383e-05/0.9181, allocations: 63.05 kB / 0.6212 GB, free: 7.352 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001538/0.9183, allocations: 57.59 kB / 0.6212 GB, free: 7.289 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 0.0002149/0.9185, allocations: 326.8 kB / 0.6215 GB, free: 6.961 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002516/0.9188, allocations: 71.83 kB / 0.6216 GB, free: 6.891 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002772/0.9191, allocations: 95.39 kB / 0.6217 GB, free: 6.785 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005676/0.9196, allocations: 187.3 kB / 0.6219 GB, free: 6.59 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.124e-06/0.9196, allocations: 0 / 0.6219 GB, free: 6.59 MB / 462.1 MB Notification: Performance of matching and sorting (n=24) (initialization): time 0.0008705/0.9205, allocations: 265.8 kB / 0.6221 GB, free: 6.324 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.533e-05/0.9206, allocations: 4 kB / 0.6221 GB, free: 6.32 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.737e-06/0.9206, allocations: 0 / 0.6221 GB, free: 6.32 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002889/0.9209, allocations: 48.92 kB / 0.6222 GB, free: 6.27 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005207/0.9214, allocations: 59.89 kB / 0.6222 GB, free: 6.211 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007416/0.9222, allocations: 0.5641 MB / 0.6228 GB, free: 5.621 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002893/0.9225, allocations: 12.02 kB / 0.6228 GB, free: 5.609 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.945e-05/0.9226, allocations: 20 kB / 0.6228 GB, free: 5.59 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.0002937/0.9229, allocations: 129.9 kB / 0.6229 GB, free: 5.453 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.781e-05/0.923, allocations: 11.89 kB / 0.6229 GB, free: 5.441 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001474/0.9245, allocations: 343 kB / 0.6233 GB, free: 5.105 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.148e-06/0.9245, allocations: 7.938 kB / 0.6233 GB, free: 5.098 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.805e-06/0.9245, allocations: 0 / 0.6233 GB, free: 5.098 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.63e-06/0.9245, allocations: 0 / 0.6233 GB, free: 5.098 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001632/0.9262, allocations: 0.6291 MB / 0.6239 GB, free: 4.402 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.705e-06/0.9262, allocations: 4 kB / 0.6239 GB, free: 4.398 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006167/0.9268, allocations: 63.89 kB / 0.624 GB, free: 4.336 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001325/0.927, allocations: 16.84 kB / 0.624 GB, free: 4.316 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.333e-05/0.927, allocations: 15.98 kB / 0.624 GB, free: 4.301 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001499/0.9285, allocations: 1.273 MB / 0.6252 GB, free: 2.895 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.761e-06/0.9286, allocations: 4.188 kB / 0.6252 GB, free: 2.891 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001176/0.9298, allocations: 434.5 kB / 0.6257 GB, free: 2.438 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.615e-05/0.9298, allocations: 88.98 kB / 0.6257 GB, free: 2.332 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.838e-05/0.9299, allocations: 8.062 kB / 0.6257 GB, free: 2.324 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003925/0.9303, allocations: 15.94 kB / 0.6258 GB, free: 2.309 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001065/0.9304, allocations: 19.97 kB / 0.6258 GB, free: 2.289 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.518e-05/0.9305, allocations: 27.98 kB / 0.6258 GB, free: 2.262 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.000106/0.9307, allocations: 91.27 kB / 0.6259 GB, free: 2.172 MB / 462.1 MB Notification: Performance of sort global known variables: time 1.7e-07/0.9307, allocations: 0 / 0.6259 GB, free: 2.172 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.0007535/0.9314, allocations: 76 kB / 0.626 GB, free: 2.098 MB / 462.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.0006352/0.9321, allocations: 152 kB / 0.6261 GB, free: 1.938 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.0008844/0.933, allocations: 206.7 kB / 0.6263 GB, free: 1.738 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 6.712e-06/0.933, allocations: 3.938 kB / 0.6263 GB, free: 1.734 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005933/0.9336, allocations: 222.5 kB / 0.6265 GB, free: 1.504 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008851/0.9345, allocations: 58.17 kB / 0.6266 GB, free: 1.453 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001573/0.9361, allocations: 0.5295 MB / 0.6271 GB, free: 0.8867 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004794/0.9366, allocations: 0.7049 MB / 0.6278 GB, free: 160 kB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004192/0.937, allocations: 63.39 kB / 0.6278 GB, free: 96 kB / 462.1 MB Notification: Performance of SimCode: time 4.61e-07/0.9371, allocations: 0 / 0.6278 GB, free: 96 kB / 462.1 MB Notification: Performance of Templates: time 0.01238/0.9494, allocations: 3.86 MB / 0.6316 GB, free: 12.24 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/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Media/TestOnly/IdealGasN2/IdealGasN2.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_trunk_ModelicaTest.Media.TestOnly.IdealGasN2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches