Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_7.0.0_Buildings.Electrical.DC.Storage.Examples.Battery.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.1/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 7.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.1/package.mo) Running command: translateModel(Buildings.Electrical.DC.Storage.Examples.Battery,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_7.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_7.0.0_Buildings.Electrical.DC.Storage.Examples.Battery") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.1/package.mo): time 2.387/2.387, allocations: 251.1 MB / 266.7 MB, free: 11.57 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001324/0.001324, allocations: 182.8 kB / 326.3 MB, free: 2.848 MB / 250.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.498/2.498, allocations: 205.4 MB / 0.5772 GB, free: 20.71 MB / 426.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0009341/0.0009338, allocations: 86.36 kB / 0.6817 GB, free: 13.64 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.00049/0.0004902, allocations: 12.03 kB / 0.7957 GB, free: 135.4 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.217/0.2175, allocations: 106.3 MB / 0.8995 GB, free: 65.55 MB / 0.6042 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.DC.Storage.Examples.Battery): time 0.005752/0.2233, allocations: 3.703 MB / 0.9031 GB, free: 61.83 MB / 0.6042 GB Notification: Performance of NFInst.instExpressions: time 0.004211/0.2276, allocations: 1.934 MB / 0.905 GB, free: 59.89 MB / 0.6042 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005329/0.2282, allocations: 15.94 kB / 0.905 GB, free: 59.87 MB / 0.6042 GB Notification: Performance of NFTyping.typeComponents: time 0.0003307/0.2285, allocations: 83.23 kB / 0.9051 GB, free: 59.79 MB / 0.6042 GB Notification: Performance of NFTyping.typeBindings: time 0.0006999/0.2292, allocations: 159 kB / 0.9052 GB, free: 59.63 MB / 0.6042 GB Notification: Performance of NFTyping.typeClassSections: time 0.001389/0.2306, allocations: 336.9 kB / 0.9056 GB, free: 59.3 MB / 0.6042 GB Notification: Performance of NFFlatten.flatten: time 0.001496/0.2321, allocations: 0.9165 MB / 0.9065 GB, free: 58.39 MB / 0.6042 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001298/0.2335, allocations: 0.8346 MB / 0.9073 GB, free: 57.51 MB / 0.6042 GB Notification: Performance of NFEvalConstants.evaluate: time 0.000376/0.2339, allocations: 258.9 kB / 0.9075 GB, free: 57.25 MB / 0.6042 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0005461/0.2344, allocations: 314.6 kB / 0.9078 GB, free: 56.95 MB / 0.6042 GB Notification: Performance of NFPackage.collectConstants: time 9.163e-05/0.2345, allocations: 28 kB / 0.9079 GB, free: 56.92 MB / 0.6042 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0003179/0.2349, allocations: 83.89 kB / 0.9079 GB, free: 56.84 MB / 0.6042 GB Notification: Performance of NFScalarize.scalarize: time 0.0001675/0.2351, allocations: 167.5 kB / 0.9081 GB, free: 56.67 MB / 0.6042 GB Notification: Performance of NFVerifyModel.verify: time 0.0001396/0.2352, allocations: 137.3 kB / 0.9082 GB, free: 56.53 MB / 0.6042 GB Notification: Performance of NFConvertDAE.convert: time 0.0007913/0.236, allocations: 0.6471 MB / 0.9089 GB, free: 55.88 MB / 0.6042 GB Notification: Performance of FrontEnd - DAE generated: time 5.34e-06/0.236, allocations: 0 / 0.9089 GB, free: 55.88 MB / 0.6042 GB Notification: Performance of FrontEnd: time 2.424e-06/0.236, allocations: 0 / 0.9089 GB, free: 55.88 MB / 0.6042 GB Notification: Performance of Transformations before backend: time 9.378e-06/0.2361, allocations: 0 / 0.9089 GB, free: 55.88 MB / 0.6042 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.001669/0.2377, allocations: 0.8087 MB / 0.9096 GB, free: 55.03 MB / 0.6042 GB Notification: Performance of prepare preOptimizeDAE: time 4.68e-05/0.2378, allocations: 12.03 kB / 0.9097 GB, free: 55.02 MB / 0.6042 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007331/0.2385, allocations: 116 kB / 0.9098 GB, free: 54.9 MB / 0.6042 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007319/0.2393, allocations: 421 kB / 0.9102 GB, free: 54.46 MB / 0.6042 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.415e-05/0.2394, allocations: 66.38 kB / 0.9102 GB, free: 54.39 MB / 0.6042 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000144/0.2395, allocations: 84.3 kB / 0.9103 GB, free: 54.31 MB / 0.6042 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001743/0.2413, allocations: 0.8693 MB / 0.9112 GB, free: 53.38 MB / 0.6042 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.947e-05/0.2414, allocations: 3.938 kB / 0.9112 GB, free: 53.37 MB / 0.6042 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.412e-05/0.2415, allocations: 35.98 kB / 0.9112 GB, free: 53.34 MB / 0.6042 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.423e-05/0.2416, allocations: 53.91 kB / 0.9112 GB, free: 53.28 MB / 0.6042 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001432/0.243, allocations: 0.562 MB / 0.9118 GB, free: 52.72 MB / 0.6042 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004986/0.248, allocations: 3.72 MB / 0.9154 GB, free: 48.78 MB / 0.6042 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0008384/0.2489, allocations: 305.4 kB / 0.9157 GB, free: 48.48 MB / 0.6042 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005605/0.2495, allocations: 219.1 kB / 0.9159 GB, free: 48.26 MB / 0.6042 GB Notification: Performance of preOpt evalFunc (simulation): time 4.759e-05/0.2495, allocations: 8.359 kB / 0.9159 GB, free: 48.25 MB / 0.6042 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005536/0.2501, allocations: 243.8 kB / 0.9162 GB, free: 48 MB / 0.6042 GB Notification: Performance of pre-optimization done (n=47): time 4.218e-06/0.2501, allocations: 0 / 0.9162 GB, free: 48 MB / 0.6042 GB Notification: Performance of matching and sorting (n=47): time 0.001206/0.2513, allocations: 452 kB / 0.9166 GB, free: 47.55 MB / 0.6042 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.486e-05/0.2514, allocations: 93.09 kB / 0.9167 GB, free: 47.44 MB / 0.6042 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000577/0.252, allocations: 413.1 kB / 0.9171 GB, free: 47.03 MB / 0.6042 GB Notification: Performance of collectPreVariables (initialization): time 9.5e-05/0.2521, allocations: 45.7 kB / 0.9171 GB, free: 46.98 MB / 0.6042 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002521/0.2524, allocations: 343.5 kB / 0.9175 GB, free: 46.64 MB / 0.6042 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001328/0.2525, allocations: 134.3 kB / 0.9176 GB, free: 46.5 MB / 0.6042 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.961e-05/0.2526, allocations: 15.94 kB / 0.9176 GB, free: 46.49 MB / 0.6042 GB Notification: Performance of setup shared object (initialization): time 0.0001079/0.2527, allocations: 366.9 kB / 0.9179 GB, free: 46.12 MB / 0.6042 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004159/0.2531, allocations: 145.9 kB / 0.9181 GB, free: 45.98 MB / 0.6042 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005411/0.2537, allocations: 396.4 kB / 0.9185 GB, free: 45.49 MB / 0.6042 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004908/0.2542, allocations: 186.1 kB / 0.9186 GB, free: 45.31 MB / 0.6042 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.106e-06/0.2542, allocations: 4 kB / 0.9186 GB, free: 45.3 MB / 0.6042 GB Notification: Performance of matching and sorting (n=92) (initialization): time 0.001338/0.2556, allocations: 0.5916 MB / 0.9192 GB, free: 44.7 MB / 0.6042 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001509/0.2557, allocations: 302.6 kB / 0.9195 GB, free: 44.31 MB / 0.6042 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.492e-05/0.2558, allocations: 8 kB / 0.9195 GB, free: 44.3 MB / 0.6042 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.078e-05/0.2558, allocations: 8 kB / 0.9195 GB, free: 44.29 MB / 0.6042 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006121/0.2564, allocations: 107.8 kB / 0.9196 GB, free: 44.19 MB / 0.6042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.139e-05/0.2565, allocations: 12 kB / 0.9196 GB, free: 44.18 MB / 0.6042 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005729/0.257, allocations: 79.2 kB / 0.9197 GB, free: 44.1 MB / 0.6042 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.585e-05/0.2571, allocations: 31.94 kB / 0.9197 GB, free: 44.07 MB / 0.6042 GB Notification: Performance of prepare postOptimizeDAE: time 9.378e-06/0.2571, allocations: 8 kB / 0.9198 GB, free: 44.06 MB / 0.6042 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001207/0.2584, allocations: 0.5205 MB / 0.9203 GB, free: 43.54 MB / 0.6042 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.174e-05/0.2584, allocations: 7.984 kB / 0.9203 GB, free: 43.53 MB / 0.6042 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.587e-05/0.2584, allocations: 12 kB / 0.9203 GB, free: 43.52 MB / 0.6042 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005659/0.259, allocations: 103.8 kB / 0.9204 GB, free: 43.41 MB / 0.6042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.756e-05/0.259, allocations: 15.94 kB / 0.9204 GB, free: 43.4 MB / 0.6042 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005158/0.2595, allocations: 75.83 kB / 0.9205 GB, free: 43.32 MB / 0.6042 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.95e-05/0.2596, allocations: 35.98 kB / 0.9205 GB, free: 43.29 MB / 0.6042 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.0004587/0.2601, allocations: 316.8 kB / 0.9208 GB, free: 42.97 MB / 0.6042 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.285e-05/0.2602, allocations: 43.47 kB / 0.9208 GB, free: 42.93 MB / 0.6042 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009387/0.2611, allocations: 397.1 kB / 0.9212 GB, free: 42.53 MB / 0.6042 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.1e-05/0.2612, allocations: 4 kB / 0.9212 GB, free: 42.53 MB / 0.6042 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.937e-06/0.2612, allocations: 4 kB / 0.9212 GB, free: 42.52 MB / 0.6042 GB Notification: Performance of postOpt removeConstants (simulation): time 0.000205/0.2614, allocations: 156.3 kB / 0.9214 GB, free: 42.35 MB / 0.6042 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.282e-05/0.2615, allocations: 15.98 kB / 0.9214 GB, free: 42.34 MB / 0.6042 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000272/0.2618, allocations: 12 kB / 0.9214 GB, free: 42.32 MB / 0.6042 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001618/0.262, allocations: 48.3 kB / 0.9215 GB, free: 42.28 MB / 0.6042 GB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.001074/0.263, allocations: 0.5146 MB / 0.922 GB, free: 41.75 MB / 0.6042 GB Notification: Performance of postOpt detectDAEmodeSparsePattern (simulation): time 0.001256/0.2643, allocations: 0.7623 MB / 0.9227 GB, free: 40.97 MB / 0.6042 GB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.0003502/0.2647, allocations: 163.5 kB / 0.9229 GB, free: 40.82 MB / 0.6042 GB Notification: Performance of sorting global known variables: time 0.0003378/0.2651, allocations: 255.2 kB / 0.9231 GB, free: 40.57 MB / 0.6042 GB Notification: Performance of Backend: time 6.11e-07/0.2651, allocations: 0 / 0.9231 GB, free: 40.57 MB / 0.6042 GB Notification: Performance of simCode: created initialization part: time 0.002103/0.2672, allocations: 0.7066 MB / 0.9238 GB, free: 39.86 MB / 0.6042 GB Notification: Performance of SimCode: time 0.002527/0.2697, allocations: 1.619 MB / 0.9254 GB, free: 38.18 MB / 0.6042 GB Notification: Performance of Templates: time 0.02035/0.2901, allocations: 7.242 MB / 0.9324 GB, free: 30.99 MB / 0.6042 GB make -j1 -f Buildings_7.0.0_Buildings.Electrical.DC.Storage.Examples.Battery.makefile (rm -f Buildings_7.0.0_Buildings.Electrical.DC.Storage.Examples.Battery.pipe ; mkfifo Buildings_7.0.0_Buildings.Electrical.DC.Storage.Examples.Battery.pipe ; head -c 1048576 < Buildings_7.0.0_Buildings.Electrical.DC.Storage.Examples.Battery.pipe >> ../files/Buildings_7.0.0_Buildings.Electrical.DC.Storage.Examples.Battery.sim & ./Buildings_7.0.0_Buildings.Electrical.DC.Storage.Examples.Battery -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_7.0.0_Buildings.Electrical.DC.Storage.Examples.Battery.pipe 2>&1)