Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_1.6_Buildings.Media.PerfectGases.Examples.MoistAirDerivativeCheck.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 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 1.6.0+build.1/package.mo", uses=false) Using package Buildings with version 1.6 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 1.6.0+build.1/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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(Buildings.Media.PerfectGases.Examples.MoistAirDerivativeCheck,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_1.6_Buildings.Media.PerfectGases.Examples.MoistAirDerivativeCheck") translateModel(Buildings.Media.PerfectGases.Examples.MoistAirDerivativeCheck,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_1.6_Buildings.Media.PerfectGases.Examples.MoistAirDerivativeCheck") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00997/0.00997, allocations: 101.3 kB / 15.73 MB, free: 6.008 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.001755/0.001755, allocations: 188.3 kB / 16.67 MB, free: 5.93 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.598/1.598, allocations: 205.1 MB / 222.5 MB, free: 4.492 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 1.6.0+build.1/package.mo): time 0.5771/0.5771, allocations: 95.48 MB / 365.4 MB, free: 9.781 MB / 302.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Buildings requested package Modelica of version 3.2.1. Modelica 3.2.3 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001442/0.001442, allocations: 75.88 kB / 0.5036 GB, free: 13.64 MB / 382.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1341/0.1356, allocations: 69.08 MB / 0.5711 GB, free: 8.5 MB / 446.1 MB Notification: Performance of NFInst.instantiate(Buildings.Media.PerfectGases.Examples.MoistAirDerivativeCheck): time 0.002344/0.138, allocations: 1.257 MB / 0.5723 GB, free: 7.23 MB / 446.1 MB Notification: Performance of NFInst.instExpressions: time 0.5668/0.7048, allocations: 155 MB / 0.7236 GB, free: 2.418 MB / 0.5294 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.959e-05/0.705, allocations: 0 / 0.7236 GB, free: 2.418 MB / 0.5294 GB Notification: Performance of NFTyping.typeComponents: time 2.996e-05/0.705, allocations: 0 / 0.7236 GB, free: 2.418 MB / 0.5294 GB Notification: Performance of NFTyping.typeBindings: time 6.127e-05/0.7051, allocations: 7.922 kB / 0.7236 GB, free: 2.41 MB / 0.5294 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004497/0.7055, allocations: 93.12 kB / 0.7237 GB, free: 2.324 MB / 0.5294 GB Notification: Performance of NFFlatten.flatten: time 9.721e-05/0.7057, allocations: 31.91 kB / 0.7237 GB, free: 2.293 MB / 0.5294 GB Notification: Performance of NFFlatten.resolveConnections: time 4.756e-05/0.7057, allocations: 7.984 kB / 0.7238 GB, free: 2.285 MB / 0.5294 GB Notification: Performance of NFEvalConstants.evaluate: time 4.792e-05/0.7058, allocations: 12 kB / 0.7238 GB, free: 2.273 MB / 0.5294 GB Notification: Performance of NFSimplifyModel.simplify: time 7.088e-05/0.7058, allocations: 15.91 kB / 0.7238 GB, free: 2.258 MB / 0.5294 GB Notification: Performance of NFPackage.collectConstants: time 1.448e-05/0.7059, allocations: 4 kB / 0.7238 GB, free: 2.254 MB / 0.5294 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001943/0.7061, allocations: 63.28 kB / 0.7238 GB, free: 2.195 MB / 0.5294 GB Notification: Performance of NFScalarize.scalarize: time 1.691e-05/0.7061, allocations: 0 / 0.7238 GB, free: 2.195 MB / 0.5294 GB Notification: Performance of NFVerifyModel.verify: time 3.364e-05/0.7061, allocations: 18.56 kB / 0.7239 GB, free: 2.18 MB / 0.5294 GB Notification: Performance of NFConvertDAE.convert: time 0.0001816/0.7063, allocations: 75.44 kB / 0.7239 GB, free: 2.109 MB / 0.5294 GB Notification: Performance of FrontEnd - DAE generated: time 5.791e-06/0.7063, allocations: 3.281 kB / 0.7239 GB, free: 2.109 MB / 0.5294 GB Notification: Performance of FrontEnd: time 2.034e-06/0.7063, allocations: 0 / 0.7239 GB, free: 2.109 MB / 0.5294 GB Notification: Performance of Transformations before backend: time 6.121e-06/0.7063, allocations: 0 / 0.7239 GB, free: 2.109 MB / 0.5294 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 6 * Number of variables: 6 Notification: Performance of Generate backend data structure: time 0.0004682/0.7068, allocations: 343.1 kB / 0.7243 GB, free: 1.73 MB / 0.5294 GB Notification: Performance of prepare preOptimizeDAE: time 4.37e-05/0.7069, allocations: 11.98 kB / 0.7243 GB, free: 1.719 MB / 0.5294 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.521e-05/0.7069, allocations: 8.5 kB / 0.7243 GB, free: 1.711 MB / 0.5294 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001152/0.707, allocations: 170.9 kB / 0.7244 GB, free: 1.504 MB / 0.5294 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.218e-05/0.7071, allocations: 0 / 0.7244 GB, free: 1.504 MB / 0.5294 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.583e-05/0.7071, allocations: 11.94 kB / 0.7245 GB, free: 1.492 MB / 0.5294 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001389/0.7072, allocations: 64.27 kB / 0.7245 GB, free: 1.414 MB / 0.5294 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.161e-05/0.7073, allocations: 3.984 kB / 0.7245 GB, free: 1.41 MB / 0.5294 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.557e-05/0.7073, allocations: 8 kB / 0.7245 GB, free: 1.402 MB / 0.5294 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.819e-06/0.7073, allocations: 0 / 0.7245 GB, free: 1.402 MB / 0.5294 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.192e-05/0.7073, allocations: 11.88 kB / 0.7245 GB, free: 1.391 MB / 0.5294 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001952/0.7075, allocations: 175.5 kB / 0.7247 GB, free: 1.164 MB / 0.5294 GB Notification: Performance of preOpt comSubExp (simulation): time 8.983e-05/0.7076, allocations: 67.81 kB / 0.7248 GB, free: 1.07 MB / 0.5294 GB Notification: Performance of preOpt resolveLoops (simulation): time 5.217e-05/0.7077, allocations: 26.62 kB / 0.7248 GB, free: 1.035 MB / 0.5294 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0002862/0.708, allocations: 251.3 kB / 0.725 GB, free: 0.7344 MB / 0.5294 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.671e-05/0.708, allocations: 30.56 kB / 0.7251 GB, free: 0.6953 MB / 0.5294 GB Notification: Performance of pre-optimization done (n=6): time 1.012e-06/0.708, allocations: 0 / 0.7251 GB, free: 0.6953 MB / 0.5294 GB Notification: Performance of matching and sorting (n=9): time 0.0009781/0.709, allocations: 0.6876 MB / 0.7257 GB, free: 15.86 MB / 0.545 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.027e-05/0.7091, allocations: 106.8 kB / 0.7258 GB, free: 15.73 MB / 0.545 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.438e-05/0.7092, allocations: 97.8 kB / 0.7259 GB, free: 15.63 MB / 0.545 GB Notification: Performance of collectPreVariables (initialization): time 1.664e-05/0.7092, allocations: 25.7 kB / 0.726 GB, free: 15.6 MB / 0.545 GB Notification: Performance of collectInitialEqns (initialization): time 3.065e-05/0.7092, allocations: 84.14 kB / 0.726 GB, free: 15.51 MB / 0.545 GB Notification: Performance of collectInitialBindings (initialization): time 4.068e-05/0.7093, allocations: 35.73 kB / 0.7261 GB, free: 15.48 MB / 0.545 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.672e-05/0.7093, allocations: 29.7 kB / 0.7261 GB, free: 15.44 MB / 0.545 GB Notification: Performance of setup shared object (initialization): time 0.0001227/0.7094, allocations: 310.8 kB / 0.7264 GB, free: 15.13 MB / 0.545 GB Notification: Performance of preBalanceInitialSystem (initialization): time 3.291e-05/0.7095, allocations: 15.98 kB / 0.7264 GB, free: 15.11 MB / 0.545 GB Notification: Performance of partitionIndependentBlocks (initialization): time 5.133e-05/0.7095, allocations: 53.14 kB / 0.7265 GB, free: 15.04 MB / 0.545 GB Notification: Performance of analyzeInitialSystem (initialization): time 9.668e-05/0.7096, allocations: 77.03 kB / 0.7265 GB, free: 14.95 MB / 0.545 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.234e-06/0.7097, allocations: 0.875 kB / 0.7265 GB, free: 14.95 MB / 0.545 GB Notification: Performance of matching and sorting (n=12) (initialization): time 0.000142/0.7098, allocations: 101.6 kB / 0.7266 GB, free: 14.84 MB / 0.545 GB Notification: Performance of prepare postOptimizeDAE: time 1.447e-05/0.7098, allocations: 8 kB / 0.7266 GB, free: 14.84 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.663e-06/0.7098, allocations: 3.938 kB / 0.7266 GB, free: 14.83 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.895e-05/0.7099, allocations: 7.938 kB / 0.7267 GB, free: 14.82 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.799e-05/0.71, allocations: 19.98 kB / 0.7267 GB, free: 14.8 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.637e-06/0.71, allocations: 4 kB / 0.7267 GB, free: 14.8 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.82e-05/0.71, allocations: 0 / 0.7267 GB, free: 14.8 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.249e-05/0.71, allocations: 10.12 kB / 0.7267 GB, free: 14.79 MB / 0.545 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 6 * 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 (12): * Single equations (assignments): 12 * 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.717e-05/0.7101, allocations: 121.8 kB / 0.7268 GB, free: 14.66 MB / 0.545 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.437e-05/0.7102, allocations: 15.89 kB / 0.7268 GB, free: 14.65 MB / 0.545 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002017/0.7104, allocations: 95.36 kB / 0.7269 GB, free: 14.55 MB / 0.545 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.274e-06/0.7104, allocations: 0 / 0.7269 GB, free: 14.55 MB / 0.545 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.141e-06/0.7104, allocations: 4 kB / 0.7269 GB, free: 14.55 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.186e-06/0.7104, allocations: 0 / 0.7269 GB, free: 14.55 MB / 0.545 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001394/0.7106, allocations: 169.6 kB / 0.7271 GB, free: 14.34 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.272e-06/0.7106, allocations: 0 / 0.7271 GB, free: 14.34 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001047/0.7107, allocations: 23.92 kB / 0.7271 GB, free: 14.31 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.457e-06/0.7107, allocations: 8 kB / 0.7271 GB, free: 14.3 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.046e-05/0.7107, allocations: 3.938 kB / 0.7271 GB, free: 14.3 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.733e-06/0.7107, allocations: 3.938 kB / 0.7271 GB, free: 14.3 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.376e-06/0.7107, allocations: 4 kB / 0.7271 GB, free: 14.29 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001936/0.7109, allocations: 126.7 kB / 0.7272 GB, free: 14.14 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 7.067e-05/0.711, allocations: 89.12 kB / 0.7273 GB, free: 14.04 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.811e-05/0.711, allocations: 15.94 kB / 0.7273 GB, free: 14.02 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.377e-05/0.7111, allocations: 3.062 kB / 0.7273 GB, free: 14.02 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.947e-05/0.7111, allocations: 7.984 kB / 0.7273 GB, free: 14.02 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.029e-05/0.7111, allocations: 8 kB / 0.7274 GB, free: 14.01 MB / 0.545 GB Notification: Performance of sorting global known variables: time 2.902e-05/0.7112, allocations: 75.28 kB / 0.7274 GB, free: 13.93 MB / 0.545 GB Notification: Performance of sort global known variables: time 1.1e-07/0.7112, allocations: 0 / 0.7274 GB, free: 13.93 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.0002356/0.7114, allocations: 32 kB / 0.7275 GB, free: 13.9 MB / 0.545 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 3 (hAirSym,hSteSym,hLiqSym) * 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 (9): * Single equations (assignments): 9 * 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.0001656/0.7116, allocations: 139.2 kB / 0.7276 GB, free: 13.76 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.0001479/0.7118, allocations: 48.28 kB / 0.7276 GB, free: 13.71 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 2.204e-06/0.7118, allocations: 0 / 0.7276 GB, free: 13.71 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 3.484e-05/0.7118, allocations: 28.11 kB / 0.7277 GB, free: 13.68 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001666/0.712, allocations: 8 kB / 0.7277 GB, free: 13.68 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005264/0.7125, allocations: 317.8 kB / 0.728 GB, free: 13.34 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002496/0.7128, allocations: 0.6884 MB / 0.7286 GB, free: 12.62 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 4.669e-05/0.7128, allocations: 15.92 kB / 0.7287 GB, free: 12.61 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.357e-05/0.7129, allocations: 15.44 kB / 0.7287 GB, free: 12.59 MB / 0.545 GB Notification: Performance of SimCode: time 2.31e-07/0.7129, allocations: 0 / 0.7287 GB, free: 12.59 MB / 0.545 GB Notification: Performance of Templates: time 0.003343/0.7162, allocations: 0.9959 MB / 0.7296 GB, free: 11.6 MB / 0.545 GB make -j1 -f Buildings_1.6_Buildings.Media.PerfectGases.Examples.MoistAirDerivativeCheck.makefile (rm -f Buildings_1.6_Buildings.Media.PerfectGases.Examples.MoistAirDerivativeCheck.pipe ; mkfifo Buildings_1.6_Buildings.Media.PerfectGases.Examples.MoistAirDerivativeCheck.pipe ; head -c 1048576 < Buildings_1.6_Buildings.Media.PerfectGases.Examples.MoistAirDerivativeCheck.pipe >> ../files/Buildings_1.6_Buildings.Media.PerfectGases.Examples.MoistAirDerivativeCheck.sim & ./Buildings_1.6_Buildings.Media.PerfectGases.Examples.MoistAirDerivativeCheck -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_1.6_Buildings.Media.PerfectGases.Examples.MoistAirDerivativeCheck.pipe 2>&1)