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 2.927/2.927, allocations: 287.3 MB / 302.3 MB, free: 8.289 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.001526/0.001526, allocations: 178.8 kB / 370.8 MB, free: 10.84 MB / 298.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.141/2.141, allocations: 205.4 MB / 0.6295 GB, free: 10.59 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.001176/0.001175, allocations: 92.19 kB / 0.7428 GB, free: 6.602 MB / 0.5573 GB Notification: Performance of FrontEnd - loaded program: time 0.0006483/0.0006482, allocations: 10.52 kB / 0.8656 GB, free: 140.7 MB / 0.6198 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2606/0.2613, allocations: 115.3 MB / 0.9782 GB, free: 28.39 MB / 0.6198 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.DC.Storage.Examples.Battery): time 0.005747/0.2671, allocations: 3.653 MB / 0.9817 GB, free: 24.71 MB / 0.6198 GB Notification: Performance of NFInst.instExpressions: time 0.0043/0.2714, allocations: 1.914 MB / 0.9836 GB, free: 22.79 MB / 0.6198 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005577/0.2721, allocations: 15.94 kB / 0.9836 GB, free: 22.77 MB / 0.6198 GB Notification: Performance of NFTyping.typeComponents: time 0.0003005/0.2724, allocations: 75.36 kB / 0.9837 GB, free: 22.7 MB / 0.6198 GB Notification: Performance of NFTyping.typeBindings: time 0.0007745/0.2732, allocations: 163.4 kB / 0.9839 GB, free: 22.54 MB / 0.6198 GB Notification: Performance of NFTyping.typeClassSections: time 0.001411/0.2746, allocations: 333.1 kB / 0.9842 GB, free: 22.21 MB / 0.6198 GB Notification: Performance of NFFlatten.flatten: time 0.001242/0.2759, allocations: 0.5428 MB / 0.9847 GB, free: 21.67 MB / 0.6198 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001235/0.2771, allocations: 0.7839 MB / 0.9855 GB, free: 20.84 MB / 0.6198 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0003633/0.2775, allocations: 239 kB / 0.9857 GB, free: 20.61 MB / 0.6198 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0004468/0.278, allocations: 266.8 kB / 0.986 GB, free: 20.35 MB / 0.6198 GB Notification: Performance of NFPackage.collectConstants: time 8.317e-05/0.2781, allocations: 32 kB / 0.986 GB, free: 20.32 MB / 0.6198 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0003166/0.2784, allocations: 87.89 kB / 0.9861 GB, free: 20.23 MB / 0.6198 GB Notification: Performance of NFScalarize.scalarize: time 0.0001657/0.2786, allocations: 155.5 kB / 0.9862 GB, free: 20.08 MB / 0.6198 GB Notification: Performance of NFVerifyModel.verify: time 0.0001539/0.2788, allocations: 145.3 kB / 0.9864 GB, free: 19.93 MB / 0.6198 GB Notification: Performance of NFConvertDAE.convert: time 0.0008354/0.2796, allocations: 0.6354 MB / 0.987 GB, free: 19.29 MB / 0.6198 GB Notification: Performance of FrontEnd - DAE generated: time 3.307e-06/0.2796, allocations: 0 / 0.987 GB, free: 19.29 MB / 0.6198 GB Notification: Performance of FrontEnd: time 1.653e-06/0.2796, allocations: 0 / 0.987 GB, free: 19.29 MB / 0.6198 GB Notification: Performance of Transformations before backend: time 1.003e-05/0.2797, allocations: 0 / 0.987 GB, free: 19.29 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.001769/0.2814, allocations: 0.8087 MB / 0.9878 GB, free: 18.44 MB / 0.6198 GB Notification: Performance of prepare preOptimizeDAE: time 4.304e-05/0.2815, allocations: 12.02 kB / 0.9878 GB, free: 18.43 MB / 0.6198 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007449/0.2822, allocations: 123 kB / 0.9879 GB, free: 18.3 MB / 0.6198 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007551/0.283, allocations: 423.7 kB / 0.9883 GB, free: 17.86 MB / 0.6198 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.479e-05/0.2831, allocations: 62 kB / 0.9884 GB, free: 17.79 MB / 0.6198 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001396/0.2833, allocations: 76 kB / 0.9884 GB, free: 17.72 MB / 0.6198 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001778/0.2851, allocations: 0.8652 MB / 0.9893 GB, free: 16.79 MB / 0.6198 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.225e-05/0.2851, allocations: 3.938 kB / 0.9893 GB, free: 16.79 MB / 0.6198 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.711e-05/0.2852, allocations: 39.94 kB / 0.9893 GB, free: 16.75 MB / 0.6198 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.62e-05/0.2853, allocations: 45.98 kB / 0.9894 GB, free: 16.7 MB / 0.6198 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001403/0.2867, allocations: 0.5581 MB / 0.9899 GB, free: 16.14 MB / 0.6198 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004948/0.2917, allocations: 3.728 MB / 0.9935 GB, free: 12.2 MB / 0.6198 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0008257/0.2926, allocations: 305.6 kB / 0.9938 GB, free: 11.89 MB / 0.6198 GB Notification: Performance of preOpt evalFunc (simulation): time 4.763e-05/0.2927, allocations: 16.39 kB / 0.9939 GB, free: 11.88 MB / 0.6198 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005208/0.2932, allocations: 217.3 kB / 0.9941 GB, free: 11.66 MB / 0.6198 GB Notification: Performance of pre-optimization done (n=47): time 3.797e-06/0.2932, allocations: 0 / 0.9941 GB, free: 11.66 MB / 0.6198 GB Notification: Performance of matching and sorting (n=47): time 0.001197/0.2944, allocations: 458.5 kB / 0.9945 GB, free: 11.2 MB / 0.6198 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.211e-05/0.2945, allocations: 59.84 kB / 0.9946 GB, free: 11.13 MB / 0.6198 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005359/0.295, allocations: 421.1 kB / 0.995 GB, free: 10.71 MB / 0.6198 GB Notification: Performance of collectPreVariables (initialization): time 7.178e-05/0.2951, allocations: 53.62 kB / 0.995 GB, free: 10.66 MB / 0.6198 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002369/0.2954, allocations: 335.6 kB / 0.9953 GB, free: 10.32 MB / 0.6198 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001239/0.2955, allocations: 130.2 kB / 0.9955 GB, free: 10.2 MB / 0.6198 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.928e-05/0.2956, allocations: 19.94 kB / 0.9955 GB, free: 10.18 MB / 0.6198 GB Notification: Performance of setup shared object (initialization): time 0.000103/0.2957, allocations: 358.8 kB / 0.9958 GB, free: 9.816 MB / 0.6198 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004097/0.2961, allocations: 157.9 kB / 0.996 GB, free: 9.66 MB / 0.6198 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005415/0.2967, allocations: 391.6 kB / 0.9963 GB, free: 9.18 MB / 0.6198 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004765/0.2972, allocations: 186.1 kB / 0.9965 GB, free: 8.996 MB / 0.6198 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.006e-06/0.2972, allocations: 7.953 kB / 0.9965 GB, free: 8.988 MB / 0.6198 GB Notification: Performance of matching and sorting (n=92) (initialization): time 0.001322/0.2985, allocations: 0.5886 MB / 0.9971 GB, free: 8.398 MB / 0.6198 GB Notification: Performance of prepare postOptimizeDAE: time 0.0005875/0.2992, allocations: 2.7 MB / 0.9997 GB, free: 5.48 MB / 0.6198 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.827e-05/0.2992, allocations: 8 kB / 0.9997 GB, free: 5.473 MB / 0.6198 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.708e-05/0.2992, allocations: 12 kB / 0.9998 GB, free: 5.461 MB / 0.6198 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006771/0.2999, allocations: 99.75 kB / 0.9999 GB, free: 5.363 MB / 0.6198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.322e-05/0.3, allocations: 19.92 kB / 0.9999 GB, free: 5.344 MB / 0.6198 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005737/0.3006, allocations: 87.08 kB / 1 GB, free: 5.258 MB / 0.6198 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.982e-05/0.3006, allocations: 43.92 kB / 1 GB, free: 5.215 MB / 0.6198 GB Notification: Performance of prepare postOptimizeDAE: time 1.184e-05/0.3007, allocations: 4 kB / 1 GB, free: 5.211 MB / 0.6198 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001181/0.3019, allocations: 0.5126 MB / 1 GB, free: 4.703 MB / 0.6198 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.04e-05/0.3019, allocations: 8 kB / 1.001 GB, free: 4.695 MB / 0.6198 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.586e-05/0.3019, allocations: 12 kB / 1.001 GB, free: 4.684 MB / 0.6198 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005721/0.3025, allocations: 107.8 kB / 1.001 GB, free: 4.578 MB / 0.6198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.617e-05/0.3025, allocations: 12.56 kB / 1.001 GB, free: 4.566 MB / 0.6198 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005199/0.3031, allocations: 75.36 kB / 1.001 GB, free: 4.492 MB / 0.6198 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.97e-05/0.3031, allocations: 28 kB / 1.001 GB, free: 4.465 MB / 0.6198 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 31 * 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.0004443/0.3036, allocations: 328.8 kB / 1.001 GB, free: 4.133 MB / 0.6198 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.026e-05/0.3037, allocations: 47.39 kB / 1.001 GB, free: 4.086 MB / 0.6198 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009534/0.3047, allocations: 397.4 kB / 1.001 GB, free: 3.691 MB / 0.6198 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.436e-06/0.3047, allocations: 11.94 kB / 1.001 GB, free: 3.68 MB / 0.6198 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.452e-06/0.3047, allocations: 4 kB / 1.001 GB, free: 3.676 MB / 0.6198 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.959e-06/0.3048, allocations: 4 kB / 1.001 GB, free: 3.672 MB / 0.6198 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00205/0.3068, allocations: 1.059 MB / 1.003 GB, free: 2.547 MB / 0.6198 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.62e-06/0.3069, allocations: 0 / 1.003 GB, free: 2.547 MB / 0.6198 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004014/0.3073, allocations: 51.84 kB / 1.003 GB, free: 2.496 MB / 0.6198 GB Notification: Performance of postOpt tearingSystem (simulation): time 9.107e-06/0.3073, allocations: 8.062 kB / 1.003 GB, free: 2.488 MB / 0.6198 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.842e-05/0.3073, allocations: 12 kB / 1.003 GB, free: 2.477 MB / 0.6198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.613e-06/0.3074, allocations: 4 kB / 1.003 GB, free: 2.473 MB / 0.6198 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.805e-06/0.3074, allocations: 0 / 1.003 GB, free: 2.473 MB / 0.6198 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001244/0.3086, allocations: 0.6603 MB / 1.003 GB, free: 1.781 MB / 0.6198 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002419/0.3089, allocations: 156.4 kB / 1.003 GB, free: 1.609 MB / 0.6198 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.291e-05/0.309, allocations: 12 kB / 1.003 GB, free: 1.598 MB / 0.6198 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003242/0.3093, allocations: 15.94 kB / 1.003 GB, free: 1.582 MB / 0.6198 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001683/0.3095, allocations: 48.31 kB / 1.003 GB, free: 1.535 MB / 0.6198 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.573e-05/0.3096, allocations: 19.98 kB / 1.003 GB, free: 1.516 MB / 0.6198 GB Notification: Performance of sorting global known variables: time 0.0003398/0.3099, allocations: 255.2 kB / 1.004 GB, free: 1.266 MB / 0.6198 GB Notification: Performance of sort global known variables: time 5.11e-07/0.3099, allocations: 3.938 kB / 1.004 GB, free: 1.262 MB / 0.6198 GB Notification: Performance of remove unused functions: time 0.001159/0.3111, allocations: 278.9 kB / 1.004 GB, free: 0.9883 MB / 0.6198 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * 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 (51): * Single equations (assignments): 47 * 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.0002213/0.3113, allocations: 125.4 kB / 1.004 GB, free: 0.8516 MB / 0.6198 GB Notification: Performance of simCode: created initialization part: time 0.001752/0.3131, allocations: 0.7187 MB / 1.005 GB, free: 140 kB / 0.6198 GB Notification: Performance of simCode: created event and clocks part: time 5.37e-06/0.3132, allocations: 3.938 kB / 1.005 GB, free: 136 kB / 0.6198 GB Notification: Performance of simCode: created simulation system equations: time 0.0004829/0.3136, allocations: 186.4 kB / 1.005 GB, free: 15.95 MB / 0.6355 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008672/0.3145, allocations: 93.67 kB / 1.005 GB, free: 15.86 MB / 0.6355 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002811/0.3174, allocations: 1.184 MB / 1.006 GB, free: 14.65 MB / 0.6355 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007537/0.3182, allocations: 0.9189 MB / 1.007 GB, free: 13.7 MB / 0.6355 GB Notification: Performance of simCode: alias equations: time 0.0007762/0.319, allocations: 116.7 kB / 1.007 GB, free: 13.59 MB / 0.6355 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002177/0.3192, allocations: 47.42 kB / 1.007 GB, free: 13.54 MB / 0.6355 GB Notification: Performance of SimCode: time 1.333e-06/0.3192, allocations: 0 / 1.007 GB, free: 13.54 MB / 0.6355 GB Notification: Performance of Templates: time 0.0189/0.3381, allocations: 5.332 MB / 1.013 GB, free: 8.258 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)