Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr BuildingSystems_BuildingSystems.Media.Specialized.Air.Examples.PerfectGasDerivativeCheck.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo", uses=false) Using package BuildingSystems with version 2.0.0-beta (/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo) Using package NcDataReader2 with version 2.5.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(BuildingSystems.Media.Specialized.Air.Examples.PerfectGasDerivativeCheck,tolerance=1e-08,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Media.Specialized.Air.Examples.PerfectGasDerivativeCheck") translateModel(BuildingSystems.Media.Specialized.Air.Examples.PerfectGasDerivativeCheck,tolerance=1e-08,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Media.Specialized.Air.Examples.PerfectGasDerivativeCheck") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001241/0.001241, allocations: 114.9 kB / 16.37 MB, free: 5.984 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001211/0.001211, allocations: 192.6 kB / 17.31 MB, free: 5.602 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.262/1.262, allocations: 222.9 MB / 241 MB, free: 15.16 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002042/0.002042, allocations: 278.7 kB / 291.4 MB, free: 14.48 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9097/0.9097, allocations: 169.3 MB / 0.4989 GB, free: 4.465 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001759/0.001759, allocations: 99.77 kB / 0.5967 GB, free: 14.44 MB / 414.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1556/0.1574, allocations: 86.97 MB / 0.6816 GB, free: 7.453 MB / 494.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Media.Specialized.Air.Examples.PerfectGasDerivativeCheck): time 0.002217/0.1596, allocations: 1.27 MB / 0.6828 GB, free: 6.172 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.399/0.5587, allocations: 147 MB / 0.8264 GB, free: 10.29 MB / 0.5919 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.173e-05/0.5587, allocations: 0 / 0.8264 GB, free: 10.29 MB / 0.5919 GB Notification: Performance of NFTyping.typeComponents: time 2.21e-05/0.5588, allocations: 11.86 kB / 0.8264 GB, free: 10.28 MB / 0.5919 GB Notification: Performance of NFTyping.typeBindings: time 4.153e-05/0.5588, allocations: 5.859 kB / 0.8264 GB, free: 10.27 MB / 0.5919 GB Notification: Performance of NFTyping.typeClassSections: time 0.000349/0.5592, allocations: 99.69 kB / 0.8265 GB, free: 10.18 MB / 0.5919 GB Notification: Performance of NFFlatten.flatten: time 6.887e-05/0.5593, allocations: 35.86 kB / 0.8265 GB, free: 10.14 MB / 0.5919 GB Notification: Performance of NFFlatten.resolveConnections: time 3.478e-05/0.5593, allocations: 7.984 kB / 0.8265 GB, free: 10.14 MB / 0.5919 GB Notification: Performance of NFEvalConstants.evaluate: time 3.577e-05/0.5593, allocations: 15.98 kB / 0.8266 GB, free: 10.12 MB / 0.5919 GB Notification: Performance of NFSimplifyModel.simplify: time 5.485e-05/0.5594, allocations: 15.92 kB / 0.8266 GB, free: 10.11 MB / 0.5919 GB Notification: Performance of NFPackage.collectConstants: time 1.142e-05/0.5594, allocations: 4 kB / 0.8266 GB, free: 10.1 MB / 0.5919 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002203/0.5596, allocations: 75.81 kB / 0.8266 GB, free: 10.03 MB / 0.5919 GB Notification: Performance of NFScalarize.scalarize: time 1.502e-05/0.5597, allocations: 8 kB / 0.8267 GB, free: 10.02 MB / 0.5919 GB Notification: Performance of NFVerifyModel.verify: time 2.495e-05/0.5597, allocations: 11.94 kB / 0.8267 GB, free: 10.01 MB / 0.5919 GB Notification: Performance of NFConvertDAE.convert: time 0.0001354/0.5598, allocations: 71.66 kB / 0.8267 GB, free: 9.941 MB / 0.5919 GB Notification: Performance of FrontEnd - DAE generated: time 4.338e-06/0.5599, allocations: 4 kB / 0.8267 GB, free: 9.938 MB / 0.5919 GB Notification: Performance of FrontEnd: time 9.51e-07/0.5599, allocations: 4 kB / 0.8267 GB, free: 9.934 MB / 0.5919 GB Notification: Performance of Transformations before backend: time 5.47e-06/0.5599, allocations: 0 / 0.8267 GB, free: 9.934 MB / 0.5919 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 7 * Number of variables: 7 Notification: Performance of Generate backend data structure: time 0.0003359/0.5602, allocations: 342.1 kB / 0.8271 GB, free: 9.555 MB / 0.5919 GB Notification: Performance of prepare preOptimizeDAE: time 3.124e-05/0.5603, allocations: 12.03 kB / 0.8271 GB, free: 9.543 MB / 0.5919 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001779/0.5604, allocations: 12.94 kB / 0.8271 GB, free: 9.531 MB / 0.5919 GB Notification: Performance of preOpt evaluateParameters (simulation): time 8.761e-05/0.5605, allocations: 173.9 kB / 0.8273 GB, free: 9.324 MB / 0.5919 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.214e-05/0.5606, allocations: 7.922 kB / 0.8273 GB, free: 9.316 MB / 0.5919 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.319e-05/0.5606, allocations: 11.84 kB / 0.8273 GB, free: 9.305 MB / 0.5919 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001016/0.5607, allocations: 53.69 kB / 0.8273 GB, free: 9.246 MB / 0.5919 GB Notification: Performance of preOpt findStateOrder (simulation): time 5.891e-06/0.5607, allocations: 0 / 0.8273 GB, free: 9.246 MB / 0.5919 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.197e-06/0.5607, allocations: 0 / 0.8273 GB, free: 9.246 MB / 0.5919 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.676e-06/0.5607, allocations: 0 / 0.8273 GB, free: 9.246 MB / 0.5919 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.129e-05/0.5608, allocations: 19.98 kB / 0.8273 GB, free: 9.227 MB / 0.5919 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001437/0.5609, allocations: 165.7 kB / 0.8275 GB, free: 9.016 MB / 0.5919 GB Notification: Performance of preOpt comSubExp (simulation): time 8.343e-05/0.561, allocations: 54.12 kB / 0.8276 GB, free: 8.957 MB / 0.5919 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.788e-05/0.561, allocations: 20.86 kB / 0.8276 GB, free: 8.934 MB / 0.5919 GB Notification: Performance of preOpt evalFunc (simulation): time 1.05e-05/0.5611, allocations: 0 / 0.8276 GB, free: 8.934 MB / 0.5919 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.04e-05/0.5611, allocations: 34.56 kB / 0.8276 GB, free: 8.891 MB / 0.5919 GB Notification: Performance of pre-optimization done (n=7): time 9.12e-07/0.5611, allocations: 0 / 0.8276 GB, free: 8.891 MB / 0.5919 GB Notification: Performance of matching and sorting (n=11): time 0.0006274/0.5617, allocations: 370.3 kB / 0.828 GB, free: 8.477 MB / 0.5919 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.946e-05/0.5618, allocations: 59.34 kB / 0.828 GB, free: 8.406 MB / 0.5919 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.017e-05/0.5618, allocations: 93.86 kB / 0.8281 GB, free: 8.305 MB / 0.5919 GB Notification: Performance of collectPreVariables (initialization): time 1.871e-05/0.5618, allocations: 29.7 kB / 0.8281 GB, free: 8.27 MB / 0.5919 GB Notification: Performance of collectInitialEqns (initialization): time 2.321e-05/0.5619, allocations: 80.14 kB / 0.8282 GB, free: 8.188 MB / 0.5919 GB Notification: Performance of collectInitialBindings (initialization): time 3.633e-05/0.5619, allocations: 43.39 kB / 0.8283 GB, free: 8.145 MB / 0.5919 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.857e-05/0.562, allocations: 29.7 kB / 0.8283 GB, free: 8.109 MB / 0.5919 GB Notification: Performance of setup shared object (initialization): time 8.845e-05/0.5621, allocations: 318.8 kB / 0.8286 GB, free: 7.789 MB / 0.5919 GB Notification: Performance of preBalanceInitialSystem (initialization): time 3.258e-05/0.5621, allocations: 19.98 kB / 0.8286 GB, free: 7.77 MB / 0.5919 GB Notification: Performance of partitionIndependentBlocks (initialization): time 4.343e-05/0.5621, allocations: 39.08 kB / 0.8286 GB, free: 7.727 MB / 0.5919 GB Notification: Performance of analyzeInitialSystem (initialization): time 7.591e-05/0.5622, allocations: 59.19 kB / 0.8287 GB, free: 7.664 MB / 0.5919 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.62e-07/0.5622, allocations: 0 / 0.8287 GB, free: 7.664 MB / 0.5919 GB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0001203/0.5624, allocations: 95.17 kB / 0.8288 GB, free: 7.566 MB / 0.5919 GB Notification: Performance of prepare postOptimizeDAE: time 1.64e-05/0.5624, allocations: 7.984 kB / 0.8288 GB, free: 7.559 MB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.957e-06/0.5624, allocations: 0 / 0.8288 GB, free: 7.559 MB / 0.5919 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.161e-05/0.5624, allocations: 4 kB / 0.8288 GB, free: 7.555 MB / 0.5919 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001042/0.5625, allocations: 23.94 kB / 0.8288 GB, free: 7.531 MB / 0.5919 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.953e-06/0.5625, allocations: 4 kB / 0.8288 GB, free: 7.527 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.925e-05/0.5626, allocations: 4 kB / 0.8288 GB, free: 7.523 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.124e-06/0.5626, allocations: 4 kB / 0.8288 GB, free: 7.52 MB / 0.5919 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * 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 (14): * Single equations (assignments): 14 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 6.552e-05/0.5626, allocations: 117.8 kB / 0.829 GB, free: 7.395 MB / 0.5919 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.494e-05/0.5627, allocations: 7.906 kB / 0.829 GB, free: 7.387 MB / 0.5919 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.09e-05/0.5627, allocations: 11.97 kB / 0.829 GB, free: 7.375 MB / 0.5919 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.825e-06/0.5627, allocations: 4 kB / 0.829 GB, free: 7.371 MB / 0.5919 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.256e-06/0.5627, allocations: 0 / 0.829 GB, free: 7.371 MB / 0.5919 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.415e-06/0.5627, allocations: 0 / 0.829 GB, free: 7.371 MB / 0.5919 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001093/0.5628, allocations: 173.6 kB / 0.8291 GB, free: 7.152 MB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.052e-06/0.5628, allocations: 4 kB / 0.8291 GB, free: 7.148 MB / 0.5919 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001154/0.563, allocations: 27.92 kB / 0.8292 GB, free: 7.121 MB / 0.5919 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.663e-06/0.563, allocations: 0 / 0.8292 GB, free: 7.121 MB / 0.5919 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.877e-06/0.563, allocations: 7.938 kB / 0.8292 GB, free: 7.113 MB / 0.5919 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.579e-06/0.563, allocations: 4 kB / 0.8292 GB, free: 7.109 MB / 0.5919 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.22e-07/0.563, allocations: 0 / 0.8292 GB, free: 7.109 MB / 0.5919 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001811/0.5632, allocations: 128.9 kB / 0.8293 GB, free: 6.965 MB / 0.5919 GB Notification: Performance of postOpt removeConstants (simulation): time 6.236e-05/0.5633, allocations: 89.14 kB / 0.8294 GB, free: 6.859 MB / 0.5919 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.387e-05/0.5633, allocations: 8 kB / 0.8294 GB, free: 6.852 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.881e-05/0.5634, allocations: 0.9375 kB / 0.8294 GB, free: 6.852 MB / 0.5919 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.993e-05/0.5634, allocations: 11.98 kB / 0.8294 GB, free: 6.84 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.975e-06/0.5634, allocations: 4 kB / 0.8294 GB, free: 6.836 MB / 0.5919 GB Notification: Performance of sorting global known variables: time 2.546e-05/0.5634, allocations: 75.28 kB / 0.8295 GB, free: 6.762 MB / 0.5919 GB Notification: Performance of sort global known variables: time 1.4e-07/0.5634, allocations: 0 / 0.8295 GB, free: 6.762 MB / 0.5919 GB Notification: Performance of remove unused functions: time 0.0001919/0.5636, allocations: 16 kB / 0.8295 GB, free: 6.746 MB / 0.5919 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 3 (hLiqSym,hSteSym,hAirSym) * 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 (11): * Single equations (assignments): 11 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 8.914e-05/0.5637, allocations: 111.2 kB / 0.8296 GB, free: 6.625 MB / 0.5919 GB Notification: Performance of simCode: created initialization part: time 0.0001123/0.5638, allocations: 56.61 kB / 0.8297 GB, free: 6.57 MB / 0.5919 GB Notification: Performance of simCode: created event and clocks part: time 4.208e-06/0.5639, allocations: 4 kB / 0.8297 GB, free: 6.566 MB / 0.5919 GB Notification: Performance of simCode: created simulation system equations: time 3.372e-05/0.5639, allocations: 23.94 kB / 0.8297 GB, free: 6.543 MB / 0.5919 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002012/0.5641, allocations: 11.98 kB / 0.8297 GB, free: 6.531 MB / 0.5919 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004673/0.5646, allocations: 327.9 kB / 0.83 GB, free: 6.191 MB / 0.5919 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001966/0.5648, allocations: 0.6846 MB / 0.8307 GB, free: 5.48 MB / 0.5919 GB Notification: Performance of simCode: alias equations: time 4.935e-05/0.5648, allocations: 16.64 kB / 0.8307 GB, free: 5.465 MB / 0.5919 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.277e-05/0.5649, allocations: 11.44 kB / 0.8307 GB, free: 5.453 MB / 0.5919 GB Notification: Performance of SimCode: time 2.21e-07/0.5649, allocations: 0 / 0.8307 GB, free: 5.453 MB / 0.5919 GB Notification: Performance of Templates: time 0.002419/0.5673, allocations: 0.6441 MB / 0.8313 GB, free: 4.824 MB / 0.5919 GB make -j1 -f BuildingSystems_BuildingSystems.Media.Specialized.Air.Examples.PerfectGasDerivativeCheck.makefile (rm -f BuildingSystems_BuildingSystems.Media.Specialized.Air.Examples.PerfectGasDerivativeCheck.pipe ; mkfifo BuildingSystems_BuildingSystems.Media.Specialized.Air.Examples.PerfectGasDerivativeCheck.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Media.Specialized.Air.Examples.PerfectGasDerivativeCheck.pipe >> ../files/BuildingSystems_BuildingSystems.Media.Specialized.Air.Examples.PerfectGasDerivativeCheck.sim & ./BuildingSystems_BuildingSystems.Media.Specialized.Air.Examples.PerfectGasDerivativeCheck -abortSlowSimulation -alarm=480 -s gbode -lv LOG_STATS > BuildingSystems_BuildingSystems.Media.Specialized.Air.Examples.PerfectGasDerivativeCheck.pipe 2>&1)