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.001335/0.001335, allocations: 108 kB / 15.6 MB, free: 132 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001384/0.001384, allocations: 194.3 kB / 16.53 MB, free: 6.391 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.279/1.279, allocations: 222.9 MB / 240.2 MB, free: 4.402 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.00215/0.00215, allocations: 286.5 kB / 290.7 MB, free: 2.004 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9129/0.9129, allocations: 169.3 MB / 0.4982 GB, free: 13.89 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001716/0.001716, allocations: 93.7 kB / 0.5952 GB, free: 28.04 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1465/0.1483, allocations: 86.98 MB / 0.6802 GB, free: 0.707 MB / 478.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Media.Specialized.Air.Examples.PerfectGasDerivativeCheck): time 0.002459/0.1508, allocations: 1.28 MB / 0.6814 GB, free: 15.43 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.4451/0.5959, allocations: 147 MB / 0.825 GB, free: 1.844 MB / 0.5606 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.587e-05/0.5959, allocations: 0.5 kB / 0.825 GB, free: 1.844 MB / 0.5606 GB Notification: Performance of NFTyping.typeComponents: time 2.239e-05/0.596, allocations: 0 / 0.825 GB, free: 1.844 MB / 0.5606 GB Notification: Performance of NFTyping.typeBindings: time 5.191e-05/0.5961, allocations: 9.75 kB / 0.825 GB, free: 1.84 MB / 0.5606 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005146/0.5966, allocations: 100.8 kB / 0.8251 GB, free: 1.812 MB / 0.5606 GB Notification: Performance of NFFlatten.flatten: time 9.329e-05/0.5967, allocations: 35.98 kB / 0.8251 GB, free: 1.801 MB / 0.5606 GB Notification: Performance of NFFlatten.resolveConnections: time 4.012e-05/0.5967, allocations: 6.594 kB / 0.8251 GB, free: 1.797 MB / 0.5606 GB Notification: Performance of NFEvalConstants.evaluate: time 4.759e-05/0.5968, allocations: 15.53 kB / 0.8251 GB, free: 1.797 MB / 0.5606 GB Notification: Performance of NFSimplifyModel.simplify: time 5.897e-05/0.5968, allocations: 18.84 kB / 0.8251 GB, free: 1.793 MB / 0.5606 GB Notification: Performance of NFPackage.collectConstants: time 1.449e-05/0.5969, allocations: 1.531 kB / 0.8251 GB, free: 1.793 MB / 0.5606 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0003029/0.5972, allocations: 74.5 kB / 0.8252 GB, free: 1.781 MB / 0.5606 GB Notification: Performance of NFScalarize.scalarize: time 1.726e-05/0.5972, allocations: 9.781 kB / 0.8252 GB, free: 1.781 MB / 0.5606 GB Notification: Performance of NFVerifyModel.verify: time 3.25e-05/0.5972, allocations: 16.41 kB / 0.8252 GB, free: 1.777 MB / 0.5606 GB Notification: Performance of NFConvertDAE.convert: time 0.0001768/0.5974, allocations: 66.39 kB / 0.8253 GB, free: 1.77 MB / 0.5606 GB Notification: Performance of FrontEnd - DAE generated: time 3.927e-06/0.5974, allocations: 4 kB / 0.8253 GB, free: 1.766 MB / 0.5606 GB Notification: Performance of FrontEnd: time 1.282e-06/0.5974, allocations: 0.5 kB / 0.8253 GB, free: 1.766 MB / 0.5606 GB Notification: Performance of Transformations before backend: time 4.929e-06/0.5975, allocations: 0.9375 kB / 0.8253 GB, free: 1.766 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.0004492/0.5979, allocations: 349.4 kB / 0.8256 GB, free: 17.41 MB / 0.5762 GB Notification: Performance of prepare preOptimizeDAE: time 4.215e-05/0.598, allocations: 9.219 kB / 0.8256 GB, free: 17.41 MB / 0.5762 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002111/0.5982, allocations: 14.16 kB / 0.8257 GB, free: 17.41 MB / 0.5762 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000101/0.5983, allocations: 172 kB / 0.8258 GB, free: 17.21 MB / 0.5762 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.35e-05/0.5983, allocations: 9.688 kB / 0.8258 GB, free: 17.2 MB / 0.5762 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.449e-05/0.5983, allocations: 11.12 kB / 0.8258 GB, free: 17.2 MB / 0.5762 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001284/0.5985, allocations: 50.67 kB / 0.8259 GB, free: 17.16 MB / 0.5762 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.304e-06/0.5985, allocations: 0.5 kB / 0.8259 GB, free: 17.16 MB / 0.5762 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.366e-05/0.5985, allocations: 1.125 kB / 0.8259 GB, free: 17.16 MB / 0.5762 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.28e-06/0.5985, allocations: 1.406 kB / 0.8259 GB, free: 17.16 MB / 0.5762 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.518e-05/0.5986, allocations: 16.59 kB / 0.8259 GB, free: 17.16 MB / 0.5762 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001599/0.5987, allocations: 164.7 kB / 0.8261 GB, free: 16.97 MB / 0.5762 GB Notification: Performance of preOpt comSubExp (simulation): time 9.185e-05/0.5988, allocations: 61.41 kB / 0.8261 GB, free: 16.94 MB / 0.5762 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.338e-05/0.5989, allocations: 17.89 kB / 0.8261 GB, free: 16.93 MB / 0.5762 GB Notification: Performance of preOpt evalFunc (simulation): time 8.396e-06/0.5989, allocations: 1.031 kB / 0.8261 GB, free: 16.93 MB / 0.5762 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.431e-05/0.5989, allocations: 39.36 kB / 0.8262 GB, free: 16.89 MB / 0.5762 GB Notification: Performance of pre-optimization done (n=7): time 1.062e-06/0.5989, allocations: 0 / 0.8262 GB, free: 16.89 MB / 0.5762 GB Notification: Performance of matching and sorting (n=11): time 0.000751/0.5997, allocations: 366.2 kB / 0.8265 GB, free: 16.63 MB / 0.5762 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.033e-05/0.5997, allocations: 60.91 kB / 0.8266 GB, free: 16.56 MB / 0.5762 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.412e-05/0.5998, allocations: 93.33 kB / 0.8267 GB, free: 16.46 MB / 0.5762 GB Notification: Performance of collectPreVariables (initialization): time 1.769e-05/0.5998, allocations: 29.7 kB / 0.8267 GB, free: 16.43 MB / 0.5762 GB Notification: Performance of collectInitialEqns (initialization): time 2.432e-05/0.5999, allocations: 80.67 kB / 0.8268 GB, free: 16.35 MB / 0.5762 GB Notification: Performance of collectInitialBindings (initialization): time 3.381e-05/0.5999, allocations: 40.36 kB / 0.8268 GB, free: 16.32 MB / 0.5762 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.469e-05/0.5999, allocations: 30.88 kB / 0.8269 GB, free: 16.3 MB / 0.5762 GB Notification: Performance of setup shared object (initialization): time 9.518e-05/0.6, allocations: 316.3 kB / 0.8272 GB, free: 15.99 MB / 0.5762 GB Notification: Performance of preBalanceInitialSystem (initialization): time 4.252e-05/0.6001, allocations: 26.08 kB / 0.8272 GB, free: 15.98 MB / 0.5762 GB Notification: Performance of partitionIndependentBlocks (initialization): time 4.655e-05/0.6001, allocations: 35.06 kB / 0.8272 GB, free: 15.97 MB / 0.5762 GB Notification: Performance of analyzeInitialSystem (initialization): time 7.608e-05/0.6002, allocations: 61.27 kB / 0.8273 GB, free: 15.95 MB / 0.5762 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.22e-07/0.6002, allocations: 0 / 0.8273 GB, free: 15.95 MB / 0.5762 GB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0001264/0.6004, allocations: 96.2 kB / 0.8274 GB, free: 15.91 MB / 0.5762 GB Notification: Performance of prepare postOptimizeDAE: time 1.468e-05/0.6004, allocations: 11.23 kB / 0.8274 GB, free: 15.91 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.948e-06/0.6004, allocations: 0 / 0.8274 GB, free: 15.91 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.161e-05/0.6004, allocations: 1.156 kB / 0.8274 GB, free: 15.91 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001094/0.6005, allocations: 20.88 kB / 0.8274 GB, free: 15.91 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.971e-06/0.6005, allocations: 5.188 kB / 0.8274 GB, free: 15.91 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.232e-05/0.6006, allocations: 8.688 kB / 0.8274 GB, free: 15.9 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.534e-06/0.6006, allocations: 5.75 kB / 0.8274 GB, free: 15.9 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 7.158e-05/0.6007, allocations: 118.6 kB / 0.8275 GB, free: 15.79 MB / 0.5762 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.544e-05/0.6007, allocations: 3.594 kB / 0.8275 GB, free: 15.79 MB / 0.5762 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.028e-05/0.6007, allocations: 10.78 kB / 0.8275 GB, free: 15.79 MB / 0.5762 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.154e-06/0.6007, allocations: 1.188 kB / 0.8275 GB, free: 15.79 MB / 0.5762 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.509e-06/0.6007, allocations: 1.125 kB / 0.8275 GB, free: 15.79 MB / 0.5762 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.687e-06/0.6008, allocations: 2.531 kB / 0.8275 GB, free: 15.79 MB / 0.5762 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001032/0.6009, allocations: 182.6 kB / 0.8277 GB, free: 15.59 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.122e-06/0.6009, allocations: 0 / 0.8277 GB, free: 15.59 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001157/0.601, allocations: 19.73 kB / 0.8277 GB, free: 15.59 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.774e-06/0.601, allocations: 1.125 kB / 0.8277 GB, free: 15.59 MB / 0.5762 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.646e-06/0.601, allocations: 1.156 kB / 0.8277 GB, free: 15.59 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.645e-06/0.601, allocations: 5.125 kB / 0.8277 GB, free: 15.59 MB / 0.5762 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.32e-07/0.601, allocations: 0 / 0.8277 GB, free: 15.59 MB / 0.5762 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001863/0.6012, allocations: 138 kB / 0.8279 GB, free: 15.51 MB / 0.5762 GB Notification: Performance of postOpt removeConstants (simulation): time 5.889e-05/0.6013, allocations: 85.94 kB / 0.828 GB, free: 15.41 MB / 0.5762 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.62e-05/0.6013, allocations: 6.438 kB / 0.828 GB, free: 15.41 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.251e-05/0.6014, allocations: 2.219 kB / 0.828 GB, free: 15.41 MB / 0.5762 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.667e-05/0.6014, allocations: 6.031 kB / 0.828 GB, free: 15.41 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.117e-06/0.6014, allocations: 8.906 kB / 0.828 GB, free: 15.41 MB / 0.5762 GB Notification: Performance of sorting global known variables: time 2.93e-05/0.6015, allocations: 78.64 kB / 0.8281 GB, free: 15.34 MB / 0.5762 GB Notification: Performance of sort global known variables: time 1.2e-07/0.6015, allocations: 0 / 0.8281 GB, free: 15.34 MB / 0.5762 GB Notification: Performance of remove unused functions: time 0.0001925/0.6017, allocations: 16.16 kB / 0.8281 GB, free: 15.34 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 8.991e-05/0.6018, allocations: 112 kB / 0.8282 GB, free: 15.24 MB / 0.5762 GB Notification: Performance of simCode: created initialization part: time 0.0001301/0.6019, allocations: 69.5 kB / 0.8282 GB, free: 15.22 MB / 0.5762 GB Notification: Performance of simCode: created event and clocks part: time 2.224e-06/0.6019, allocations: 1.25 kB / 0.8282 GB, free: 15.22 MB / 0.5762 GB Notification: Performance of simCode: created simulation system equations: time 3.563e-05/0.6019, allocations: 27.69 kB / 0.8283 GB, free: 15.22 MB / 0.5762 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002092/0.6022, allocations: 8.422 kB / 0.8283 GB, free: 15.22 MB / 0.5762 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004839/0.6027, allocations: 328.5 kB / 0.8286 GB, free: 14.97 MB / 0.5762 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002073/0.6029, allocations: 0.684 MB / 0.8293 GB, free: 14.27 MB / 0.5762 GB Notification: Performance of simCode: alias equations: time 6.199e-05/0.6029, allocations: 11.44 kB / 0.8293 GB, free: 14.27 MB / 0.5762 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.471e-05/0.603, allocations: 15.84 kB / 0.8293 GB, free: 14.26 MB / 0.5762 GB Notification: Performance of SimCode: time 4.2e-07/0.603, allocations: 0 / 0.8293 GB, free: 14.26 MB / 0.5762 GB Notification: Performance of Templates: time 0.002529/0.6055, allocations: 0.634 MB / 0.8299 GB, free: 14.2 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)