Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_8.0.0_Buildings.Electrical.DC.Storage.Examples.Battery.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.0/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+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/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/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 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Using package Buildings with version 8.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.0/package.mo) Running command: translateModel(Buildings.Electrical.DC.Storage.Examples.Battery,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_8.0.0_Buildings.Electrical.DC.Storage.Examples.Battery") translateModel(Buildings.Electrical.DC.Storage.Examples.Battery,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_8.0.0_Buildings.Electrical.DC.Storage.Examples.Battery") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.0/package.mo): time 1.879/1.879, allocations: 287.5 MB / 302.6 MB, free: 8.172 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.00147/0.00147, allocations: 190 kB / 371.2 MB, free: 10.81 MB / 298.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.808/1.808, allocations: 205.4 MB / 0.6298 GB, free: 10.58 MB / 458.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008492/0.0008492, allocations: 95.25 kB / 0.7432 GB, free: 6.566 MB / 0.5573 GB Notification: Performance of FrontEnd - loaded program: time 0.0006582/0.0006583, allocations: 11.16 kB / 0.8661 GB, free: 140.5 MB / 0.6198 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2793/0.28, allocations: 115.3 MB / 0.9787 GB, free: 28.2 MB / 0.6198 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.DC.Storage.Examples.Battery): time 0.004529/0.2846, allocations: 3.7 MB / 0.9823 GB, free: 24.48 MB / 0.6198 GB Notification: Performance of NFInst.instExpressions: time 0.003203/0.2878, allocations: 1.918 MB / 0.9842 GB, free: 22.55 MB / 0.6198 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.000614/0.2885, allocations: 15.94 kB / 0.9842 GB, free: 22.53 MB / 0.6198 GB Notification: Performance of NFTyping.typeComponents: time 0.0004429/0.2889, allocations: 83.23 kB / 0.9842 GB, free: 22.45 MB / 0.6198 GB Notification: Performance of NFTyping.typeBindings: time 0.0008365/0.2898, allocations: 179 kB / 0.9844 GB, free: 22.27 MB / 0.6198 GB Notification: Performance of NFTyping.typeClassSections: time 0.001104/0.2909, allocations: 331.5 kB / 0.9847 GB, free: 21.95 MB / 0.6198 GB Notification: Performance of NFFlatten.flatten: time 0.001131/0.292, allocations: 0.9088 MB / 0.9856 GB, free: 21.04 MB / 0.6198 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0011/0.2932, allocations: 0.892 MB / 0.9865 GB, free: 20.1 MB / 0.6198 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0004077/0.2936, allocations: 251 kB / 0.9867 GB, free: 19.86 MB / 0.6198 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0004454/0.294, allocations: 310.6 kB / 0.987 GB, free: 19.55 MB / 0.6198 GB Notification: Performance of NFPackage.collectConstants: time 9.383e-05/0.2941, allocations: 32 kB / 0.9871 GB, free: 19.52 MB / 0.6198 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002784/0.2944, allocations: 95.88 kB / 0.9872 GB, free: 19.43 MB / 0.6198 GB Notification: Performance of NFScalarize.scalarize: time 0.0001258/0.2946, allocations: 163.4 kB / 0.9873 GB, free: 19.27 MB / 0.6198 GB Notification: Performance of NFVerifyModel.verify: time 0.0001137/0.2947, allocations: 137.3 kB / 0.9874 GB, free: 19.12 MB / 0.6198 GB Notification: Performance of NFConvertDAE.convert: time 0.0004764/0.2952, allocations: 0.6393 MB / 0.9881 GB, free: 18.48 MB / 0.6198 GB Notification: Performance of FrontEnd - DAE generated: time 6.161e-06/0.2952, allocations: 4 kB / 0.9881 GB, free: 18.48 MB / 0.6198 GB Notification: Performance of FrontEnd: time 2.004e-06/0.2952, allocations: 4 kB / 0.9881 GB, free: 18.48 MB / 0.6198 GB Notification: Performance of Transformations before backend: time 8.697e-06/0.2952, allocations: 0 / 0.9881 GB, free: 18.48 MB / 0.6198 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 191 * Number of variables: 191 Notification: Performance of Generate backend data structure: time 0.001077/0.2963, allocations: 0.8011 MB / 0.9889 GB, free: 17.63 MB / 0.6198 GB Notification: Performance of prepare preOptimizeDAE: time 3.465e-05/0.2963, allocations: 8.031 kB / 0.9889 GB, free: 17.62 MB / 0.6198 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004024/0.2967, allocations: 119.9 kB / 0.989 GB, free: 17.5 MB / 0.6198 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004279/0.2972, allocations: 436.8 kB / 0.9894 GB, free: 17.04 MB / 0.6198 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.475e-05/0.2972, allocations: 62.36 kB / 0.9895 GB, free: 16.98 MB / 0.6198 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001108/0.2973, allocations: 76.38 kB / 0.9895 GB, free: 16.91 MB / 0.6198 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001035/0.2984, allocations: 0.877 MB / 0.9904 GB, free: 15.96 MB / 0.6198 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.105e-05/0.2984, allocations: 4 kB / 0.9904 GB, free: 15.96 MB / 0.6198 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.507e-05/0.2985, allocations: 28 kB / 0.9904 GB, free: 15.93 MB / 0.6198 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.155e-05/0.2985, allocations: 53.92 kB / 0.9905 GB, free: 15.88 MB / 0.6198 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007667/0.2993, allocations: 0.5658 MB / 0.991 GB, free: 15.32 MB / 0.6198 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002904/0.3022, allocations: 3.712 MB / 0.9946 GB, free: 11.39 MB / 0.6198 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004917/0.3027, allocations: 313.5 kB / 0.9949 GB, free: 11.07 MB / 0.6198 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.00032/0.3031, allocations: 223.1 kB / 0.9952 GB, free: 10.86 MB / 0.6198 GB Notification: Performance of preOpt evalFunc (simulation): time 3.486e-05/0.3031, allocations: 8.375 kB / 0.9952 GB, free: 10.85 MB / 0.6198 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003348/0.3034, allocations: 247.9 kB / 0.9954 GB, free: 10.59 MB / 0.6198 GB Notification: Performance of pre-optimization done (n=47): time 2.515e-06/0.3035, allocations: 0 / 0.9954 GB, free: 10.59 MB / 0.6198 GB Notification: Performance of matching and sorting (n=47): time 0.000698/0.3042, allocations: 452.2 kB / 0.9958 GB, free: 10.14 MB / 0.6198 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.354e-05/0.3042, allocations: 81.11 kB / 0.9959 GB, free: 10.04 MB / 0.6198 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003185/0.3045, allocations: 429.2 kB / 0.9963 GB, free: 9.613 MB / 0.6198 GB Notification: Performance of collectPreVariables (initialization): time 3.947e-05/0.3046, allocations: 45.7 kB / 0.9964 GB, free: 9.562 MB / 0.6198 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001542/0.3048, allocations: 335.5 kB / 0.9967 GB, free: 9.23 MB / 0.6198 GB Notification: Performance of collectInitialBindings (initialization): time 7.569e-05/0.3048, allocations: 138.2 kB / 0.9968 GB, free: 9.094 MB / 0.6198 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.318e-05/0.3049, allocations: 16 kB / 0.9968 GB, free: 9.078 MB / 0.6198 GB Notification: Performance of setup shared object (initialization): time 8.258e-05/0.305, allocations: 358.8 kB / 0.9972 GB, free: 8.719 MB / 0.6198 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002209/0.3052, allocations: 149.9 kB / 0.9973 GB, free: 8.574 MB / 0.6198 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000326/0.3055, allocations: 404.4 kB / 0.9977 GB, free: 8.078 MB / 0.6198 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004648/0.306, allocations: 0.4961 MB / 0.9982 GB, free: 7.484 MB / 0.6198 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.999e-06/0.306, allocations: 7.938 kB / 0.9982 GB, free: 7.477 MB / 0.6198 GB Notification: Performance of matching and sorting (n=92) (initialization): time 0.0006974/0.3067, allocations: 0.5846 MB / 0.9988 GB, free: 6.883 MB / 0.6198 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001028/0.3068, allocations: 294 kB / 0.999 GB, free: 6.496 MB / 0.6198 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.668e-06/0.3068, allocations: 7.984 kB / 0.999 GB, free: 6.488 MB / 0.6198 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.313e-05/0.3069, allocations: 12 kB / 0.9991 GB, free: 6.477 MB / 0.6198 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002976/0.3072, allocations: 103.8 kB / 0.9992 GB, free: 6.375 MB / 0.6198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.596e-05/0.3072, allocations: 15.94 kB / 0.9992 GB, free: 6.359 MB / 0.6198 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000287/0.3075, allocations: 79.17 kB / 0.9992 GB, free: 6.281 MB / 0.6198 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.297e-05/0.3075, allocations: 35.98 kB / 0.9993 GB, free: 6.246 MB / 0.6198 GB Notification: Performance of prepare postOptimizeDAE: time 7.223e-06/0.3075, allocations: 7.938 kB / 0.9993 GB, free: 6.238 MB / 0.6198 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0006144/0.3082, allocations: 0.5163 MB / 0.9998 GB, free: 5.719 MB / 0.6198 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.51e-06/0.3082, allocations: 8 kB / 0.9998 GB, free: 5.711 MB / 0.6198 GB Notification: Performance of postOpt tearingSystem (initialization): time 8.145e-06/0.3082, allocations: 12.91 kB / 0.9998 GB, free: 5.699 MB / 0.6198 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000272/0.3085, allocations: 103.8 kB / 0.9999 GB, free: 5.598 MB / 0.6198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.178e-05/0.3085, allocations: 19.92 kB / 0.9999 GB, free: 5.578 MB / 0.6198 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002455/0.3087, allocations: 67.38 kB / 1 GB, free: 5.512 MB / 0.6198 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.619e-05/0.3088, allocations: 39.98 kB / 1 GB, free: 5.473 MB / 0.6198 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 32 * Number of states: 0 () * Number of discrete variables: 48 ($PRE.toOn.enableFire,$PRE.toHold.enableFire,$PRE.toDischarge.enableFire,$PRE.toOff.enableFire,$whenCondition1,$PRE.bat.cha.underCharged,bat.cha.underCharged,$PRE.bat.cha.overCharged,bat.cha.overCharged,off.active,$PRE.off.localActive,off.localActive,$PRE.off.newActive,off.newActive,$PRE.off.oldActive,off.oldActive,toOn.condition,toOn.enableFire,$PRE.charge.localActive,charge.localActive,$PRE.charge.newActive,charge.newActive,$PRE.charge.oldActive,charge.oldActive,charge.active,toHold.condition,toHold.enableFire,hold.active,$PRE.hold.localActive,hold.localActive,$PRE.hold.newActive,hold.newActive,$PRE.hold.oldActive,hold.oldActive,toDischarge.condition,toDischarge.enableFire,$PRE.discharge.localActive,discharge.localActive,$PRE.discharge.newActive,discharge.newActive,$PRE.discharge.oldActive,discharge.oldActive,discharge.active,toOff.condition,toOff.enableFire,stateGraphRoot.activeSteps,stateGraphRoot.resume,stateGraphRoot.suspend) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (92): * Single equations (assignments): 92 * 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 0.0002659/0.3091, allocations: 324.8 kB / 1 GB, free: 5.145 MB / 0.6198 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.006e-05/0.3091, allocations: 47.38 kB / 1 GB, free: 5.098 MB / 0.6198 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005735/0.3097, allocations: 389.2 kB / 1.001 GB, free: 4.707 MB / 0.6198 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.622e-06/0.3097, allocations: 8 kB / 1.001 GB, free: 4.699 MB / 0.6198 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.189e-06/0.3097, allocations: 3.938 kB / 1.001 GB, free: 4.695 MB / 0.6198 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.763e-06/0.3097, allocations: 7.922 kB / 1.001 GB, free: 4.688 MB / 0.6198 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001257/0.311, allocations: 1.214 MB / 1.002 GB, free: 3.391 MB / 0.6198 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.206e-06/0.311, allocations: 4 kB / 1.002 GB, free: 3.387 MB / 0.6198 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001942/0.3112, allocations: 43.92 kB / 1.002 GB, free: 3.344 MB / 0.6198 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.057e-06/0.3112, allocations: 4 kB / 1.002 GB, free: 3.34 MB / 0.6198 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.577e-05/0.3113, allocations: 15.98 kB / 1.002 GB, free: 3.324 MB / 0.6198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.515e-06/0.3113, allocations: 0 / 1.002 GB, free: 3.324 MB / 0.6198 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.266e-06/0.3113, allocations: 7.938 kB / 1.002 GB, free: 3.316 MB / 0.6198 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007005/0.312, allocations: 0.64 MB / 1.003 GB, free: 2.648 MB / 0.6198 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001149/0.3121, allocations: 152.5 kB / 1.003 GB, free: 2.48 MB / 0.6198 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.674e-05/0.3122, allocations: 19.98 kB / 1.003 GB, free: 2.461 MB / 0.6198 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001652/0.3123, allocations: 12 kB / 1.003 GB, free: 2.449 MB / 0.6198 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001148/0.3125, allocations: 60.34 kB / 1.003 GB, free: 2.391 MB / 0.6198 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.674e-05/0.3125, allocations: 16 kB / 1.003 GB, free: 2.375 MB / 0.6198 GB Notification: Performance of sorting global known variables: time 0.0001946/0.3127, allocations: 255.2 kB / 1.003 GB, free: 2.129 MB / 0.6198 GB Notification: Performance of sort global known variables: time 1.31e-07/0.3127, allocations: 0 / 1.003 GB, free: 2.129 MB / 0.6198 GB Notification: Performance of remove unused functions: time 0.0007425/0.3135, allocations: 270.8 kB / 1.003 GB, free: 1.863 MB / 0.6198 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 1 (bat.cha.SOC) * Number of discrete variables: 32 (off.localActive,charge.localActive,hold.localActive,discharge.localActive,$cse1,$cse2,$cse3,$cse4,$whenCondition1,bat.cha.underCharged,bat.cha.overCharged,off.active,off.newActive,off.oldActive,toOn.condition,toOn.enableFire,charge.newActive,charge.oldActive,charge.active,toHold.condition,toHold.enableFire,hold.active,hold.newActive,hold.oldActive,toDischarge.condition,toDischarge.enableFire,discharge.newActive,discharge.oldActive,discharge.active,toOff.condition,toOff.enableFire,stateGraphRoot.activeSteps) * Number of discrete states: 6 (discharge.newActive,hold.newActive,charge.newActive,off.newActive,bat.cha.underCharged,bat.cha.overCharged) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (52): * Single equations (assignments): 48 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 4 * 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.0001662/0.3136, allocations: 137.4 kB / 1.004 GB, free: 1.723 MB / 0.6198 GB Notification: Performance of simCode: created initialization part: time 0.0009112/0.3145, allocations: 0.7066 MB / 1.004 GB, free: 1.02 MB / 0.6198 GB Notification: Performance of simCode: created event and clocks part: time 2.024e-06/0.3146, allocations: 0 / 1.004 GB, free: 1.02 MB / 0.6198 GB Notification: Performance of simCode: created simulation system equations: time 0.0002315/0.3148, allocations: 186.4 kB / 1.004 GB, free: 0.832 MB / 0.6198 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000597/0.3154, allocations: 102.3 kB / 1.005 GB, free: 0.7305 MB / 0.6198 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001641/0.317, allocations: 1.201 MB / 1.006 GB, free: 15.49 MB / 0.6355 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005754/0.3176, allocations: 0.9072 MB / 1.007 GB, free: 14.56 MB / 0.6355 GB Notification: Performance of simCode: alias equations: time 0.0004205/0.3181, allocations: 116.7 kB / 1.007 GB, free: 14.44 MB / 0.6355 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001206/0.3182, allocations: 47.38 kB / 1.007 GB, free: 14.39 MB / 0.6355 GB Notification: Performance of SimCode: time 6.31e-07/0.3182, allocations: 0 / 1.007 GB, free: 14.39 MB / 0.6355 GB Notification: Performance of Templates: time 0.01178/0.33, allocations: 5.403 MB / 1.012 GB, free: 9.043 MB / 0.6355 GB make -j1 -f Buildings_8.0.0_Buildings.Electrical.DC.Storage.Examples.Battery.makefile (rm -f Buildings_8.0.0_Buildings.Electrical.DC.Storage.Examples.Battery.pipe ; mkfifo Buildings_8.0.0_Buildings.Electrical.DC.Storage.Examples.Battery.pipe ; head -c 1048576 < Buildings_8.0.0_Buildings.Electrical.DC.Storage.Examples.Battery.pipe >> ../files/Buildings_8.0.0_Buildings.Electrical.DC.Storage.Examples.Battery.sim & ./Buildings_8.0.0_Buildings.Electrical.DC.Storage.Examples.Battery -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_8.0.0_Buildings.Electrical.DC.Storage.Examples.Battery.pipe 2>&1)