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.001028/0.001027, allocations: 99.7 kB / 16.35 MB, free: 5.828 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.001074/0.001074, allocations: 197.2 kB / 17.3 MB, free: 5.484 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.25/1.25, allocations: 222.9 MB / 241 MB, free: 15.14 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.00213/0.00213, allocations: 296.9 kB / 291.4 MB, free: 14.47 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9045/0.9045, allocations: 169.3 MB / 0.4989 GB, free: 4.445 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001784/0.001784, allocations: 94.28 kB / 0.5967 GB, free: 14.45 MB / 414.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1597/0.1615, allocations: 86.97 MB / 0.6816 GB, free: 7.465 MB / 494.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Media.Specialized.Air.Examples.PerfectGasDerivativeCheck): time 0.002237/0.1638, allocations: 1.273 MB / 0.6828 GB, free: 6.184 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.4088/0.5727, allocations: 147 MB / 0.8264 GB, free: 10.29 MB / 0.5919 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.181e-05/0.5727, allocations: 0 / 0.8264 GB, free: 10.29 MB / 0.5919 GB Notification: Performance of NFTyping.typeComponents: time 2.321e-05/0.5728, allocations: 3.938 kB / 0.8264 GB, free: 10.29 MB / 0.5919 GB Notification: Performance of NFTyping.typeBindings: time 4.631e-05/0.5729, allocations: 3.938 kB / 0.8264 GB, free: 10.28 MB / 0.5919 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004056/0.5733, allocations: 110.8 kB / 0.8265 GB, free: 10.18 MB / 0.5919 GB Notification: Performance of NFFlatten.flatten: time 6.829e-05/0.5734, allocations: 27.92 kB / 0.8265 GB, free: 10.15 MB / 0.5919 GB Notification: Performance of NFFlatten.resolveConnections: time 3.551e-05/0.5734, allocations: 3.938 kB / 0.8265 GB, free: 10.15 MB / 0.5919 GB Notification: Performance of NFEvalConstants.evaluate: time 4.126e-05/0.5734, allocations: 15.98 kB / 0.8265 GB, free: 10.13 MB / 0.5919 GB Notification: Performance of NFSimplifyModel.simplify: time 5.577e-05/0.5735, allocations: 19.92 kB / 0.8266 GB, free: 10.11 MB / 0.5919 GB Notification: Performance of NFPackage.collectConstants: time 1.018e-05/0.5735, allocations: 0 / 0.8266 GB, free: 10.11 MB / 0.5919 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002444/0.5738, allocations: 79.81 kB / 0.8266 GB, free: 10.04 MB / 0.5919 GB Notification: Performance of NFScalarize.scalarize: time 1.551e-05/0.5738, allocations: 4 kB / 0.8266 GB, free: 10.03 MB / 0.5919 GB Notification: Performance of NFVerifyModel.verify: time 2.927e-05/0.5738, allocations: 24.47 kB / 0.8267 GB, free: 10.01 MB / 0.5919 GB Notification: Performance of NFConvertDAE.convert: time 0.0001485/0.574, allocations: 63.69 kB / 0.8267 GB, free: 9.949 MB / 0.5919 GB Notification: Performance of FrontEnd - DAE generated: time 4.097e-06/0.574, allocations: 3.938 kB / 0.8267 GB, free: 9.945 MB / 0.5919 GB Notification: Performance of FrontEnd: time 1.623e-06/0.574, allocations: 4 kB / 0.8267 GB, free: 9.941 MB / 0.5919 GB Notification: Performance of Transformations before backend: time 4.758e-06/0.574, allocations: 0 / 0.8267 GB, free: 9.941 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.000361/0.5744, allocations: 347.5 kB / 0.8271 GB, free: 9.559 MB / 0.5919 GB Notification: Performance of prepare preOptimizeDAE: time 3.276e-05/0.5744, allocations: 8.031 kB / 0.8271 GB, free: 9.551 MB / 0.5919 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001866/0.5746, allocations: 16.92 kB / 0.8271 GB, free: 9.535 MB / 0.5919 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001042/0.5747, allocations: 165.1 kB / 0.8272 GB, free: 9.336 MB / 0.5919 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.14e-05/0.5747, allocations: 7.938 kB / 0.8273 GB, free: 9.328 MB / 0.5919 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.738e-05/0.5748, allocations: 11.91 kB / 0.8273 GB, free: 9.316 MB / 0.5919 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001142/0.5749, allocations: 49.67 kB / 0.8273 GB, free: 9.262 MB / 0.5919 GB Notification: Performance of preOpt findStateOrder (simulation): time 5.961e-06/0.5749, allocations: 4 kB / 0.8273 GB, free: 9.258 MB / 0.5919 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.105e-05/0.5749, allocations: 0 / 0.8273 GB, free: 9.258 MB / 0.5919 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.499e-06/0.5749, allocations: 0 / 0.8273 GB, free: 9.258 MB / 0.5919 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.834e-05/0.575, allocations: 19.92 kB / 0.8273 GB, free: 9.238 MB / 0.5919 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001607/0.5752, allocations: 161.7 kB / 0.8275 GB, free: 9.031 MB / 0.5919 GB Notification: Performance of preOpt comSubExp (simulation): time 8.111e-05/0.5752, allocations: 51.19 kB / 0.8275 GB, free: 8.973 MB / 0.5919 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.971e-05/0.5753, allocations: 21.94 kB / 0.8276 GB, free: 8.949 MB / 0.5919 GB Notification: Performance of preOpt evalFunc (simulation): time 1.367e-05/0.5753, allocations: 0 / 0.8276 GB, free: 8.949 MB / 0.5919 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.275e-05/0.5753, allocations: 46.67 kB / 0.8276 GB, free: 8.895 MB / 0.5919 GB Notification: Performance of pre-optimization done (n=7): time 9.42e-07/0.5753, allocations: 0 / 0.8276 GB, free: 8.895 MB / 0.5919 GB Notification: Performance of matching and sorting (n=11): time 0.0006886/0.576, allocations: 373 kB / 0.828 GB, free: 8.48 MB / 0.5919 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.868e-05/0.5761, allocations: 51.41 kB / 0.828 GB, free: 8.418 MB / 0.5919 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.371e-05/0.5761, allocations: 97.84 kB / 0.8281 GB, free: 8.312 MB / 0.5919 GB Notification: Performance of collectPreVariables (initialization): time 1.751e-05/0.5762, allocations: 33.7 kB / 0.8281 GB, free: 8.273 MB / 0.5919 GB Notification: Performance of collectInitialEqns (initialization): time 2.499e-05/0.5762, allocations: 80.14 kB / 0.8282 GB, free: 8.191 MB / 0.5919 GB Notification: Performance of collectInitialBindings (initialization): time 3.606e-05/0.5762, allocations: 31.47 kB / 0.8282 GB, free: 8.16 MB / 0.5919 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.998e-05/0.5763, allocations: 29.7 kB / 0.8283 GB, free: 8.125 MB / 0.5919 GB Notification: Performance of setup shared object (initialization): time 0.0001196/0.5764, allocations: 322.8 kB / 0.8286 GB, free: 7.801 MB / 0.5919 GB Notification: Performance of preBalanceInitialSystem (initialization): time 3.575e-05/0.5765, allocations: 15.98 kB / 0.8286 GB, free: 7.785 MB / 0.5919 GB Notification: Performance of partitionIndependentBlocks (initialization): time 4.586e-05/0.5765, allocations: 45.81 kB / 0.8286 GB, free: 7.734 MB / 0.5919 GB Notification: Performance of analyzeInitialSystem (initialization): time 8.28e-05/0.5766, allocations: 60 kB / 0.8287 GB, free: 7.672 MB / 0.5919 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.11e-07/0.5766, allocations: 4 kB / 0.8287 GB, free: 7.668 MB / 0.5919 GB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0001272/0.5767, allocations: 89.66 kB / 0.8288 GB, free: 7.574 MB / 0.5919 GB Notification: Performance of prepare postOptimizeDAE: time 1.473e-05/0.5768, allocations: 8 kB / 0.8288 GB, free: 7.566 MB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.17e-06/0.5768, allocations: 0 / 0.8288 GB, free: 7.566 MB / 0.5919 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.307e-05/0.5768, allocations: 0 / 0.8288 GB, free: 7.566 MB / 0.5919 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001133/0.5769, allocations: 35.91 kB / 0.8288 GB, free: 7.531 MB / 0.5919 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.62e-06/0.5769, allocations: 3.938 kB / 0.8288 GB, free: 7.527 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.946e-05/0.577, allocations: 4 kB / 0.8288 GB, free: 7.523 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.783e-06/0.577, 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 7.22e-05/0.577, allocations: 117.8 kB / 0.8289 GB, free: 7.395 MB / 0.5919 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.023e-05/0.5771, allocations: 7.906 kB / 0.829 GB, free: 7.387 MB / 0.5919 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.455e-05/0.5771, allocations: 11.97 kB / 0.829 GB, free: 7.375 MB / 0.5919 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.734e-06/0.5771, allocations: 0 / 0.829 GB, free: 7.375 MB / 0.5919 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.368e-06/0.5771, allocations: 0 / 0.829 GB, free: 7.375 MB / 0.5919 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.865e-06/0.5771, allocations: 0 / 0.829 GB, free: 7.375 MB / 0.5919 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001135/0.5772, allocations: 173.6 kB / 0.8291 GB, free: 7.156 MB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.266e-06/0.5773, allocations: 7.188 kB / 0.8291 GB, free: 7.152 MB / 0.5919 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001123/0.5774, allocations: 27.92 kB / 0.8292 GB, free: 7.125 MB / 0.5919 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.164e-06/0.5774, allocations: 0 / 0.8292 GB, free: 7.125 MB / 0.5919 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.999e-06/0.5774, allocations: 4 kB / 0.8292 GB, free: 7.121 MB / 0.5919 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.443e-06/0.5774, allocations: 0 / 0.8292 GB, free: 7.121 MB / 0.5919 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.61e-07/0.5774, allocations: 0 / 0.8292 GB, free: 7.121 MB / 0.5919 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001785/0.5776, allocations: 132.9 kB / 0.8293 GB, free: 6.973 MB / 0.5919 GB Notification: Performance of postOpt removeConstants (simulation): time 6.695e-05/0.5777, allocations: 89.14 kB / 0.8294 GB, free: 6.867 MB / 0.5919 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.413e-05/0.5777, allocations: 4 kB / 0.8294 GB, free: 6.863 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.644e-05/0.5778, allocations: 7.984 kB / 0.8294 GB, free: 6.855 MB / 0.5919 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.003e-05/0.5778, allocations: 7.938 kB / 0.8294 GB, free: 6.848 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.653e-06/0.5778, allocations: 4 kB / 0.8294 GB, free: 6.844 MB / 0.5919 GB Notification: Performance of sorting global known variables: time 2.793e-05/0.5779, allocations: 75.28 kB / 0.8295 GB, free: 6.77 MB / 0.5919 GB Notification: Performance of sort global known variables: time 1.5e-07/0.5779, allocations: 7.938 kB / 0.8295 GB, free: 6.762 MB / 0.5919 GB Notification: Performance of remove unused functions: time 0.0001907/0.5781, 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 0.0001091/0.5782, allocations: 107.3 kB / 0.8296 GB, free: 6.629 MB / 0.5919 GB Notification: Performance of simCode: created initialization part: time 0.0001243/0.5783, allocations: 55.92 kB / 0.8297 GB, free: 6.574 MB / 0.5919 GB Notification: Performance of simCode: created event and clocks part: time 2.184e-06/0.5783, allocations: 0 / 0.8297 GB, free: 6.574 MB / 0.5919 GB Notification: Performance of simCode: created simulation system equations: time 3.764e-05/0.5784, allocations: 27.98 kB / 0.8297 GB, free: 6.547 MB / 0.5919 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001811/0.5785, allocations: 8 kB / 0.8297 GB, free: 6.539 MB / 0.5919 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005053/0.5791, allocations: 332.7 kB / 0.83 GB, free: 6.191 MB / 0.5919 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002036/0.5793, allocations: 0.6807 MB / 0.8307 GB, free: 5.484 MB / 0.5919 GB Notification: Performance of simCode: alias equations: time 5.187e-05/0.5793, allocations: 16.64 kB / 0.8307 GB, free: 5.469 MB / 0.5919 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.839e-05/0.5794, allocations: 15.44 kB / 0.8307 GB, free: 5.453 MB / 0.5919 GB Notification: Performance of SimCode: time 2.21e-07/0.5794, allocations: 0 / 0.8307 GB, free: 5.453 MB / 0.5919 GB Notification: Performance of Templates: time 0.002624/0.582, allocations: 0.6405 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 cvode -lv LOG_STATS > BuildingSystems_BuildingSystems.Media.Specialized.Air.Examples.PerfectGasDerivativeCheck.pipe 2>&1)