Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_9_Buildings.Electrical.AC.ThreePhasesBalanced.Storage.Examples.AcBattery.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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 Buildings with version 9.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/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_9_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_9_Buildings.Electrical.AC.ThreePhasesBalanced.Storage.Examples.AcBattery") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/package.mo): time 2.277/2.277, allocations: 387.4 MB / 394.9 MB, free: 13.41 MB / 314.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001223/0.001223, allocations: 184.6 kB / 487.4 MB, free: 5.039 MB / 394.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.578/1.578, allocations: 221.5 MB / 0.7824 GB, free: 1.016 MB / 0.5417 GB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009325/0.0009328, allocations: 95.83 kB / 0.9219 GB, free: 2.246 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 1.886e-05/1.889e-05, allocations: 4 kB / 1.067 GB, free: 185.7 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2865/0.2866, allocations: 142.4 MB / 1.206 GB, free: 43.95 MB / 0.7605 GB Notification: Performance of FrontEnd - scodeFlatten: time 1.029/1.316, allocations: 169 MB / 1.371 GB, free: 18.35 MB / 0.823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002385/1.316, allocations: 89.91 kB / 1.371 GB, free: 18.35 MB / 0.823 GB Notification: Performance of FrontEnd - DAE generated: time 0.07456/1.391, allocations: 31.48 MB / 1.402 GB, free: 23.43 MB / 0.8386 GB Notification: Performance of FrontEnd: time 2.795e-06/1.391, allocations: 0 / 1.402 GB, free: 23.43 MB / 0.8386 GB Notification: Performance of Transformations before backend: time 5.714e-05/1.391, allocations: 11.66 kB / 1.402 GB, free: 23.43 MB / 0.8386 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.002294/1.393, allocations: 0.819 MB / 1.403 GB, free: 22.78 MB / 0.8386 GB Notification: Performance of prepare preOptimizeDAE: time 5.31e-05/1.393, allocations: 11.67 kB / 1.403 GB, free: 22.78 MB / 0.8386 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001206/1.394, allocations: 151.3 kB / 1.403 GB, free: 22.71 MB / 0.8386 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009006/1.395, allocations: 447.6 kB / 1.403 GB, free: 22.4 MB / 0.8386 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.394e-05/1.395, allocations: 15.28 kB / 1.403 GB, free: 22.4 MB / 0.8386 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001389/1.395, allocations: 30.94 kB / 1.403 GB, free: 22.4 MB / 0.8386 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0008255/1.396, allocations: 455.5 kB / 1.404 GB, free: 22.35 MB / 0.8386 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009885/1.397, allocations: 0.5853 MB / 1.404 GB, free: 22.15 MB / 0.8386 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.867e-05/1.397, allocations: 7.781 kB / 1.404 GB, free: 22.14 MB / 0.8386 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.987e-05/1.397, allocations: 3.812 kB / 1.404 GB, free: 22.14 MB / 0.8386 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.998e-05/1.397, allocations: 46.92 kB / 1.404 GB, free: 22.13 MB / 0.8386 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003441/1.401, allocations: 2.734 MB / 1.407 GB, free: 20.1 MB / 0.8386 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0007428/1.402, allocations: 0.5237 MB / 1.407 GB, free: 19.98 MB / 0.8386 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002872/1.402, allocations: 234.1 kB / 1.408 GB, free: 19.94 MB / 0.8386 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0004169/1.402, allocations: 0.5679 MB / 1.408 GB, free: 19.27 MB / 0.8386 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005369/1.403, allocations: 364.3 kB / 1.409 GB, free: 19.03 MB / 0.8386 GB Notification: Performance of pre-optimization done (n=49): time 2.474e-06/1.403, allocations: 0 / 1.409 GB, free: 19.03 MB / 0.8386 GB Notification: Performance of matching and sorting (n=49): time 0.000966/1.404, allocations: 0.5004 MB / 1.409 GB, free: 18.65 MB / 0.8386 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.62e-05/1.404, allocations: 85.48 kB / 1.409 GB, free: 18.55 MB / 0.8386 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004066/1.404, allocations: 305 kB / 1.409 GB, free: 18.31 MB / 0.8386 GB Notification: Performance of collectPreVariables (initialization): time 7.555e-05/1.405, allocations: 36.62 kB / 1.409 GB, free: 18.27 MB / 0.8386 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002017/1.405, allocations: 282.3 kB / 1.41 GB, free: 18.06 MB / 0.8386 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001325/1.405, allocations: 146.8 kB / 1.41 GB, free: 17.93 MB / 0.8386 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.968e-05/1.405, allocations: 0 / 1.41 GB, free: 17.93 MB / 0.8386 GB Notification: Performance of setup shared object (initialization): time 0.0001776/1.405, allocations: 356.2 kB / 1.41 GB, free: 17.59 MB / 0.8386 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003039/1.405, allocations: 214 kB / 1.41 GB, free: 17.47 MB / 0.8386 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003301/1.406, allocations: 326.2 kB / 1.411 GB, free: 17.2 MB / 0.8386 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003882/1.406, allocations: 245.7 kB / 1.411 GB, free: 17.05 MB / 0.8386 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.539e-06/1.406, allocations: 0 / 1.411 GB, free: 17.05 MB / 0.8386 GB Notification: Performance of matching and sorting (n=70) (initialization): time 0.0008903/1.407, allocations: 0.5977 MB / 1.412 GB, free: 16.61 MB / 0.8386 GB Notification: Performance of prepare postOptimizeDAE: time 0.0004783/1.408, allocations: 1.076 MB / 1.413 GB, free: 15.46 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.255e-05/1.408, allocations: 0 / 1.413 GB, free: 15.46 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.847e-05/1.408, allocations: 8 kB / 1.413 GB, free: 15.46 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000535/1.408, allocations: 119.2 kB / 1.413 GB, free: 15.34 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.231e-05/1.408, allocations: 8 kB / 1.413 GB, free: 15.34 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005281/1.409, allocations: 55.62 kB / 1.413 GB, free: 15.28 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.305e-05/1.409, allocations: 23.06 kB / 1.413 GB, free: 15.27 MB / 0.8386 GB Notification: Performance of prepare postOptimizeDAE: time 1.17e-05/1.409, allocations: 4 kB / 1.413 GB, free: 15.26 MB / 0.8386 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0007203/1.41, allocations: 467.4 kB / 1.413 GB, free: 14.95 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.175e-06/1.41, allocations: 4.375 kB / 1.413 GB, free: 14.94 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.113e-05/1.41, allocations: 11.95 kB / 1.413 GB, free: 14.93 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004055/1.41, allocations: 107.6 kB / 1.413 GB, free: 14.83 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.704e-06/1.41, allocations: 8 kB / 1.413 GB, free: 14.82 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004358/1.41, allocations: 54.95 kB / 1.413 GB, free: 14.77 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.316e-05/1.41, allocations: 19.91 kB / 1.413 GB, free: 14.75 MB / 0.8386 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 ($whenCondition2,$PRE.bat_ideal.cha.underCharged,bat_ideal.cha.underCharged,$PRE.bat_ideal.cha.overCharged,bat_ideal.cha.overCharged,$whenCondition3,$PRE.bat_loss_acdc.cha.underCharged,bat_loss_acdc.cha.underCharged,$PRE.bat_loss_acdc.cha.overCharged,bat_loss_acdc.cha.overCharged,$whenCondition4,$PRE.bat.cha.underCharged,bat.cha.underCharged,$PRE.bat.cha.overCharged,bat.cha.overCharged,$whenCondition1,$PRE.pow.T_start,pow.T_start,$PRE.pow.count,pow.count) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (69): * Single equations (assignments): 68 * Array equations: 0 * Algorithm blocks: 1 * 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.0001886/1.411, allocations: 130.8 kB / 1.414 GB, free: 14.62 MB / 0.8386 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.655e-05/1.411, allocations: 47.44 kB / 1.414 GB, free: 14.58 MB / 0.8386 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008449/1.412, allocations: 0.5298 MB / 1.414 GB, free: 14.21 MB / 0.8386 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.344e-06/1.412, allocations: 15.89 kB / 1.414 GB, free: 14.2 MB / 0.8386 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.47e-06/1.412, allocations: 0 / 1.414 GB, free: 14.2 MB / 0.8386 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.572e-06/1.412, allocations: 0 / 1.414 GB, free: 14.2 MB / 0.8386 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007015/1.412, allocations: 0.5469 MB / 1.415 GB, free: 13.76 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.366e-06/1.412, allocations: 4 kB / 1.415 GB, free: 13.76 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000475/1.413, allocations: 103.4 kB / 1.415 GB, free: 13.66 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (simulation): time 7.875e-06/1.413, allocations: 0 / 1.415 GB, free: 13.66 MB / 0.8386 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.823e-05/1.413, allocations: 4 kB / 1.415 GB, free: 13.66 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.286e-06/1.413, allocations: 0 / 1.415 GB, free: 13.66 MB / 0.8386 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.725e-06/1.413, allocations: 0 / 1.415 GB, free: 13.66 MB / 0.8386 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001118/1.414, allocations: 0.8474 MB / 1.416 GB, free: 13.05 MB / 0.8386 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002747/1.414, allocations: 178.5 kB / 1.416 GB, free: 12.88 MB / 0.8386 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001004/1.414, allocations: 6.422 kB / 1.416 GB, free: 12.88 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003686/1.415, allocations: 31.95 kB / 1.416 GB, free: 12.85 MB / 0.8386 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001484/1.415, allocations: 53.12 kB / 1.416 GB, free: 12.8 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.89e-05/1.415, allocations: 13.56 kB / 1.416 GB, free: 12.8 MB / 0.8386 GB Notification: Performance of sorting global known variables: time 0.0002744/1.415, allocations: 245.7 kB / 1.416 GB, free: 12.61 MB / 0.8386 GB Notification: Performance of sort global known variables: time 1.3e-07/1.415, allocations: 0 / 1.416 GB, free: 12.61 MB / 0.8386 GB Notification: Performance of remove unused functions: time 0.0009291/1.416, allocations: 258.6 kB / 1.416 GB, free: 12.36 MB / 0.8386 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 3 (bat_ideal.cha.SOC,bat_loss_acdc.cha.SOC,bat.cha.SOC) * Number of discrete variables: 12 ($whenCondition4,$whenCondition3,$whenCondition2,$whenCondition1,bat_ideal.cha.underCharged,bat_ideal.cha.overCharged,pow.T_start,pow.count,bat_loss_acdc.cha.underCharged,bat_loss_acdc.cha.overCharged,bat.cha.underCharged,bat.cha.overCharged) * Number of discrete states: 7 (pow.count,bat_ideal.cha.underCharged,bat_ideal.cha.overCharged,bat_loss_acdc.cha.underCharged,bat_loss_acdc.cha.overCharged,bat.cha.underCharged,bat.cha.overCharged) * Top-level inputs: 0 Notification: Strong component statistics for simulation (50): * Single equations (assignments): 48 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * 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.0003378/1.417, allocations: 139.4 kB / 1.417 GB, free: 12.21 MB / 0.8386 GB Notification: Performance of simCode: created initialization part: time 0.001388/1.418, allocations: 0.8997 MB / 1.417 GB, free: 11.56 MB / 0.8386 GB Notification: Performance of simCode: created event and clocks part: time 4.949e-06/1.418, allocations: 4 kB / 1.417 GB, free: 11.56 MB / 0.8386 GB Notification: Performance of simCode: created simulation system equations: time 0.0003534/1.418, allocations: 259.1 kB / 1.418 GB, free: 11.39 MB / 0.8386 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008441/1.419, allocations: 142 kB / 1.418 GB, free: 11.28 MB / 0.8386 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001792/1.421, allocations: 0.7884 MB / 1.419 GB, free: 10.58 MB / 0.8386 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006128/1.422, allocations: 0.9145 MB / 1.419 GB, free: 9.652 MB / 0.8386 GB Notification: Performance of simCode: alias equations: time 0.0007028/1.422, allocations: 161.2 kB / 1.42 GB, free: 9.496 MB / 0.8386 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001599/1.423, allocations: 42.62 kB / 1.42 GB, free: 9.457 MB / 0.8386 GB Notification: Performance of SimCode: time 5.61e-07/1.423, allocations: 0 / 1.42 GB, free: 9.457 MB / 0.8386 GB Notification: Performance of Templates: time 0.01655/1.439, allocations: 7.984 MB / 1.427 GB, free: 1.586 MB / 0.8386 GB make -j1 -f Buildings_9_Buildings.Electrical.AC.ThreePhasesBalanced.Storage.Examples.AcBattery.makefile (rm -f Buildings_9_Buildings.Electrical.AC.ThreePhasesBalanced.Storage.Examples.AcBattery.pipe ; mkfifo Buildings_9_Buildings.Electrical.AC.ThreePhasesBalanced.Storage.Examples.AcBattery.pipe ; head -c 1048576 < Buildings_9_Buildings.Electrical.AC.ThreePhasesBalanced.Storage.Examples.AcBattery.pipe >> ../files/Buildings_9_Buildings.Electrical.AC.ThreePhasesBalanced.Storage.Examples.AcBattery.sim & ./Buildings_9_Buildings.Electrical.AC.ThreePhasesBalanced.Storage.Examples.AcBattery -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Electrical.AC.ThreePhasesBalanced.Storage.Examples.AcBattery.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Electrical.AC.ThreePhasesBalanced.Storage.Examples.AcBattery_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Electrical_AC_ThreePhasesBalanced_Storage_Examples_AcBattery.csv","../files/Buildings_9_Buildings.Electrical.AC.ThreePhasesBalanced.Storage.Examples.AcBattery.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches