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.00094/0.00094, allocations: 86.8 kB / 15.06 MB, free: 1.09 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.000849/0.0008491, allocations: 168.7 kB / 15.95 MB, free: 204 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.328/1.328, allocations: 223.3 MB / 240 MB, free: 5.418 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.001737/0.001737, allocations: 271.1 kB / 291.3 MB, free: 1.973 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9516/0.9516, allocations: 169.5 MB / 0.5 GB, free: 14.2 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0004134/0.0004135, allocations: 18.83 kB / 0.598 GB, free: 28.36 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.132/0.1324, allocations: 88.54 MB / 0.6845 GB, free: 15.44 MB / 494.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Media.Specialized.Air.Examples.PerfectGasDerivativeCheck): time 0.001143/0.1336, allocations: 0.9864 MB / 0.6854 GB, free: 14.45 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.3972/0.5308, allocations: 133.5 MB / 0.8158 GB, free: 1.277 MB / 0.545 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.566e-05/0.5308, allocations: 0 / 0.8158 GB, free: 1.277 MB / 0.545 GB Notification: Performance of NFTyping.typeComponents: time 1.44e-05/0.5308, allocations: 3.625 kB / 0.8158 GB, free: 1.277 MB / 0.545 GB Notification: Performance of NFTyping.typeBindings: time 4.75e-05/0.5309, allocations: 0 / 0.8158 GB, free: 1.277 MB / 0.545 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002878/0.5312, allocations: 86.08 kB / 0.8159 GB, free: 1.254 MB / 0.545 GB Notification: Performance of NFFlatten.flatten: time 5.67e-05/0.5312, allocations: 27.47 kB / 0.8159 GB, free: 1.25 MB / 0.545 GB Notification: Performance of NFFlatten.resolveConnections: time 4.121e-05/0.5313, allocations: 6.953 kB / 0.8159 GB, free: 1.246 MB / 0.545 GB Notification: Performance of NFEvalConstants.evaluate: time 3.536e-05/0.5313, allocations: 11.66 kB / 0.8159 GB, free: 1.246 MB / 0.545 GB Notification: Performance of NFSimplifyModel.simplify: time 5.61e-05/0.5314, allocations: 19.97 kB / 0.8159 GB, free: 1.242 MB / 0.545 GB Notification: Performance of NFPackage.collectConstants: time 1.169e-05/0.5314, allocations: 2.219 kB / 0.8159 GB, free: 1.242 MB / 0.545 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002239/0.5316, allocations: 70.47 kB / 0.816 GB, free: 1.23 MB / 0.545 GB Notification: Performance of NFScalarize.scalarize: time 1.304e-05/0.5317, allocations: 5.375 kB / 0.816 GB, free: 1.23 MB / 0.545 GB Notification: Performance of NFVerifyModel.verify: time 7.71e-05/0.5318, allocations: 33.86 kB / 0.816 GB, free: 17.2 MB / 0.5606 GB Notification: Performance of NFConvertDAE.convert: time 0.0001011/0.5319, allocations: 50.3 kB / 0.8161 GB, free: 17.19 MB / 0.5606 GB Notification: Performance of FrontEnd - DAE generated: time 3.787e-06/0.5319, allocations: 0 / 0.8161 GB, free: 17.19 MB / 0.5606 GB Notification: Performance of FrontEnd: time 1.302e-06/0.5319, allocations: 0.75 kB / 0.8161 GB, free: 17.19 MB / 0.5606 GB Notification: Performance of Transformations before backend: time 3.216e-06/0.5319, allocations: 0.9688 kB / 0.8161 GB, free: 17.19 MB / 0.5606 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.0003217/0.5322, allocations: 335.8 kB / 0.8164 GB, free: 16.84 MB / 0.5606 GB Notification: Performance of prepare preOptimizeDAE: time 3.375e-05/0.5323, allocations: 13.22 kB / 0.8164 GB, free: 16.83 MB / 0.5606 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001771/0.5324, allocations: 14.83 kB / 0.8164 GB, free: 16.83 MB / 0.5606 GB Notification: Performance of preOpt evaluateParameters (simulation): time 8.814e-05/0.5325, allocations: 172.5 kB / 0.8166 GB, free: 16.62 MB / 0.5606 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.198e-05/0.5326, allocations: 4.781 kB / 0.8166 GB, free: 16.62 MB / 0.5606 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.156e-05/0.5326, allocations: 10.95 kB / 0.8166 GB, free: 16.62 MB / 0.5606 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001098/0.5327, allocations: 50.11 kB / 0.8167 GB, free: 16.58 MB / 0.5606 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.041e-06/0.5327, allocations: 1.156 kB / 0.8167 GB, free: 16.58 MB / 0.5606 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.114e-05/0.5327, allocations: 2.125 kB / 0.8167 GB, free: 16.58 MB / 0.5606 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.02e-06/0.5327, allocations: 4.984 kB / 0.8167 GB, free: 16.58 MB / 0.5606 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.412e-05/0.5328, allocations: 17.92 kB / 0.8167 GB, free: 16.58 MB / 0.5606 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001393/0.5329, allocations: 163.1 kB / 0.8168 GB, free: 16.39 MB / 0.5606 GB Notification: Performance of preOpt comSubExp (simulation): time 7.654e-05/0.533, allocations: 54.8 kB / 0.8169 GB, free: 16.36 MB / 0.5606 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.489e-05/0.533, allocations: 17.45 kB / 0.8169 GB, free: 16.35 MB / 0.5606 GB Notification: Performance of preOpt evalFunc (simulation): time 1.084e-05/0.5331, allocations: 0.9688 kB / 0.8169 GB, free: 16.35 MB / 0.5606 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.158e-05/0.5331, allocations: 34.56 kB / 0.8169 GB, free: 16.31 MB / 0.5606 GB Notification: Performance of pre-optimization done (n=7): time 1.022e-06/0.5331, allocations: 0 / 0.8169 GB, free: 16.31 MB / 0.5606 GB Notification: Performance of matching and sorting (n=11): time 0.0006342/0.5337, allocations: 375 kB / 0.8173 GB, free: 16.05 MB / 0.5606 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.281e-05/0.5338, allocations: 53.25 kB / 0.8173 GB, free: 15.98 MB / 0.5606 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.269e-05/0.5338, allocations: 95.83 kB / 0.8174 GB, free: 15.88 MB / 0.5606 GB Notification: Performance of collectPreVariables (initialization): time 1.601e-05/0.5339, allocations: 33.61 kB / 0.8175 GB, free: 15.85 MB / 0.5606 GB Notification: Performance of collectInitialEqns (initialization): time 2.364e-05/0.5339, allocations: 80.14 kB / 0.8175 GB, free: 15.77 MB / 0.5606 GB Notification: Performance of collectInitialBindings (initialization): time 3.063e-05/0.5339, allocations: 39.58 kB / 0.8176 GB, free: 15.74 MB / 0.5606 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.829e-06/0.5339, allocations: 3.188 kB / 0.8176 GB, free: 15.74 MB / 0.5606 GB Notification: Performance of setup shared object (initialization): time 9.474e-05/0.534, allocations: 318.2 kB / 0.8179 GB, free: 15.43 MB / 0.5606 GB Notification: Performance of preBalanceInitialSystem (initialization): time 3.391e-05/0.5341, allocations: 18 kB / 0.8179 GB, free: 15.43 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization): time 4.006e-05/0.5341, allocations: 36.19 kB / 0.8179 GB, free: 15.41 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization): time 4.214e-05/0.5342, allocations: 23.48 kB / 0.818 GB, free: 15.41 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.31e-07/0.5342, allocations: 0 / 0.818 GB, free: 15.41 MB / 0.5606 GB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0001282/0.5343, allocations: 95.58 kB / 0.8181 GB, free: 15.38 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 1.414e-05/0.5343, allocations: 7.094 kB / 0.8181 GB, free: 15.38 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.067e-06/0.5343, allocations: 0 / 0.8181 GB, free: 15.38 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 9.248e-06/0.5343, allocations: 1.25 kB / 0.8181 GB, free: 15.38 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001093/0.5345, allocations: 32.66 kB / 0.8181 GB, free: 15.37 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.831e-06/0.5345, allocations: 1.156 kB / 0.8181 GB, free: 15.37 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.911e-05/0.5345, allocations: 1.156 kB / 0.8181 GB, free: 15.37 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.013e-06/0.5345, allocations: 3.219 kB / 0.8181 GB, free: 15.37 MB / 0.5606 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 7.68e-05/0.5346, allocations: 120.2 kB / 0.8182 GB, free: 15.25 MB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.316e-05/0.5346, allocations: 7.219 kB / 0.8182 GB, free: 15.25 MB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.398e-05/0.5347, allocations: 17.2 kB / 0.8182 GB, free: 15.24 MB / 0.5606 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.204e-06/0.5347, allocations: 1.156 kB / 0.8182 GB, free: 15.24 MB / 0.5606 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.268e-06/0.5347, allocations: 7.953 kB / 0.8182 GB, free: 15.23 MB / 0.5606 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.966e-06/0.5347, allocations: 0.9375 kB / 0.8182 GB, free: 15.23 MB / 0.5606 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001001/0.5348, allocations: 171.5 kB / 0.8184 GB, free: 15.05 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.312e-06/0.5348, allocations: 0 / 0.8184 GB, free: 15.05 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000115/0.5349, allocations: 23.8 kB / 0.8184 GB, free: 15.05 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.044e-06/0.5349, allocations: 0 / 0.8184 GB, free: 15.05 MB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.955e-06/0.5349, allocations: 1.125 kB / 0.8184 GB, free: 15.05 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.154e-06/0.535, allocations: 5 kB / 0.8184 GB, free: 15.04 MB / 0.5606 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.52e-07/0.535, allocations: 0 / 0.8184 GB, free: 15.04 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001816/0.5351, allocations: 151.4 kB / 0.8186 GB, free: 14.96 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 6.265e-05/0.5352, allocations: 82.08 kB / 0.8187 GB, free: 14.86 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.381e-05/0.5352, allocations: 3 kB / 0.8187 GB, free: 14.86 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.514e-05/0.5353, allocations: 5.016 kB / 0.8187 GB, free: 14.86 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.503e-05/0.5353, allocations: 7.297 kB / 0.8187 GB, free: 14.86 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.985e-06/0.5354, allocations: 7.562 kB / 0.8187 GB, free: 14.86 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 3.029e-05/0.5354, allocations: 75.28 kB / 0.8188 GB, free: 14.79 MB / 0.5606 GB Notification: Performance of sort global known variables: time 1.2e-07/0.5354, allocations: 0 / 0.8188 GB, free: 14.79 MB / 0.5606 GB Notification: Performance of remove unused functions: time 0.0001999/0.5356, allocations: 20.05 kB / 0.8188 GB, free: 14.79 MB / 0.5606 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001042/0.5357, allocations: 102.3 kB / 0.8189 GB, free: 14.69 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 0.0001151/0.5358, allocations: 60.48 kB / 0.8189 GB, free: 14.68 MB / 0.5606 GB Notification: Performance of simCode: created event and clocks part: time 1.904e-06/0.5358, allocations: 0 / 0.8189 GB, free: 14.68 MB / 0.5606 GB Notification: Performance of simCode: created simulation system equations: time 3.687e-05/0.5359, allocations: 31.17 kB / 0.819 GB, free: 14.68 MB / 0.5606 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001891/0.5361, allocations: 9.547 kB / 0.819 GB, free: 14.68 MB / 0.5606 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004755/0.5366, allocations: 384.9 kB / 0.8193 GB, free: 14.39 MB / 0.5606 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002302/0.5368, allocations: 0.6911 MB / 0.82 GB, free: 13.7 MB / 0.5606 GB Notification: Performance of simCode: alias equations: time 6.822e-05/0.5369, allocations: 10.84 kB / 0.82 GB, free: 13.69 MB / 0.5606 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.346e-05/0.5369, allocations: 12.19 kB / 0.82 GB, free: 13.68 MB / 0.5606 GB Notification: Performance of SimCode: time 2.41e-07/0.5369, allocations: 0 / 0.82 GB, free: 13.68 MB / 0.5606 GB Notification: Performance of Templates: time 0.002336/0.5393, allocations: 0.5868 MB / 0.8206 GB, free: 13.62 MB / 0.5606 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)