Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_maint.8.0.x_Buildings.Electrical.DC.Storage.Examples.Battery.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.1-maint.8.0.x/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.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.1-maint.8.0.x/package.mo) Running command: translateModel(Buildings.Electrical.DC.Storage.Examples.Battery,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_maint.8.0.x_Buildings.Electrical.DC.Storage.Examples.Battery") translateModel(Buildings.Electrical.DC.Storage.Examples.Battery,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_maint.8.0.x_Buildings.Electrical.DC.Storage.Examples.Battery") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.1-maint.8.0.x/package.mo): time 1.812/1.812, allocations: 288.4 MB / 304.3 MB, free: 8.164 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.001103/0.001103, allocations: 178.4 kB / 372.9 MB, free: 10.14 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.464/1.464, allocations: 205.4 MB / 0.6316 GB, free: 9.871 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.0007258/0.0007259, allocations: 94.23 kB / 0.745 GB, free: 5.777 MB / 0.5573 GB Notification: Performance of FrontEnd - loaded program: time 0.0004051/0.0004052, allocations: 20.02 kB / 0.8681 GB, free: 141.8 MB / 0.6198 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2384/0.2388, allocations: 115.3 MB / 0.9807 GB, free: 27.34 MB / 0.6198 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.DC.Storage.Examples.Battery): time 0.003926/0.2428, allocations: 3.696 MB / 0.9843 GB, free: 23.62 MB / 0.6198 GB Notification: Performance of NFInst.instExpressions: time 0.002771/0.2456, allocations: 1.922 MB / 0.9862 GB, free: 21.69 MB / 0.6198 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003312/0.2459, allocations: 19.88 kB / 0.9862 GB, free: 21.67 MB / 0.6198 GB Notification: Performance of NFTyping.typeComponents: time 0.0002688/0.2462, allocations: 79.3 kB / 0.9863 GB, free: 21.59 MB / 0.6198 GB Notification: Performance of NFTyping.typeBindings: time 0.0004889/0.2467, allocations: 199 kB / 0.9865 GB, free: 21.4 MB / 0.6198 GB Notification: Performance of NFTyping.typeClassSections: time 0.0008272/0.2476, allocations: 347.4 kB / 0.9868 GB, free: 21.06 MB / 0.6198 GB Notification: Performance of NFFlatten.flatten: time 0.0007462/0.2483, allocations: 0.9049 MB / 0.9877 GB, free: 20.15 MB / 0.6198 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0008389/0.2492, allocations: 0.888 MB / 0.9886 GB, free: 19.22 MB / 0.6198 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001977/0.2494, allocations: 255 kB / 0.9888 GB, free: 18.97 MB / 0.6198 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0003155/0.2497, allocations: 306.6 kB / 0.9891 GB, free: 18.67 MB / 0.6198 GB Notification: Performance of NFPackage.collectConstants: time 5.267e-05/0.2498, allocations: 32 kB / 0.9891 GB, free: 18.64 MB / 0.6198 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002728/0.25, allocations: 203.6 kB / 0.9893 GB, free: 18.44 MB / 0.6198 GB Notification: Performance of NFScalarize.scalarize: time 0.0001164/0.2502, allocations: 163.4 kB / 0.9895 GB, free: 18.28 MB / 0.6198 GB Notification: Performance of NFVerifyModel.verify: time 0.0001883/0.2504, allocations: 308.2 kB / 0.9898 GB, free: 17.97 MB / 0.6198 GB Notification: Performance of NFConvertDAE.convert: time 0.0004621/0.2508, allocations: 0.651 MB / 0.9904 GB, free: 17.32 MB / 0.6198 GB Notification: Performance of FrontEnd - DAE generated: time 5.59e-06/0.2508, allocations: 0 / 0.9904 GB, free: 17.32 MB / 0.6198 GB Notification: Performance of FrontEnd: time 2.144e-06/0.2508, allocations: 3.938 kB / 0.9904 GB, free: 17.31 MB / 0.6198 GB Notification: Performance of Transformations before backend: time 1.013e-05/0.2509, allocations: 4 kB / 0.9904 GB, free: 17.31 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.001141/0.252, allocations: 0.797 MB / 0.9912 GB, free: 16.46 MB / 0.6198 GB Notification: Performance of prepare preOptimizeDAE: time 4.057e-05/0.2521, allocations: 8.031 kB / 0.9912 GB, free: 16.46 MB / 0.6198 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004389/0.2525, allocations: 120 kB / 0.9913 GB, free: 16.34 MB / 0.6198 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004423/0.253, allocations: 436.8 kB / 0.9918 GB, free: 15.88 MB / 0.6198 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.23e-05/0.253, allocations: 62.38 kB / 0.9918 GB, free: 15.82 MB / 0.6198 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.406e-05/0.2531, allocations: 80.36 kB / 0.9919 GB, free: 15.74 MB / 0.6198 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001024/0.2541, allocations: 0.8731 MB / 0.9927 GB, free: 14.8 MB / 0.6198 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.756e-05/0.2542, allocations: 0 / 0.9927 GB, free: 14.8 MB / 0.6198 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.577e-05/0.2542, allocations: 32 kB / 0.9928 GB, free: 14.77 MB / 0.6198 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.215e-05/0.2543, allocations: 49.98 kB / 0.9928 GB, free: 14.72 MB / 0.6198 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007984/0.2551, allocations: 0.562 MB / 0.9934 GB, free: 14.16 MB / 0.6198 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003257/0.2584, allocations: 3.723 MB / 0.997 GB, free: 10.21 MB / 0.6198 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004934/0.2589, allocations: 322 kB / 0.9973 GB, free: 9.895 MB / 0.6198 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003226/0.2592, allocations: 207.7 kB / 0.9975 GB, free: 9.691 MB / 0.6198 GB Notification: Performance of preOpt evalFunc (simulation): time 3.636e-05/0.2592, allocations: 12.38 kB / 0.9975 GB, free: 9.68 MB / 0.6198 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003436/0.2596, allocations: 243.9 kB / 0.9978 GB, free: 9.422 MB / 0.6198 GB Notification: Performance of pre-optimization done (n=47): time 2.184e-06/0.2596, allocations: 0 / 0.9978 GB, free: 9.422 MB / 0.6198 GB Notification: Performance of matching and sorting (n=47): time 0.0006995/0.2603, allocations: 452 kB / 0.9982 GB, free: 8.973 MB / 0.6198 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.324e-05/0.2604, allocations: 89.03 kB / 0.9983 GB, free: 8.867 MB / 0.6198 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000327/0.2607, allocations: 421.2 kB / 0.9987 GB, free: 8.445 MB / 0.6198 GB Notification: Performance of collectPreVariables (initialization): time 4.048e-05/0.2608, allocations: 53.69 kB / 0.9987 GB, free: 8.387 MB / 0.6198 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001642/0.2609, allocations: 335.5 kB / 0.999 GB, free: 8.055 MB / 0.6198 GB Notification: Performance of collectInitialBindings (initialization): time 8.491e-05/0.261, allocations: 134.2 kB / 0.9992 GB, free: 7.922 MB / 0.6198 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.285e-05/0.261, allocations: 16 kB / 0.9992 GB, free: 7.906 MB / 0.6198 GB Notification: Performance of setup shared object (initialization): time 0.0001167/0.2612, allocations: 362.8 kB / 0.9995 GB, free: 7.543 MB / 0.6198 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002256/0.2614, allocations: 145.9 kB / 0.9997 GB, free: 7.402 MB / 0.6198 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003263/0.2617, allocations: 396.5 kB / 1 GB, free: 6.918 MB / 0.6198 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004786/0.2622, allocations: 0.4961 MB / 1.001 GB, free: 6.32 MB / 0.6198 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.4e-06/0.2622, allocations: 4 kB / 1.001 GB, free: 6.316 MB / 0.6198 GB Notification: Performance of matching and sorting (n=92) (initialization): time 0.0007133/0.263, allocations: 0.5847 MB / 1.001 GB, free: 5.723 MB / 0.6198 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001143/0.2631, allocations: 309.9 kB / 1.001 GB, free: 5.32 MB / 0.6198 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.032e-05/0.2631, allocations: 8 kB / 1.001 GB, free: 5.312 MB / 0.6198 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.08e-05/0.2631, allocations: 8 kB / 1.001 GB, free: 5.305 MB / 0.6198 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003091/0.2634, allocations: 103.8 kB / 1.002 GB, free: 5.203 MB / 0.6198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.543e-05/0.2635, allocations: 15.94 kB / 1.002 GB, free: 5.188 MB / 0.6198 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003017/0.2638, allocations: 83.17 kB / 1.002 GB, free: 5.105 MB / 0.6198 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.415e-05/0.2638, allocations: 32 kB / 1.002 GB, free: 5.074 MB / 0.6198 GB Notification: Performance of prepare postOptimizeDAE: time 5.26e-06/0.2638, allocations: 0 / 1.002 GB, free: 5.074 MB / 0.6198 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0006401/0.2645, allocations: 0.5202 MB / 1.002 GB, free: 4.551 MB / 0.6198 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.692e-06/0.2645, allocations: 11.94 kB / 1.002 GB, free: 4.539 MB / 0.6198 GB Notification: Performance of postOpt tearingSystem (initialization): time 7.965e-06/0.2645, allocations: 12.83 kB / 1.002 GB, free: 4.527 MB / 0.6198 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002753/0.2648, allocations: 103.8 kB / 1.002 GB, free: 4.426 MB / 0.6198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.088e-05/0.2648, allocations: 19.94 kB / 1.002 GB, free: 4.406 MB / 0.6198 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002584/0.2651, allocations: 67.36 kB / 1.002 GB, free: 4.34 MB / 0.6198 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.759e-05/0.2651, allocations: 32 kB / 1.002 GB, free: 4.309 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.0003036/0.2654, allocations: 332.7 kB / 1.003 GB, free: 3.973 MB / 0.6198 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.449e-05/0.2655, allocations: 47.38 kB / 1.003 GB, free: 3.926 MB / 0.6198 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005779/0.2661, allocations: 401 kB / 1.003 GB, free: 3.523 MB / 0.6198 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.594e-06/0.2661, allocations: 4 kB / 1.003 GB, free: 3.52 MB / 0.6198 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.883e-06/0.2661, allocations: 0 / 1.003 GB, free: 3.52 MB / 0.6198 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001353/0.2663, allocations: 152.3 kB / 1.003 GB, free: 3.352 MB / 0.6198 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.756e-05/0.2663, allocations: 15.98 kB / 1.003 GB, free: 3.336 MB / 0.6198 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001378/0.2665, allocations: 12 kB / 1.003 GB, free: 3.324 MB / 0.6198 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001338/0.2666, allocations: 48.36 kB / 1.003 GB, free: 3.273 MB / 0.6198 GB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.0006169/0.2672, allocations: 0.5184 MB / 1.004 GB, free: 2.75 MB / 0.6198 GB Notification: Performance of postOpt detectDAEmodeSparsePattern (simulation): time 0.0007049/0.2679, allocations: 0.7663 MB / 1.005 GB, free: 1.969 MB / 0.6198 GB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.000195/0.2682, allocations: 155.5 kB / 1.005 GB, free: 1.812 MB / 0.6198 GB Notification: Performance of sorting global known variables: time 0.0001917/0.2684, allocations: 259.1 kB / 1.005 GB, free: 1.562 MB / 0.6198 GB Notification: Performance of Backend: time 1.002e-06/0.2684, allocations: 0 / 1.005 GB, free: 1.562 MB / 0.6198 GB Notification: Performance of simCode: created initialization part: time 0.001434/0.2698, allocations: 0.7607 MB / 1.006 GB, free: 0.8008 MB / 0.6198 GB Notification: Performance of SimCode: time 0.001834/0.2716, allocations: 1.594 MB / 1.007 GB, free: 15.15 MB / 0.6355 GB Notification: Performance of Templates: time 0.01356/0.2852, allocations: 7.334 MB / 1.014 GB, free: 7.871 MB / 0.6355 GB make -j1 -f Buildings_maint.8.0.x_Buildings.Electrical.DC.Storage.Examples.Battery.makefile (rm -f Buildings_maint.8.0.x_Buildings.Electrical.DC.Storage.Examples.Battery.pipe ; mkfifo Buildings_maint.8.0.x_Buildings.Electrical.DC.Storage.Examples.Battery.pipe ; head -c 1048576 < Buildings_maint.8.0.x_Buildings.Electrical.DC.Storage.Examples.Battery.pipe >> ../files/Buildings_maint.8.0.x_Buildings.Electrical.DC.Storage.Examples.Battery.sim & ./Buildings_maint.8.0.x_Buildings.Electrical.DC.Storage.Examples.Battery -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_maint.8.0.x_Buildings.Electrical.DC.Storage.Examples.Battery.pipe 2>&1)