Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_1.6_Buildings.Media.PerfectGases.Examples.MoistAirUnsaturatedDerivativeCheck.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.MoistAirUnsaturatedDerivativeCheck,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_1.6_Buildings.Media.PerfectGases.Examples.MoistAirUnsaturatedDerivativeCheck") translateModel(Buildings.Media.PerfectGases.Examples.MoistAirUnsaturatedDerivativeCheck,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_1.6_Buildings.Media.PerfectGases.Examples.MoistAirUnsaturatedDerivativeCheck") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.005685/0.005685, allocations: 99.81 kB / 15.73 MB, free: 6.055 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.001276/0.001276, allocations: 192.2 kB / 16.67 MB, free: 5.969 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.568/1.568, allocations: 205.1 MB / 222.5 MB, free: 12.22 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 1.6.0+build.1/package.mo): time 0.4925/0.4925, allocations: 95.49 MB / 365.4 MB, free: 12.14 MB / 318.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.001708/0.001708, allocations: 71.89 kB / 0.5036 GB, free: 11.85 MB / 398.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4805/0.4822, allocations: 69.1 MB / 0.5711 GB, free: 4.113 MB / 430.1 MB Notification: Performance of NFInst.instantiate(Buildings.Media.PerfectGases.Examples.MoistAirUnsaturatedDerivativeCheck): time 0.002328/0.4846, allocations: 1.239 MB / 0.5723 GB, free: 2.863 MB / 430.1 MB Notification: Performance of NFInst.instExpressions: time 0.1952/0.6798, allocations: 160 MB / 0.7285 GB, free: 2.273 MB / 0.5762 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.809e-05/0.6799, allocations: 0 / 0.7285 GB, free: 2.273 MB / 0.5762 GB Notification: Performance of NFTyping.typeComponents: time 2.931e-05/0.68, allocations: 0 / 0.7285 GB, free: 2.273 MB / 0.5762 GB Notification: Performance of NFTyping.typeBindings: time 5.794e-05/0.68, allocations: 11.92 kB / 0.7285 GB, free: 2.262 MB / 0.5762 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004627/0.6805, allocations: 83.56 kB / 0.7286 GB, free: 2.18 MB / 0.5762 GB Notification: Performance of NFFlatten.flatten: time 7.927e-05/0.6806, allocations: 27.92 kB / 0.7286 GB, free: 2.152 MB / 0.5762 GB Notification: Performance of NFFlatten.resolveConnections: time 4.854e-05/0.6806, allocations: 4 kB / 0.7286 GB, free: 2.148 MB / 0.5762 GB Notification: Performance of NFEvalConstants.evaluate: time 5.211e-05/0.6807, allocations: 19.91 kB / 0.7287 GB, free: 2.129 MB / 0.5762 GB Notification: Performance of NFSimplifyModel.simplify: time 8.527e-05/0.6808, allocations: 15.98 kB / 0.7287 GB, free: 2.113 MB / 0.5762 GB Notification: Performance of NFPackage.collectConstants: time 1.519e-05/0.6808, allocations: 0 / 0.7287 GB, free: 2.113 MB / 0.5762 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001964/0.681, allocations: 59.91 kB / 0.7287 GB, free: 2.055 MB / 0.5762 GB Notification: Performance of NFScalarize.scalarize: time 1.73e-05/0.681, allocations: 15.86 kB / 0.7287 GB, free: 2.039 MB / 0.5762 GB Notification: Performance of NFVerifyModel.verify: time 3.137e-05/0.6811, allocations: 15.94 kB / 0.7288 GB, free: 2.023 MB / 0.5762 GB Notification: Performance of NFConvertDAE.convert: time 0.0001798/0.6813, allocations: 61 kB / 0.7288 GB, free: 1.969 MB / 0.5762 GB Notification: Performance of FrontEnd - DAE generated: time 5.451e-06/0.6813, allocations: 0 / 0.7288 GB, free: 1.969 MB / 0.5762 GB Notification: Performance of FrontEnd: time 1.853e-06/0.6813, allocations: 0 / 0.7288 GB, free: 1.969 MB / 0.5762 GB Notification: Performance of Transformations before backend: time 6.211e-06/0.6813, allocations: 0 / 0.7288 GB, free: 1.969 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: 6 * Number of variables: 6 Notification: Performance of Generate backend data structure: time 0.0004119/0.6817, allocations: 354.6 kB / 0.7292 GB, free: 1.578 MB / 0.5762 GB Notification: Performance of prepare preOptimizeDAE: time 4.283e-05/0.6818, allocations: 11.98 kB / 0.7292 GB, free: 1.566 MB / 0.5762 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.54e-05/0.6818, allocations: 4 kB / 0.7292 GB, free: 1.562 MB / 0.5762 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001159/0.6819, allocations: 167 kB / 0.7293 GB, free: 1.359 MB / 0.5762 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.593e-05/0.682, allocations: 12 kB / 0.7293 GB, free: 1.348 MB / 0.5762 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.739e-05/0.682, allocations: 3.938 kB / 0.7293 GB, free: 1.344 MB / 0.5762 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001478/0.6821, allocations: 64.27 kB / 0.7294 GB, free: 1.266 MB / 0.5762 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.867e-06/0.6822, allocations: 0 / 0.7294 GB, free: 1.266 MB / 0.5762 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.305e-05/0.6822, allocations: 4 kB / 0.7294 GB, free: 1.262 MB / 0.5762 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.699e-06/0.6822, allocations: 0 / 0.7294 GB, free: 1.262 MB / 0.5762 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.518e-05/0.6822, allocations: 11.92 kB / 0.7294 GB, free: 1.25 MB / 0.5762 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001909/0.6824, allocations: 179.4 kB / 0.7296 GB, free: 1.02 MB / 0.5762 GB Notification: Performance of preOpt comSubExp (simulation): time 9.317e-05/0.6825, allocations: 71.84 kB / 0.7297 GB, free: 0.9219 MB / 0.5762 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.79e-05/0.6826, allocations: 30.58 kB / 0.7297 GB, free: 0.8828 MB / 0.5762 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0003011/0.6829, allocations: 251.3 kB / 0.7299 GB, free: 0.582 MB / 0.5762 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.736e-05/0.6829, allocations: 50.47 kB / 0.73 GB, free: 0.5234 MB / 0.5762 GB Notification: Performance of pre-optimization done (n=6): time 1.412e-06/0.6829, allocations: 0 / 0.73 GB, free: 0.5234 MB / 0.5762 GB Notification: Performance of matching and sorting (n=9): time 0.000955/0.6839, allocations: 0.6722 MB / 0.7306 GB, free: 15.71 MB / 0.5919 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.329e-05/0.684, allocations: 110.8 kB / 0.7307 GB, free: 15.57 MB / 0.5919 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.07e-05/0.684, allocations: 89.86 kB / 0.7308 GB, free: 15.48 MB / 0.5919 GB Notification: Performance of collectPreVariables (initialization): time 1.795e-05/0.6841, allocations: 29.7 kB / 0.7308 GB, free: 15.44 MB / 0.5919 GB Notification: Performance of collectInitialEqns (initialization): time 2.731e-05/0.6841, allocations: 88.33 kB / 0.7309 GB, free: 15.35 MB / 0.5919 GB Notification: Performance of collectInitialBindings (initialization): time 3.896e-05/0.6841, allocations: 35.69 kB / 0.731 GB, free: 15.32 MB / 0.5919 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.429e-05/0.6842, allocations: 25.7 kB / 0.731 GB, free: 15.29 MB / 0.5919 GB Notification: Performance of setup shared object (initialization): time 0.000106/0.6843, allocations: 318.8 kB / 0.7313 GB, free: 14.96 MB / 0.5919 GB Notification: Performance of preBalanceInitialSystem (initialization): time 3.246e-05/0.6843, allocations: 15.98 kB / 0.7313 GB, free: 14.95 MB / 0.5919 GB Notification: Performance of partitionIndependentBlocks (initialization): time 5.732e-05/0.6844, allocations: 53.08 kB / 0.7314 GB, free: 14.88 MB / 0.5919 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001037/0.6845, allocations: 81.03 kB / 0.7314 GB, free: 14.78 MB / 0.5919 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.236e-06/0.6845, allocations: 4 kB / 0.7314 GB, free: 14.78 MB / 0.5919 GB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0001457/0.6847, allocations: 101.5 kB / 0.7315 GB, free: 14.67 MB / 0.5919 GB Notification: Performance of prepare postOptimizeDAE: time 1.532e-05/0.6847, allocations: 4 kB / 0.7315 GB, free: 14.67 MB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.859e-06/0.6847, allocations: 0 / 0.7315 GB, free: 14.67 MB / 0.5919 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.455e-05/0.6847, allocations: 4 kB / 0.7315 GB, free: 14.66 MB / 0.5919 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001008/0.6848, allocations: 19.98 kB / 0.7316 GB, free: 14.64 MB / 0.5919 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.154e-05/0.6849, allocations: 11.92 kB / 0.7316 GB, free: 14.63 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.938e-05/0.6849, allocations: 7.938 kB / 0.7316 GB, free: 14.62 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.839e-06/0.6849, allocations: 4 kB / 0.7316 GB, free: 14.62 MB / 0.5919 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 7.955e-05/0.685, allocations: 123.7 kB / 0.7317 GB, free: 14.49 MB / 0.5919 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.752e-05/0.685, allocations: 4 kB / 0.7317 GB, free: 14.49 MB / 0.5919 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001909/0.6852, allocations: 96.83 kB / 0.7318 GB, free: 14.39 MB / 0.5919 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.537e-06/0.6852, allocations: 4 kB / 0.7318 GB, free: 14.39 MB / 0.5919 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.953e-06/0.6852, allocations: 0 / 0.7318 GB, free: 14.39 MB / 0.5919 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.078e-06/0.6853, allocations: 3.938 kB / 0.7318 GB, free: 14.39 MB / 0.5919 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001239/0.6854, allocations: 169.6 kB / 0.732 GB, free: 14.17 MB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.463e-06/0.6854, allocations: 4 kB / 0.732 GB, free: 14.17 MB / 0.5919 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001009/0.6855, allocations: 23.98 kB / 0.732 GB, free: 14.14 MB / 0.5919 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.306e-06/0.6855, allocations: 4 kB / 0.732 GB, free: 14.14 MB / 0.5919 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.797e-06/0.6855, allocations: 0 / 0.732 GB, free: 14.14 MB / 0.5919 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.813e-06/0.6855, allocations: 0 / 0.732 GB, free: 14.14 MB / 0.5919 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.108e-06/0.6855, allocations: 4 kB / 0.732 GB, free: 14.14 MB / 0.5919 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001888/0.6857, allocations: 130.9 kB / 0.7321 GB, free: 13.98 MB / 0.5919 GB Notification: Performance of postOpt removeConstants (simulation): time 7.216e-05/0.6858, allocations: 93.09 kB / 0.7322 GB, free: 13.88 MB / 0.5919 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.771e-05/0.6858, allocations: 7.984 kB / 0.7322 GB, free: 13.87 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.551e-05/0.6859, allocations: 4 kB / 0.7322 GB, free: 13.86 MB / 0.5919 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.051e-05/0.6859, allocations: 8.078 kB / 0.7322 GB, free: 13.86 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.174e-05/0.686, allocations: 7.984 kB / 0.7322 GB, free: 13.85 MB / 0.5919 GB Notification: Performance of sorting global known variables: time 3.618e-05/0.686, allocations: 75.28 kB / 0.7323 GB, free: 13.77 MB / 0.5919 GB Notification: Performance of sort global known variables: time 1.824e-06/0.686, allocations: 0 / 0.7323 GB, free: 13.77 MB / 0.5919 GB Notification: Performance of remove unused functions: time 0.0002431/0.6863, allocations: 39.81 kB / 0.7324 GB, free: 13.73 MB / 0.5919 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.0002075/0.6865, allocations: 139.1 kB / 0.7325 GB, free: 13.59 MB / 0.5919 GB Notification: Performance of simCode: created initialization part: time 0.0001545/0.6866, allocations: 51.91 kB / 0.7325 GB, free: 13.54 MB / 0.5919 GB Notification: Performance of simCode: created event and clocks part: time 2.886e-06/0.6866, allocations: 0 / 0.7325 GB, free: 13.54 MB / 0.5919 GB Notification: Performance of simCode: created simulation system equations: time 3.458e-05/0.6867, allocations: 19.92 kB / 0.7326 GB, free: 13.52 MB / 0.5919 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000172/0.6869, allocations: 12 kB / 0.7326 GB, free: 13.51 MB / 0.5919 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006281/0.6875, allocations: 318.4 kB / 0.7329 GB, free: 13.16 MB / 0.5919 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003146/0.6878, allocations: 0.6885 MB / 0.7335 GB, free: 12.45 MB / 0.5919 GB Notification: Performance of simCode: alias equations: time 5.228e-05/0.6879, allocations: 7.5 kB / 0.7336 GB, free: 12.45 MB / 0.5919 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.515e-05/0.6879, allocations: 15.52 kB / 0.7336 GB, free: 12.43 MB / 0.5919 GB Notification: Performance of SimCode: time 3.8e-07/0.6879, allocations: 3.938 kB / 0.7336 GB, free: 12.43 MB / 0.5919 GB Notification: Performance of Templates: time 0.004289/0.6922, allocations: 1.006 MB / 0.7346 GB, free: 11.43 MB / 0.5919 GB make -j1 -f Buildings_1.6_Buildings.Media.PerfectGases.Examples.MoistAirUnsaturatedDerivativeCheck.makefile (rm -f Buildings_1.6_Buildings.Media.PerfectGases.Examples.MoistAirUnsaturatedDerivativeCheck.pipe ; mkfifo Buildings_1.6_Buildings.Media.PerfectGases.Examples.MoistAirUnsaturatedDerivativeCheck.pipe ; head -c 1048576 < Buildings_1.6_Buildings.Media.PerfectGases.Examples.MoistAirUnsaturatedDerivativeCheck.pipe >> ../files/Buildings_1.6_Buildings.Media.PerfectGases.Examples.MoistAirUnsaturatedDerivativeCheck.sim & ./Buildings_1.6_Buildings.Media.PerfectGases.Examples.MoistAirUnsaturatedDerivativeCheck -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_1.6_Buildings.Media.PerfectGases.Examples.MoistAirUnsaturatedDerivativeCheck.pipe 2>&1)