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.001145/0.001145, allocations: 115.8 kB / 18.4 MB, free: 4.754 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001308/0.001308, allocations: 203.4 kB / 19.35 MB, free: 3.809 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.386/1.386, allocations: 227.4 MB / 247.5 MB, free: 10.36 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2314/0.2314, allocations: 46.1 MB / 344.9 MB, free: 11.49 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001372/0.001372, allocations: 77.17 kB / 419 MB, free: 19 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.149/0.1504, allocations: 62.44 MB / 481.4 MB, free: 4.527 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Media.TestOnly.IdealGasN2): time 0.3783/0.5287, allocations: 152.3 MB / 0.6189 GB, free: 10.37 MB / 462.1 MB Notification: Performance of NFInst.instExpressions: time 0.001369/0.5301, allocations: 1.052 MB / 0.6199 GB, free: 9.328 MB / 462.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.855e-05/0.5302, allocations: 0 / 0.6199 GB, free: 9.328 MB / 462.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002363/0.5305, allocations: 31.77 kB / 0.6199 GB, free: 9.297 MB / 462.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006183/0.5311, allocations: 287.4 kB / 0.6202 GB, free: 9.023 MB / 462.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004159/0.5316, allocations: 107.7 kB / 0.6203 GB, free: 8.918 MB / 462.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002757/0.5318, allocations: 183.2 kB / 0.6205 GB, free: 8.738 MB / 462.1 MB Notification: Performance of NFFlatten.resolveConnections: time 6.251e-05/0.5319, allocations: 4 kB / 0.6205 GB, free: 8.734 MB / 462.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002186/0.5321, allocations: 95.56 kB / 0.6206 GB, free: 8.641 MB / 462.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001086/0.5323, allocations: 51.83 kB / 0.6206 GB, free: 8.59 MB / 462.1 MB Notification: Performance of NFPackage.collectConstants: time 2.372e-05/0.5323, allocations: 11.98 kB / 0.6206 GB, free: 8.578 MB / 462.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005278/0.5328, allocations: 267.7 kB / 0.6209 GB, free: 8.316 MB / 462.1 MB Notification: Performance of NFScalarize.scalarize: time 7.125e-05/0.5329, allocations: 15.92 kB / 0.6209 GB, free: 8.301 MB / 462.1 MB Notification: Performance of NFVerifyModel.verify: time 9.312e-05/0.533, allocations: 59.73 kB / 0.6209 GB, free: 8.242 MB / 462.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004676/0.5335, allocations: 277.1 kB / 0.6212 GB, free: 7.977 MB / 462.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.609e-06/0.5335, allocations: 0 / 0.6212 GB, free: 7.977 MB / 462.1 MB Notification: Performance of FrontEnd: time 2.154e-06/0.5335, allocations: 0 / 0.6212 GB, free: 7.977 MB / 462.1 MB Notification: Performance of Transformations before backend: time 5.27e-06/0.5335, allocations: 0 / 0.6212 GB, free: 7.977 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.0005499/0.5341, allocations: 411.3 kB / 0.6216 GB, free: 7.527 MB / 462.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.818e-05/0.5341, allocations: 15.67 kB / 0.6216 GB, free: 7.516 MB / 462.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001919/0.536, allocations: 196.6 kB / 0.6218 GB, free: 7.324 MB / 462.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003581/0.5364, allocations: 211.9 kB / 0.622 GB, free: 7.078 MB / 462.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.429e-05/0.5364, allocations: 8 kB / 0.622 GB, free: 7.07 MB / 462.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.629e-05/0.5365, allocations: 4 kB / 0.622 GB, free: 7.066 MB / 462.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004767/0.537, allocations: 231 kB / 0.6222 GB, free: 6.828 MB / 462.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.08e-05/0.537, allocations: 8 kB / 0.6222 GB, free: 6.82 MB / 462.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.805e-05/0.537, allocations: 0 / 0.6222 GB, free: 6.82 MB / 462.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.99e-06/0.537, allocations: 0 / 0.6222 GB, free: 6.82 MB / 462.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004064/0.5374, allocations: 171.8 kB / 0.6224 GB, free: 6.652 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.001028/0.5385, allocations: 0.5843 MB / 0.623 GB, free: 6.012 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003273/0.5388, allocations: 138.5 kB / 0.6231 GB, free: 5.867 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001318/0.5389, allocations: 64.83 kB / 0.6232 GB, free: 5.801 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.541e-05/0.539, allocations: 8 kB / 0.6232 GB, free: 5.793 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.554e-05/0.539, allocations: 30.56 kB / 0.6232 GB, free: 5.754 MB / 462.1 MB Notification: Performance of pre-optimization done (n=14): time 1.322e-06/0.539, allocations: 0 / 0.6232 GB, free: 5.754 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.004952/0.544, allocations: 1.309 MB / 0.6245 GB, free: 4.363 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.416e-05/0.544, allocations: 55.41 kB / 0.6245 GB, free: 4.297 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.87e-05/0.5441, allocations: 113.8 kB / 0.6247 GB, free: 4.176 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 2.844e-05/0.5442, allocations: 29.7 kB / 0.6247 GB, free: 4.141 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.38e-05/0.5442, allocations: 107.9 kB / 0.6248 GB, free: 4.031 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.882e-05/0.5443, allocations: 63.05 kB / 0.6248 GB, free: 3.969 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.145e-05/0.5444, allocations: 61.59 kB / 0.6249 GB, free: 3.902 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 0.0001125/0.5445, allocations: 322.8 kB / 0.6252 GB, free: 3.578 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001464/0.5447, allocations: 67.83 kB / 0.6253 GB, free: 3.512 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001727/0.5448, allocations: 111.3 kB / 0.6254 GB, free: 3.391 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003169/0.5452, allocations: 183.3 kB / 0.6256 GB, free: 3.199 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.625e-06/0.5452, allocations: 4 kB / 0.6256 GB, free: 3.195 MB / 462.1 MB Notification: Performance of matching and sorting (n=24) (initialization): time 0.0004696/0.5457, allocations: 253.8 kB / 0.6258 GB, free: 2.941 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.452e-05/0.5457, allocations: 4 kB / 0.6258 GB, free: 2.938 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.881e-06/0.5457, allocations: 4 kB / 0.6258 GB, free: 2.934 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001724/0.5459, allocations: 52.83 kB / 0.6259 GB, free: 2.879 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003093/0.5462, allocations: 55.89 kB / 0.6259 GB, free: 2.824 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0003756/0.5466, allocations: 0.568 MB / 0.6265 GB, free: 2.23 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001615/0.5467, allocations: 11.97 kB / 0.6265 GB, free: 2.219 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.761e-05/0.5468, allocations: 24 kB / 0.6265 GB, free: 2.195 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.000114/0.5469, allocations: 129.8 kB / 0.6266 GB, free: 2.059 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.56e-05/0.547, allocations: 7.906 kB / 0.6266 GB, free: 2.051 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007121/0.5477, allocations: 340.5 kB / 0.627 GB, free: 1.715 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.368e-06/0.5477, allocations: 4 kB / 0.627 GB, free: 1.711 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.789e-06/0.5477, allocations: 4 kB / 0.627 GB, free: 1.707 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.2e-06/0.5477, allocations: 3.984 kB / 0.627 GB, free: 1.703 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009594/0.5487, allocations: 0.6228 MB / 0.6276 GB, free: 1.012 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.616e-06/0.5487, allocations: 4 kB / 0.6276 GB, free: 1.008 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003285/0.549, allocations: 60.05 kB / 0.6276 GB, free: 0.9492 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.618e-05/0.5491, allocations: 20.84 kB / 0.6277 GB, free: 0.9258 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.068e-05/0.5492, allocations: 15.98 kB / 0.6277 GB, free: 0.9102 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009042/0.5501, allocations: 1.366 MB / 0.629 GB, free: 15.41 MB / 478.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.935e-06/0.5501, allocations: 0 / 0.629 GB, free: 15.41 MB / 478.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006269/0.5507, allocations: 436.8 kB / 0.6294 GB, free: 14.95 MB / 478.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.512e-05/0.5508, allocations: 85.05 kB / 0.6295 GB, free: 14.85 MB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.336e-05/0.5508, allocations: 11.98 kB / 0.6295 GB, free: 14.84 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000209/0.551, allocations: 11.98 kB / 0.6295 GB, free: 14.83 MB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.502e-05/0.5511, allocations: 24.78 kB / 0.6296 GB, free: 14.8 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.87e-05/0.5511, allocations: 24.06 kB / 0.6296 GB, free: 14.78 MB / 478.1 MB Notification: Performance of sorting global known variables: time 4.97e-05/0.5512, allocations: 95.27 kB / 0.6297 GB, free: 14.69 MB / 478.1 MB Notification: Performance of sort global known variables: time 1.21e-07/0.5512, allocations: 0 / 0.6297 GB, free: 14.69 MB / 478.1 MB Notification: Performance of remove unused functions: time 0.0004122/0.5516, allocations: 79.94 kB / 0.6297 GB, free: 14.61 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.000378/0.552, allocations: 151.2 kB / 0.6299 GB, free: 14.45 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.0004859/0.5525, allocations: 207.3 kB / 0.6301 GB, free: 14.25 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 3.096e-06/0.5525, allocations: 4 kB / 0.6301 GB, free: 14.25 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003412/0.5529, allocations: 219 kB / 0.6303 GB, free: 14.02 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004465/0.5533, allocations: 56.36 kB / 0.6304 GB, free: 13.96 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008584/0.5542, allocations: 475.5 kB / 0.6308 GB, free: 13.46 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003018/0.5545, allocations: 0.7046 MB / 0.6315 GB, free: 12.73 MB / 478.1 MB Notification: Performance of simCode: alias equations: time 0.0002825/0.5548, allocations: 77.38 kB / 0.6316 GB, free: 12.66 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001611/0.555, allocations: 55.41 kB / 0.6316 GB, free: 12.61 MB / 478.1 MB Notification: Performance of SimCode: time 4.5e-07/0.555, allocations: 0 / 0.6316 GB, free: 12.61 MB / 478.1 MB Notification: Performance of Templates: time 0.008982/0.564, allocations: 5.61 MB / 0.6371 GB, free: 7.004 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 -s cvode -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