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.001973/0.001973, allocations: 115.3 kB / 15.34 MB, free: 0.5156 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.002239/0.00224, allocations: 190.3 kB / 16.25 MB, free: 6.598 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.527/1.527, allocations: 222.9 MB / 239.9 MB, free: 4.52 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002579/0.002579, allocations: 282.9 kB / 290.4 MB, free: 2.129 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 1.077/1.077, allocations: 178.6 MB / 0.507 GB, free: 4.746 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00279/0.00279, allocations: 95.48 kB / 0.6059 GB, free: 25.18 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1534/0.1562, allocations: 89.16 MB / 0.693 GB, free: 4.691 MB / 494.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Media.Specialized.Air.Examples.PerfectGasDerivativeCheck): time 0.002506/0.1587, allocations: 1.333 MB / 0.6943 GB, free: 3.355 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.4803/0.639, allocations: 144.8 MB / 0.8357 GB, free: 15.57 MB / 0.5762 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.967e-05/0.6391, allocations: 1.281 kB / 0.8357 GB, free: 15.57 MB / 0.5762 GB Notification: Performance of NFTyping.typeComponents: time 2.309e-05/0.6392, allocations: 0 / 0.8357 GB, free: 15.57 MB / 0.5762 GB Notification: Performance of NFTyping.typeBindings: time 5.355e-05/0.6392, allocations: 12.98 kB / 0.8357 GB, free: 15.56 MB / 0.5762 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003961/0.6396, allocations: 81.41 kB / 0.8358 GB, free: 15.5 MB / 0.5762 GB Notification: Performance of NFFlatten.flatten: time 6.823e-05/0.6397, allocations: 36.23 kB / 0.8359 GB, free: 15.48 MB / 0.5762 GB Notification: Performance of NFFlatten.resolveConnections: time 4.061e-05/0.6397, allocations: 2.219 kB / 0.8359 GB, free: 15.48 MB / 0.5762 GB Notification: Performance of NFEvalConstants.evaluate: time 4.193e-05/0.6398, allocations: 16.2 kB / 0.8359 GB, free: 15.48 MB / 0.5762 GB Notification: Performance of NFSimplifyModel.simplify: time 5.249e-05/0.6399, allocations: 13.61 kB / 0.8359 GB, free: 15.47 MB / 0.5762 GB Notification: Performance of NFPackage.collectConstants: time 1.256e-05/0.6399, allocations: 0.8125 kB / 0.8359 GB, free: 15.47 MB / 0.5762 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002424/0.6401, allocations: 78.92 kB / 0.836 GB, free: 15.43 MB / 0.5762 GB Notification: Performance of NFScalarize.scalarize: time 1.612e-05/0.6401, allocations: 9.078 kB / 0.836 GB, free: 15.42 MB / 0.5762 GB Notification: Performance of NFVerifyModel.verify: time 3.647e-05/0.6402, allocations: 14.52 kB / 0.836 GB, free: 15.41 MB / 0.5762 GB Notification: Performance of NFConvertDAE.convert: time 0.000142/0.6403, allocations: 63.44 kB / 0.836 GB, free: 15.38 MB / 0.5762 GB Notification: Performance of FrontEnd - DAE generated: time 3.727e-06/0.6403, allocations: 0 / 0.836 GB, free: 15.38 MB / 0.5762 GB Notification: Performance of FrontEnd: time 1.332e-06/0.6404, allocations: 4 kB / 0.836 GB, free: 15.38 MB / 0.5762 GB Notification: Performance of Transformations before backend: time 8.897e-06/0.6404, allocations: 1.438 kB / 0.8361 GB, free: 15.38 MB / 0.5762 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.0004242/0.6408, allocations: 356.6 kB / 0.8364 GB, free: 15 MB / 0.5762 GB Notification: Performance of prepare preOptimizeDAE: time 3.346e-05/0.6408, allocations: 10.72 kB / 0.8364 GB, free: 15 MB / 0.5762 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001857/0.641, allocations: 16.86 kB / 0.8364 GB, free: 14.99 MB / 0.5762 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001336/0.6412, allocations: 167 kB / 0.8366 GB, free: 14.79 MB / 0.5762 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.892e-05/0.6412, allocations: 17 kB / 0.8366 GB, free: 14.78 MB / 0.5762 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.308e-05/0.6412, allocations: 7.812 kB / 0.8366 GB, free: 14.77 MB / 0.5762 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001247/0.6414, allocations: 52.61 kB / 0.8366 GB, free: 14.73 MB / 0.5762 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.524e-06/0.6414, allocations: 0 / 0.8366 GB, free: 14.73 MB / 0.5762 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.078e-05/0.6414, allocations: 1.156 kB / 0.8367 GB, free: 14.73 MB / 0.5762 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.529e-06/0.6414, allocations: 1.188 kB / 0.8367 GB, free: 14.73 MB / 0.5762 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.441e-05/0.6414, allocations: 13.05 kB / 0.8367 GB, free: 14.72 MB / 0.5762 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001932/0.6416, allocations: 164.9 kB / 0.8368 GB, free: 14.52 MB / 0.5762 GB Notification: Performance of preOpt comSubExp (simulation): time 9.441e-05/0.6417, allocations: 59.98 kB / 0.8369 GB, free: 14.47 MB / 0.5762 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.257e-05/0.6418, allocations: 25.2 kB / 0.8369 GB, free: 14.45 MB / 0.5762 GB Notification: Performance of preOpt evalFunc (simulation): time 8.636e-06/0.6418, allocations: 1.125 kB / 0.8369 GB, free: 14.45 MB / 0.5762 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.7e-05/0.6418, allocations: 31.56 kB / 0.8369 GB, free: 14.41 MB / 0.5762 GB Notification: Performance of pre-optimization done (n=7): time 1.152e-06/0.6419, allocations: 0 / 0.8369 GB, free: 14.41 MB / 0.5762 GB Notification: Performance of matching and sorting (n=11): time 0.0007393/0.6426, allocations: 363.4 kB / 0.8373 GB, free: 14.1 MB / 0.5762 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.204e-05/0.6427, allocations: 56.5 kB / 0.8373 GB, free: 14.03 MB / 0.5762 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.334e-05/0.6427, allocations: 99.16 kB / 0.8374 GB, free: 13.93 MB / 0.5762 GB Notification: Performance of collectPreVariables (initialization): time 1.916e-05/0.6428, allocations: 27.05 kB / 0.8375 GB, free: 13.89 MB / 0.5762 GB Notification: Performance of collectInitialEqns (initialization): time 3.697e-05/0.6428, allocations: 81.39 kB / 0.8375 GB, free: 13.81 MB / 0.5762 GB Notification: Performance of collectInitialBindings (initialization): time 4.88e-05/0.6429, allocations: 43.39 kB / 0.8376 GB, free: 13.77 MB / 0.5762 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.235e-05/0.6429, allocations: 30.81 kB / 0.8376 GB, free: 13.75 MB / 0.5762 GB Notification: Performance of setup shared object (initialization): time 0.0001484/0.6431, allocations: 319.8 kB / 0.8379 GB, free: 13.43 MB / 0.5762 GB Notification: Performance of preBalanceInitialSystem (initialization): time 3.942e-05/0.6431, allocations: 27.36 kB / 0.8379 GB, free: 13.41 MB / 0.5762 GB Notification: Performance of partitionIndependentBlocks (initialization): time 5.368e-05/0.6432, allocations: 36.95 kB / 0.838 GB, free: 13.38 MB / 0.5762 GB Notification: Performance of analyzeInitialSystem (initialization): time 9.202e-05/0.6433, allocations: 65.56 kB / 0.838 GB, free: 13.34 MB / 0.5762 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.02e-07/0.6433, allocations: 0 / 0.838 GB, free: 13.34 MB / 0.5762 GB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0001449/0.6434, allocations: 94.22 kB / 0.8381 GB, free: 13.28 MB / 0.5762 GB Notification: Performance of prepare postOptimizeDAE: time 1.244e-05/0.6435, allocations: 5 kB / 0.8381 GB, free: 13.28 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.459e-06/0.6435, allocations: 1.188 kB / 0.8381 GB, free: 13.28 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.358e-05/0.6435, allocations: 1.188 kB / 0.8381 GB, free: 13.28 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001212/0.6436, allocations: 23.89 kB / 0.8382 GB, free: 13.28 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.352e-06/0.6436, allocations: 1.094 kB / 0.8382 GB, free: 13.28 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.621e-05/0.6437, allocations: 9 kB / 0.8382 GB, free: 13.27 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.323e-06/0.6437, allocations: 3.375 kB / 0.8382 GB, free: 13.27 MB / 0.5762 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 9.006e-05/0.6438, allocations: 119.9 kB / 0.8383 GB, free: 13.14 MB / 0.5762 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.439e-05/0.6438, allocations: 3.406 kB / 0.8383 GB, free: 13.14 MB / 0.5762 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.608e-05/0.6438, allocations: 13.03 kB / 0.8383 GB, free: 13.14 MB / 0.5762 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.234e-06/0.6438, allocations: 1.125 kB / 0.8383 GB, free: 13.14 MB / 0.5762 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.687e-06/0.6439, allocations: 0 / 0.8383 GB, free: 13.14 MB / 0.5762 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.859e-06/0.6439, allocations: 5.141 kB / 0.8383 GB, free: 13.13 MB / 0.5762 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001537/0.644, allocations: 175.2 kB / 0.8385 GB, free: 12.92 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.143e-06/0.644, allocations: 0 / 0.8385 GB, free: 12.92 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001205/0.6442, allocations: 22.61 kB / 0.8385 GB, free: 12.92 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.635e-06/0.6442, allocations: 1.125 kB / 0.8385 GB, free: 12.92 MB / 0.5762 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.448e-06/0.6442, allocations: 3.312 kB / 0.8385 GB, free: 12.92 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.322e-06/0.6442, allocations: 0 / 0.8385 GB, free: 12.92 MB / 0.5762 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.498e-06/0.6442, allocations: 1.156 kB / 0.8385 GB, free: 12.92 MB / 0.5762 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002194/0.6444, allocations: 143.4 kB / 0.8386 GB, free: 12.8 MB / 0.5762 GB Notification: Performance of postOpt removeConstants (simulation): time 7.511e-05/0.6445, allocations: 84.23 kB / 0.8387 GB, free: 12.71 MB / 0.5762 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.656e-05/0.6445, allocations: 9.094 kB / 0.8387 GB, free: 12.7 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.989e-05/0.6446, allocations: 6.141 kB / 0.8387 GB, free: 12.7 MB / 0.5762 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.682e-05/0.6446, allocations: 3.531 kB / 0.8387 GB, free: 12.7 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.094e-05/0.6447, allocations: 7.031 kB / 0.8387 GB, free: 12.69 MB / 0.5762 GB Notification: Performance of sorting global known variables: time 3.666e-05/0.6447, allocations: 76.41 kB / 0.8388 GB, free: 12.62 MB / 0.5762 GB Notification: Performance of sort global known variables: time 1.2e-07/0.6447, allocations: 0 / 0.8388 GB, free: 12.62 MB / 0.5762 GB Notification: Performance of remove unused functions: time 0.0001941/0.6449, allocations: 11.78 kB / 0.8388 GB, free: 12.62 MB / 0.5762 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 0.0001264/0.645, allocations: 117.8 kB / 0.8389 GB, free: 12.51 MB / 0.5762 GB Notification: Performance of simCode: created initialization part: time 0.0001414/0.6452, allocations: 60.67 kB / 0.839 GB, free: 12.48 MB / 0.5762 GB Notification: Performance of simCode: created event and clocks part: time 1.944e-06/0.6452, allocations: 3.938 kB / 0.839 GB, free: 12.48 MB / 0.5762 GB Notification: Performance of simCode: created simulation system equations: time 3.714e-05/0.6452, allocations: 29.25 kB / 0.839 GB, free: 12.47 MB / 0.5762 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000227/0.6455, allocations: 9.125 kB / 0.839 GB, free: 12.47 MB / 0.5762 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005903/0.6461, allocations: 348.6 kB / 0.8394 GB, free: 12.17 MB / 0.5762 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003174/0.6464, allocations: 0.6895 MB / 0.84 GB, free: 11.47 MB / 0.5762 GB Notification: Performance of simCode: alias equations: time 6.279e-05/0.6465, allocations: 6.547 kB / 0.84 GB, free: 11.46 MB / 0.5762 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.665e-05/0.6465, allocations: 16.75 kB / 0.8401 GB, free: 11.45 MB / 0.5762 GB Notification: Performance of SimCode: time 2.5e-07/0.6465, allocations: 0 / 0.8401 GB, free: 11.45 MB / 0.5762 GB Notification: Performance of Templates: time 0.002872/0.6494, allocations: 0.6326 MB / 0.8407 GB, free: 11.14 MB / 0.5762 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 -lv LOG_STATS > BuildingSystems_BuildingSystems.Media.Specialized.Air.Examples.PerfectGasDerivativeCheck.pipe 2>&1)