Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_8_Buildings.Electrical.DC.Storage.Examples.Battery.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 8.1.4-maint.8.1.x/package.mo", uses=false) Using package Buildings with version 8.1.4 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/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.Electrical.DC.Storage.Examples.Battery,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_8_Buildings.Electrical.DC.Storage.Examples.Battery") translateModel(Buildings.Electrical.DC.Storage.Examples.Battery,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_8_Buildings.Electrical.DC.Storage.Examples.Battery") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001871/0.001871, allocations: 114.7 kB / 16.38 MB, free: 6.02 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.00235/0.00235, allocations: 192.4 kB / 17.31 MB, free: 5.617 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.535/1.535, allocations: 205.1 MB / 223.2 MB, free: 12.26 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo): time 2.031/2.031, allocations: 292.3 MB / 0.5496 GB, free: 17.45 MB / 462.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: Performance of FrontEnd - loaded program: time 0.00152/0.00152, allocations: 67.91 kB / 0.6729 GB, free: 5.855 MB / 0.545 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2728/0.2744, allocations: 114.6 MB / 0.7848 GB, free: 3.184 MB / 0.6544 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.DC.Storage.Examples.Battery): time 0.452/0.7264, allocations: 4.181 MB / 0.7889 GB, free: 46.71 MB / 0.6544 GB Notification: Performance of NFInst.instExpressions: time 0.00316/0.7296, allocations: 1.993 MB / 0.7908 GB, free: 46.48 MB / 0.6544 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003885/0.73, allocations: 19.41 kB / 0.7908 GB, free: 46.48 MB / 0.6544 GB Notification: Performance of NFTyping.typeComponents: time 0.00121/0.7313, allocations: 388.8 kB / 0.7912 GB, free: 46.41 MB / 0.6544 GB Notification: Performance of NFTyping.typeBindings: time 0.0006728/0.732, allocations: 236.3 kB / 0.7914 GB, free: 46.37 MB / 0.6544 GB Notification: Performance of NFTyping.typeClassSections: time 0.001103/0.7331, allocations: 436.8 kB / 0.7919 GB, free: 46.33 MB / 0.6544 GB Notification: Performance of NFFlatten.flatten: time 0.0009754/0.7341, allocations: 0.9245 MB / 0.7928 GB, free: 46.29 MB / 0.6544 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001131/0.7352, allocations: 1.019 MB / 0.7938 GB, free: 46.23 MB / 0.6544 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0003058/0.7355, allocations: 345.4 kB / 0.7941 GB, free: 46.16 MB / 0.6544 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0004541/0.736, allocations: 382.3 kB / 0.7944 GB, free: 46.07 MB / 0.6544 GB Notification: Performance of NFPackage.collectConstants: time 8.854e-05/0.7361, allocations: 73.12 kB / 0.7945 GB, free: 46.07 MB / 0.6544 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0003268/0.7364, allocations: 212.4 kB / 0.7947 GB, free: 46.05 MB / 0.6544 GB Notification: Performance of NFScalarize.scalarize: time 0.0001595/0.7366, allocations: 218.7 kB / 0.7949 GB, free: 46.01 MB / 0.6544 GB Notification: Performance of NFVerifyModel.verify: time 0.0002424/0.7369, allocations: 368.5 kB / 0.7953 GB, free: 45.9 MB / 0.6544 GB Notification: Performance of NFConvertDAE.convert: time 0.0007887/0.7377, allocations: 0.918 MB / 0.7962 GB, free: 45.67 MB / 0.6544 GB Notification: Performance of FrontEnd - DAE generated: time 4.578e-06/0.7377, allocations: 0 / 0.7962 GB, free: 45.67 MB / 0.6544 GB Notification: Performance of FrontEnd: time 2.074e-06/0.7377, allocations: 0 / 0.7962 GB, free: 45.67 MB / 0.6544 GB Notification: Performance of Transformations before backend: time 1.238e-05/0.7377, allocations: 0 / 0.7962 GB, free: 45.67 MB / 0.6544 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.001454/0.7392, allocations: 0.9685 MB / 0.7971 GB, free: 44.97 MB / 0.6544 GB Notification: Performance of prepare preOptimizeDAE: time 4.236e-05/0.7392, allocations: 6.969 kB / 0.7971 GB, free: 44.97 MB / 0.6544 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004878/0.7397, allocations: 113 kB / 0.7972 GB, free: 44.93 MB / 0.6544 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005434/0.7403, allocations: 437.9 kB / 0.7977 GB, free: 44.61 MB / 0.6544 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.748e-05/0.7403, allocations: 65.17 kB / 0.7977 GB, free: 44.59 MB / 0.6544 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001005/0.7404, allocations: 82.34 kB / 0.7978 GB, free: 44.56 MB / 0.6544 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001202/0.7416, allocations: 0.8745 MB / 0.7986 GB, free: 44.1 MB / 0.6544 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.106e-05/0.7417, allocations: 6.781 kB / 0.7987 GB, free: 44.1 MB / 0.6544 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.317e-05/0.7417, allocations: 37.11 kB / 0.7987 GB, free: 44.07 MB / 0.6544 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.795e-05/0.7418, allocations: 47.95 kB / 0.7987 GB, free: 44.07 MB / 0.6544 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000882/0.7427, allocations: 0.5702 MB / 0.7993 GB, free: 43.86 MB / 0.6544 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004152/0.7468, allocations: 3.688 MB / 0.8029 GB, free: 40.92 MB / 0.6544 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0006998/0.7476, allocations: 312.3 kB / 0.8032 GB, free: 40.79 MB / 0.6544 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004923/0.7481, allocations: 211.4 kB / 0.8034 GB, free: 40.71 MB / 0.6544 GB Notification: Performance of preOpt evalFunc (simulation): time 4.841e-05/0.7481, allocations: 9.25 kB / 0.8034 GB, free: 40.71 MB / 0.6544 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005202/0.7487, allocations: 255.9 kB / 0.8036 GB, free: 40.58 MB / 0.6544 GB Notification: Performance of pre-optimization done (n=47): time 2.194e-06/0.7487, allocations: 0 / 0.8036 GB, free: 40.58 MB / 0.6544 GB Notification: Performance of matching and sorting (n=47): time 0.001061/0.7497, allocations: 454.8 kB / 0.8041 GB, free: 40.4 MB / 0.6544 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.338e-05/0.7498, allocations: 83.56 kB / 0.8042 GB, free: 40.3 MB / 0.6544 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000619/0.7504, allocations: 425 kB / 0.8046 GB, free: 40.08 MB / 0.6544 GB Notification: Performance of collectPreVariables (initialization): time 5.455e-05/0.7505, allocations: 47.28 kB / 0.8046 GB, free: 40.04 MB / 0.6544 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002398/0.7507, allocations: 336.1 kB / 0.8049 GB, free: 39.77 MB / 0.6544 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001055/0.7509, allocations: 136 kB / 0.8051 GB, free: 39.66 MB / 0.6544 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002488/0.7511, allocations: 166.7 kB / 0.8052 GB, free: 39.59 MB / 0.6544 GB Notification: Performance of setup shared object (initialization): time 0.0001339/0.7512, allocations: 357.7 kB / 0.8056 GB, free: 39.25 MB / 0.6544 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003114/0.7516, allocations: 162.4 kB / 0.8057 GB, free: 39.19 MB / 0.6544 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004268/0.752, allocations: 406.6 kB / 0.8061 GB, free: 38.83 MB / 0.6544 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006085/0.7526, allocations: 0.4984 MB / 0.8066 GB, free: 38.41 MB / 0.6544 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.412e-06/0.7526, allocations: 3.5 kB / 0.8066 GB, free: 38.41 MB / 0.6544 GB Notification: Performance of matching and sorting (n=92) (initialization): time 0.0009796/0.7536, allocations: 0.5973 MB / 0.8072 GB, free: 38.15 MB / 0.6544 GB Notification: Performance of prepare postOptimizeDAE: time 2.382e-05/0.7537, allocations: 9.281 kB / 0.8072 GB, free: 38.15 MB / 0.6544 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.712e-05/0.7537, allocations: 7.781 kB / 0.8072 GB, free: 38.15 MB / 0.6544 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.22e-05/0.7537, allocations: 10.91 kB / 0.8072 GB, free: 38.15 MB / 0.6544 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003519/0.7541, allocations: 109.7 kB / 0.8073 GB, free: 38.13 MB / 0.6544 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.322e-05/0.7541, allocations: 12.58 kB / 0.8073 GB, free: 38.13 MB / 0.6544 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000324/0.7544, allocations: 77.23 kB / 0.8074 GB, free: 38.08 MB / 0.6544 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.153e-05/0.7545, allocations: 31.66 kB / 0.8074 GB, free: 38.07 MB / 0.6544 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0004696/0.755, allocations: 320.3 kB / 0.8077 GB, free: 37.9 MB / 0.6544 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0003947/0.7554, allocations: 405.5 kB / 0.8081 GB, free: 37.53 MB / 0.6544 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0005793/0.756, allocations: 0.5075 MB / 0.8086 GB, free: 37.11 MB / 0.6544 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 6.552e-06/0.756, allocations: 2.406 kB / 0.8086 GB, free: 37.11 MB / 0.6544 GB Notification: Performance of matching and sorting (n=92) (initialization_lambda0): time 0.0009334/0.7569, allocations: 0.5992 MB / 0.8092 GB, free: 36.84 MB / 0.6544 GB Notification: Performance of prepare postOptimizeDAE: time 1.531e-05/0.7569, allocations: 8.781 kB / 0.8092 GB, free: 36.84 MB / 0.6544 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.939e-06/0.757, allocations: 8.25 kB / 0.8092 GB, free: 36.84 MB / 0.6544 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.762e-05/0.757, allocations: 17.41 kB / 0.8092 GB, free: 36.84 MB / 0.6544 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003189/0.7573, allocations: 101 kB / 0.8093 GB, free: 36.82 MB / 0.6544 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.675e-05/0.7573, allocations: 13.41 kB / 0.8093 GB, free: 36.82 MB / 0.6544 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003147/0.7577, allocations: 60.19 kB / 0.8094 GB, free: 36.79 MB / 0.6544 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.264e-05/0.7577, allocations: 34.84 kB / 0.8094 GB, free: 36.78 MB / 0.6544 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,stateGraphRoot.activeSteps,toOff.enableFire,toOff.localCondition,discharge.active,discharge.oldActive,$PRE.discharge.oldActive,discharge.newActive,$PRE.discharge.newActive,discharge.localActive,$PRE.discharge.localActive,toDischarge.enableFire,toDischarge.localCondition,hold.oldActive,$PRE.hold.oldActive,hold.newActive,$PRE.hold.newActive,hold.localActive,$PRE.hold.localActive,hold.active,toHold.enableFire,toHold.localCondition,charge.active,charge.oldActive,$PRE.charge.oldActive,charge.newActive,$PRE.charge.newActive,charge.localActive,$PRE.charge.localActive,toOn.enableFire,toOn.localCondition,off.oldActive,$PRE.off.oldActive,off.newActive,$PRE.off.newActive,off.localActive,$PRE.off.localActive,off.active,bat.cha.overCharged,$PRE.bat.cha.overCharged,bat.cha.underCharged,$PRE.bat.cha.underCharged,$whenCondition1,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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.000171/0.7579, allocations: 243.5 kB / 0.8097 GB, free: 36.56 MB / 0.6544 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.387e-05/0.758, allocations: 53.3 kB / 0.8097 GB, free: 36.53 MB / 0.6544 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006982/0.7587, allocations: 394.3 kB / 0.8101 GB, free: 36.36 MB / 0.6544 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.477e-06/0.7587, allocations: 2.531 kB / 0.8101 GB, free: 36.36 MB / 0.6544 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.796e-06/0.7587, allocations: 5.594 kB / 0.8101 GB, free: 36.36 MB / 0.6544 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001436/0.7588, allocations: 152.5 kB / 0.8102 GB, free: 36.22 MB / 0.6544 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.206e-05/0.7589, allocations: 13.42 kB / 0.8103 GB, free: 36.21 MB / 0.6544 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001453/0.7591, allocations: 10.05 kB / 0.8103 GB, free: 36.21 MB / 0.6544 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000128/0.7592, allocations: 47.12 kB / 0.8103 GB, free: 36.2 MB / 0.6544 GB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.0007593/0.76, allocations: 0.5149 MB / 0.8108 GB, free: 35.89 MB / 0.6544 GB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.0008736/0.7609, allocations: 0.7671 MB / 0.8116 GB, free: 35.41 MB / 0.6544 GB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.000257/0.7611, allocations: 170.8 kB / 0.8117 GB, free: 35.35 MB / 0.6544 GB Notification: Performance of sorting global known variables: time 0.0002725/0.7614, allocations: 255.7 kB / 0.812 GB, free: 35.21 MB / 0.6544 GB Notification: Performance of Backend: time 7.71e-07/0.7614, allocations: 4.094 kB / 0.812 GB, free: 35.21 MB / 0.6544 GB Notification: Performance of simCode: created initialization part: time 0.00173/0.7631, allocations: 0.7648 MB / 0.8127 GB, free: 34.93 MB / 0.6544 GB Notification: Performance of SimCode: time 0.001754/0.7649, allocations: 1.41 MB / 0.8141 GB, free: 33.96 MB / 0.6544 GB Notification: Performance of Templates: time 0.01733/0.7823, allocations: 8.041 MB / 0.822 GB, free: 33.52 MB / 0.6544 GB make -j1 -f Buildings_8_Buildings.Electrical.DC.Storage.Examples.Battery.makefile (rm -f Buildings_8_Buildings.Electrical.DC.Storage.Examples.Battery.pipe ; mkfifo Buildings_8_Buildings.Electrical.DC.Storage.Examples.Battery.pipe ; head -c 1048576 < Buildings_8_Buildings.Electrical.DC.Storage.Examples.Battery.pipe >> ../files/Buildings_8_Buildings.Electrical.DC.Storage.Examples.Battery.sim & ./Buildings_8_Buildings.Electrical.DC.Storage.Examples.Battery -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_8_Buildings.Electrical.DC.Storage.Examples.Battery.pipe 2>&1)