Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_Buildings.Electrical.AC.ThreePhasesBalanced.Storage.Examples.AcBattery.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 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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.AC.ThreePhasesBalanced.Storage.Examples.AcBattery,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|bat_loss_acdc.SOC|bat_ideal.SOC|bat.SOC",fileNamePrefix="Buildings_10_Buildings.Electrical.AC.ThreePhasesBalanced.Storage.Examples.AcBattery") translateModel(Buildings.Electrical.AC.ThreePhasesBalanced.Storage.Examples.AcBattery,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|bat_loss_acdc.SOC|bat_ideal.SOC|bat.SOC",fileNamePrefix="Buildings_10_Buildings.Electrical.AC.ThreePhasesBalanced.Storage.Examples.AcBattery") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00155/0.001551, allocations: 115.2 kB / 16.42 MB, free: 6.508 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.001721/0.001721, allocations: 183.9 kB / 17.34 MB, free: 5.758 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.433/1.433, allocations: 222.9 MB / 241.1 MB, free: 15.2 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/package.mo): time 2.554/2.554, allocations: 437.1 MB / 0.7112 GB, free: 4.359 MB / 0.5762 GB Notification: Performance of FrontEnd - loaded program: time 0.001692/0.001692, allocations: 68.12 kB / 1.019 GB, free: 9.414 MB / 0.795 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.9319/0.9336, allocations: 151.6 MB / 1.167 GB, free: 3.875 MB / 0.8887 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.ThreePhasesBalanced.Storage.Examples.AcBattery): time 0.008087/0.9417, allocations: 6.058 MB / 1.173 GB, free: 13.79 MB / 0.9044 GB Notification: Performance of NFInst.instExpressions: time 0.00369/0.9454, allocations: 2.17 MB / 1.175 GB, free: 11.61 MB / 0.9044 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.000403/0.9459, allocations: 15.94 kB / 1.175 GB, free: 11.59 MB / 0.9044 GB Notification: Performance of NFTyping.typeComponents: time 0.001288/0.9472, allocations: 423.8 kB / 1.176 GB, free: 11.18 MB / 0.9044 GB Notification: Performance of NFTyping.typeBindings: time 0.0009167/0.9481, allocations: 350.1 kB / 1.176 GB, free: 10.84 MB / 0.9044 GB Notification: Performance of NFTyping.typeClassSections: time 0.001066/0.9492, allocations: 416.8 kB / 1.176 GB, free: 10.43 MB / 0.9044 GB Notification: Performance of NFFlatten.flatten: time 0.001019/0.9502, allocations: 0.8293 MB / 1.177 GB, free: 9.598 MB / 0.9044 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0008164/0.9511, allocations: 0.571 MB / 1.178 GB, free: 9.02 MB / 0.9044 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0004544/0.9515, allocations: 326.8 kB / 1.178 GB, free: 8.699 MB / 0.9044 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0006135/0.9521, allocations: 370.5 kB / 1.179 GB, free: 8.336 MB / 0.9044 GB Notification: Performance of NFPackage.collectConstants: time 0.0001242/0.9523, allocations: 68 kB / 1.179 GB, free: 8.27 MB / 0.9044 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0005614/0.9529, allocations: 327.5 kB / 1.179 GB, free: 7.949 MB / 0.9044 GB Notification: Performance of NFScalarize.scalarize: time 0.0001979/0.9531, allocations: 203.4 kB / 1.179 GB, free: 7.75 MB / 0.9044 GB Notification: Performance of NFVerifyModel.verify: time 0.000349/0.9534, allocations: 334.3 kB / 1.179 GB, free: 7.422 MB / 0.9044 GB Notification: Performance of NFConvertDAE.convert: time 0.001094/0.9545, allocations: 1.005 MB / 1.18 GB, free: 6.418 MB / 0.9044 GB Notification: Performance of FrontEnd - DAE generated: time 3.977e-06/0.9545, allocations: 4 kB / 1.18 GB, free: 6.414 MB / 0.9044 GB Notification: Performance of FrontEnd: time 1.773e-06/0.9546, allocations: 0 / 1.18 GB, free: 6.414 MB / 0.9044 GB Notification: Performance of Transformations before backend: time 2.392e-05/0.9546, allocations: 0 / 1.18 GB, free: 6.414 MB / 0.9044 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 127 * Number of variables: 127 Notification: Performance of Generate backend data structure: time 0.002059/0.9566, allocations: 0.9875 MB / 1.181 GB, free: 5.367 MB / 0.9044 GB Notification: Performance of prepare preOptimizeDAE: time 3.986e-05/0.9567, allocations: 8.625 kB / 1.181 GB, free: 5.359 MB / 0.9044 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000735/0.9574, allocations: 132.4 kB / 1.181 GB, free: 5.23 MB / 0.9044 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006932/0.9581, allocations: 459.1 kB / 1.182 GB, free: 4.742 MB / 0.9044 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.253e-05/0.9582, allocations: 37.38 kB / 1.182 GB, free: 4.707 MB / 0.9044 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.488e-05/0.9583, allocations: 48.38 kB / 1.182 GB, free: 4.66 MB / 0.9044 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001196/0.9595, allocations: 0.6968 MB / 1.183 GB, free: 3.934 MB / 0.9044 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.601e-05/0.9595, allocations: 0 / 1.183 GB, free: 3.934 MB / 0.9044 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.062e-05/0.9596, allocations: 23.98 kB / 1.183 GB, free: 3.91 MB / 0.9044 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.93e-05/0.9597, allocations: 56.97 kB / 1.183 GB, free: 3.855 MB / 0.9044 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001103/0.9608, allocations: 0.5659 MB / 1.183 GB, free: 3.289 MB / 0.9044 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003663/0.9645, allocations: 2.897 MB / 1.186 GB, free: 148 kB / 0.9044 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001114/0.9656, allocations: 0.5519 MB / 1.187 GB, free: 15.57 MB / 0.92 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004619/0.9661, allocations: 253.6 kB / 1.187 GB, free: 15.32 MB / 0.92 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0005544/0.9667, allocations: 0.5701 MB / 1.187 GB, free: 14.62 MB / 0.92 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007308/0.9674, allocations: 400.2 kB / 1.188 GB, free: 14.21 MB / 0.92 GB Notification: Performance of pre-optimization done (n=46): time 3.056e-06/0.9674, allocations: 0 / 1.188 GB, free: 14.21 MB / 0.92 GB Notification: Performance of matching and sorting (n=46): time 0.001557/0.969, allocations: 0.7279 MB / 1.189 GB, free: 13.47 MB / 0.92 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.738e-05/0.9691, allocations: 85.09 kB / 1.189 GB, free: 13.37 MB / 0.92 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004168/0.9695, allocations: 369.8 kB / 1.189 GB, free: 13 MB / 0.92 GB Notification: Performance of collectPreVariables (initialization): time 6.904e-05/0.9696, allocations: 45.7 kB / 1.189 GB, free: 12.95 MB / 0.92 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002089/0.9698, allocations: 296.9 kB / 1.189 GB, free: 12.65 MB / 0.92 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001227/0.9699, allocations: 146.8 kB / 1.189 GB, free: 12.51 MB / 0.92 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001839/0.9701, allocations: 110.2 kB / 1.19 GB, free: 12.39 MB / 0.92 GB Notification: Performance of setup shared object (initialization): time 0.0001584/0.9703, allocations: 354.9 kB / 1.19 GB, free: 12.04 MB / 0.92 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000463/0.9707, allocations: 242.9 kB / 1.19 GB, free: 11.8 MB / 0.92 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005485/0.9713, allocations: 362.6 kB / 1.191 GB, free: 11.4 MB / 0.92 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009324/0.9722, allocations: 0.5781 MB / 1.191 GB, free: 10.78 MB / 0.92 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.987e-06/0.9723, allocations: 0 / 1.191 GB, free: 10.78 MB / 0.92 GB Notification: Performance of matching and sorting (n=67) (initialization): time 0.001321/0.9736, allocations: 0.6871 MB / 1.192 GB, free: 10.08 MB / 0.92 GB Notification: Performance of prepare postOptimizeDAE: time 4.14e-05/0.9736, allocations: 36.3 kB / 1.192 GB, free: 10.04 MB / 0.92 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.658e-06/0.9737, allocations: 8 kB / 1.192 GB, free: 10.03 MB / 0.92 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.086e-05/0.9737, allocations: 4 kB / 1.192 GB, free: 10.03 MB / 0.92 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005342/0.9742, allocations: 107.8 kB / 1.192 GB, free: 9.922 MB / 0.92 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.204e-05/0.9743, allocations: 4 kB / 1.192 GB, free: 9.918 MB / 0.92 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005507/0.9748, allocations: 71.67 kB / 1.192 GB, free: 9.848 MB / 0.92 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.154e-05/0.9749, allocations: 20 kB / 1.192 GB, free: 9.828 MB / 0.92 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0006586/0.9755, allocations: 373 kB / 1.192 GB, free: 9.461 MB / 0.92 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0005399/0.9761, allocations: 331.2 kB / 1.193 GB, free: 9.09 MB / 0.92 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0008938/0.977, allocations: 0.5249 MB / 1.193 GB, free: 8.523 MB / 0.92 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 4.559e-06/0.977, allocations: 0 / 1.193 GB, free: 8.523 MB / 0.92 GB Notification: Performance of matching and sorting (n=67) (initialization_lambda0): time 0.001441/0.9785, allocations: 0.6284 MB / 1.194 GB, free: 7.883 MB / 0.92 GB Notification: Performance of prepare postOptimizeDAE: time 4.279e-05/0.9785, allocations: 33.7 kB / 1.194 GB, free: 7.844 MB / 0.92 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.621e-06/0.9785, allocations: 0 / 1.194 GB, free: 7.844 MB / 0.92 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.324e-05/0.9785, allocations: 8 kB / 1.194 GB, free: 7.836 MB / 0.92 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004162/0.979, allocations: 103.8 kB / 1.194 GB, free: 7.734 MB / 0.92 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.148e-06/0.979, allocations: 4 kB / 1.194 GB, free: 7.73 MB / 0.92 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005485/0.9795, allocations: 71.62 kB / 1.194 GB, free: 7.66 MB / 0.92 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.689e-05/0.9796, allocations: 19.94 kB / 1.194 GB, free: 7.641 MB / 0.92 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 12 * Number of states: 0 () * Number of discrete variables: 20 (bat_ideal.cha.overCharged,$PRE.bat_ideal.cha.overCharged,bat_ideal.cha.underCharged,$PRE.bat_ideal.cha.underCharged,$whenCondition2,bat_loss_acdc.cha.overCharged,$PRE.bat_loss_acdc.cha.overCharged,bat_loss_acdc.cha.underCharged,$PRE.bat_loss_acdc.cha.underCharged,$whenCondition3,bat.cha.overCharged,$PRE.bat.cha.overCharged,bat.cha.underCharged,$PRE.bat.cha.underCharged,$whenCondition4,pow.count,$PRE.pow.count,pow.T_start,$PRE.pow.T_start,$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (66): * Single equations (assignments): 65 * Array equations: 0 * Algorithm blocks: 1 * 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.0002698/0.9799, allocations: 226.4 kB / 1.194 GB, free: 7.414 MB / 0.92 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001292/0.98, allocations: 51.66 kB / 1.194 GB, free: 7.363 MB / 0.92 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001263/0.9813, allocations: 0.5801 MB / 1.195 GB, free: 6.777 MB / 0.92 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.064e-05/0.9813, allocations: 4.078 kB / 1.195 GB, free: 6.773 MB / 0.92 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.869e-06/0.9813, allocations: 4 kB / 1.195 GB, free: 6.77 MB / 0.92 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002738/0.9816, allocations: 184.6 kB / 1.195 GB, free: 6.57 MB / 0.92 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000107/0.9817, allocations: 19.94 kB / 1.195 GB, free: 6.551 MB / 0.92 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004628/0.9822, allocations: 55.91 kB / 1.195 GB, free: 6.496 MB / 0.92 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001619/0.9824, allocations: 39.95 kB / 1.195 GB, free: 6.457 MB / 0.92 GB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.001559/0.9839, allocations: 0.7376 MB / 1.196 GB, free: 5.711 MB / 0.92 GB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.001847/0.9858, allocations: 1.105 MB / 1.197 GB, free: 4.594 MB / 0.92 GB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.0004795/0.9863, allocations: 271.6 kB / 1.197 GB, free: 4.328 MB / 0.92 GB Notification: Performance of sorting global known variables: time 0.0003415/0.9866, allocations: 267.1 kB / 1.197 GB, free: 4.07 MB / 0.92 GB Notification: Performance of Backend: time 5.71e-07/0.9866, allocations: 0 / 1.197 GB, free: 4.07 MB / 0.92 GB Notification: Performance of simCode: created initialization part: time 0.002415/0.9891, allocations: 0.9598 MB / 1.198 GB, free: 3.082 MB / 0.92 GB Notification: Performance of SimCode: time 0.002428/0.9915, allocations: 1.469 MB / 1.2 GB, free: 1.574 MB / 0.92 GB Notification: Performance of Templates: time 0.02179/1.013, allocations: 12.02 MB / 1.212 GB, free: 5.652 MB / 0.9356 GB make -j1 -f Buildings_10_Buildings.Electrical.AC.ThreePhasesBalanced.Storage.Examples.AcBattery.makefile (rm -f Buildings_10_Buildings.Electrical.AC.ThreePhasesBalanced.Storage.Examples.AcBattery.pipe ; mkfifo Buildings_10_Buildings.Electrical.AC.ThreePhasesBalanced.Storage.Examples.AcBattery.pipe ; head -c 1048576 < Buildings_10_Buildings.Electrical.AC.ThreePhasesBalanced.Storage.Examples.AcBattery.pipe >> ../files/Buildings_10_Buildings.Electrical.AC.ThreePhasesBalanced.Storage.Examples.AcBattery.sim & ./Buildings_10_Buildings.Electrical.AC.ThreePhasesBalanced.Storage.Examples.AcBattery -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_10_Buildings.Electrical.AC.ThreePhasesBalanced.Storage.Examples.AcBattery.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Electrical.AC.ThreePhasesBalanced.Storage.Examples.AcBattery_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Electrical_AC_ThreePhasesBalanced_Storage_Examples_AcBattery.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Electrical.AC.ThreePhasesBalanced.Storage.Examples.AcBattery.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches