Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_latest_Buildings.Electrical.AC.ThreePhasesBalanced.Storage.Examples.AcBattery.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/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 10.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/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_latest_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_latest_Buildings.Electrical.AC.ThreePhasesBalanced.Storage.Examples.AcBattery") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/package.mo): time 2.408/2.408, allocations: 393.5 MB / 408.4 MB, free: 10.88 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.001274/0.001275, allocations: 190.9 kB / 0.4902 GB, free: 2.086 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.785/1.785, allocations: 223.2 MB / 0.7992 GB, free: 14.76 MB / 0.5573 GB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001017/0.001017, allocations: 89.88 kB / 0.9396 GB, free: 1.926 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 0.000389/0.000389, allocations: 10.38 kB / 1.09 GB, free: 216.1 MB / 0.823 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3713/0.3717, allocations: 143 MB / 1.229 GB, free: 105.8 MB / 0.823 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.2352/0.6069, allocations: 170.5 MB / 1.396 GB, free: 15.11 MB / 0.9011 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003618/0.6074, allocations: 95.94 kB / 1.396 GB, free: 15.01 MB / 0.9011 GB Notification: Performance of FrontEnd - DAE generated: time 0.8644/1.472, allocations: 31.75 MB / 1.427 GB, free: 178.8 MB / 0.9167 GB Notification: Performance of FrontEnd: time 4.629e-06/1.472, allocations: 2.391 kB / 1.427 GB, free: 178.8 MB / 0.9167 GB Notification: Performance of Transformations before backend: time 4.574e-05/1.472, allocations: 11.06 kB / 1.427 GB, free: 178.8 MB / 0.9167 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.001965/1.474, allocations: 0.8981 MB / 1.428 GB, free: 178.3 MB / 0.9167 GB Notification: Performance of prepare preOptimizeDAE: time 5.429e-05/1.474, allocations: 8.844 kB / 1.428 GB, free: 178.3 MB / 0.9167 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008859/1.475, allocations: 150.3 kB / 1.428 GB, free: 178.2 MB / 0.9167 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007617/1.476, allocations: 450.2 kB / 1.428 GB, free: 178 MB / 0.9167 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.422e-05/1.476, allocations: 38.75 kB / 1.428 GB, free: 178 MB / 0.9167 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.873e-05/1.476, allocations: 48.53 kB / 1.428 GB, free: 178 MB / 0.9167 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001181/1.477, allocations: 0.6784 MB / 1.429 GB, free: 177.9 MB / 0.9167 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.719e-05/1.477, allocations: 0 / 1.429 GB, free: 177.9 MB / 0.9167 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.239e-05/1.477, allocations: 27.94 kB / 1.429 GB, free: 177.9 MB / 0.9167 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.713e-05/1.477, allocations: 47.56 kB / 1.429 GB, free: 177.9 MB / 0.9167 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001016/1.478, allocations: 0.5681 MB / 1.43 GB, free: 177.9 MB / 0.9167 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003754/1.482, allocations: 2.85 MB / 1.432 GB, free: 176.2 MB / 0.9167 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001252/1.483, allocations: 0.5886 MB / 1.433 GB, free: 176.1 MB / 0.9167 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0004407/1.484, allocations: 0.5678 MB / 1.434 GB, free: 175.5 MB / 0.9167 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008613/1.485, allocations: 410.9 kB / 1.434 GB, free: 175.4 MB / 0.9167 GB Notification: Performance of pre-optimization done (n=49): time 4.699e-06/1.485, allocations: 0 / 1.434 GB, free: 175.4 MB / 0.9167 GB Notification: Performance of matching and sorting (n=49): time 0.001817/1.486, allocations: 0.7722 MB / 1.435 GB, free: 175.3 MB / 0.9167 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.363e-05/1.486, allocations: 85.11 kB / 1.435 GB, free: 175.2 MB / 0.9167 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004506/1.487, allocations: 322.8 kB / 1.435 GB, free: 175.1 MB / 0.9167 GB Notification: Performance of collectPreVariables (initialization): time 6.532e-05/1.487, allocations: 43.61 kB / 1.435 GB, free: 175.1 MB / 0.9167 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002442/1.487, allocations: 283 kB / 1.435 GB, free: 175 MB / 0.9167 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001597/1.487, allocations: 162.9 kB / 1.436 GB, free: 174.9 MB / 0.9167 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.17e-05/1.487, allocations: 12.19 kB / 1.436 GB, free: 174.9 MB / 0.9167 GB Notification: Performance of setup shared object (initialization): time 0.0001388/1.488, allocations: 359.2 kB / 1.436 GB, free: 174.5 MB / 0.9167 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005042/1.488, allocations: 245.6 kB / 1.436 GB, free: 174.5 MB / 0.9167 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006275/1.489, allocations: 361.9 kB / 1.436 GB, free: 174.4 MB / 0.9167 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005738/1.489, allocations: 300.9 kB / 1.437 GB, free: 174.4 MB / 0.9167 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.444e-06/1.489, allocations: 0.6562 kB / 1.437 GB, free: 174.4 MB / 0.9167 GB Notification: Performance of matching and sorting (n=70) (initialization): time 0.001446/1.491, allocations: 0.7148 MB / 1.437 GB, free: 174.3 MB / 0.9167 GB Notification: Performance of prepare postOptimizeDAE: time 0.0003105/1.491, allocations: 1.077 MB / 1.439 GB, free: 173.1 MB / 0.9167 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.217e-05/1.491, allocations: 2.406 kB / 1.439 GB, free: 173.1 MB / 0.9167 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.059e-05/1.491, allocations: 7.781 kB / 1.439 GB, free: 173.1 MB / 0.9167 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005922/1.492, allocations: 118.1 kB / 1.439 GB, free: 173.1 MB / 0.9167 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.891e-05/1.492, allocations: 8.812 kB / 1.439 GB, free: 173.1 MB / 0.9167 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005402/1.492, allocations: 70.92 kB / 1.439 GB, free: 173.1 MB / 0.9167 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.961e-05/1.492, allocations: 24.2 kB / 1.439 GB, free: 173.1 MB / 0.9167 GB Notification: Performance of prepare postOptimizeDAE: time 1.142e-05/1.492, allocations: 3.594 kB / 1.439 GB, free: 173.1 MB / 0.9167 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.00121/1.494, allocations: 0.5835 MB / 1.439 GB, free: 173.1 MB / 0.9167 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.595e-06/1.494, allocations: 3.453 kB / 1.439 GB, free: 173.1 MB / 0.9167 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.348e-05/1.494, allocations: 9.859 kB / 1.439 GB, free: 173.1 MB / 0.9167 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004588/1.494, allocations: 106.2 kB / 1.439 GB, free: 173.1 MB / 0.9167 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.101e-05/1.494, allocations: 8.516 kB / 1.439 GB, free: 173.1 MB / 0.9167 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004312/1.495, allocations: 67.25 kB / 1.44 GB, free: 173.1 MB / 0.9167 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.748e-05/1.495, allocations: 27.36 kB / 1.44 GB, free: 173.1 MB / 0.9167 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 () * Number of clocked 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.0004239/1.495, allocations: 300 kB / 1.44 GB, free: 172.9 MB / 0.9167 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.095e-05/1.495, allocations: 44.55 kB / 1.44 GB, free: 172.9 MB / 0.9167 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001328/1.496, allocations: 0.6171 MB / 1.44 GB, free: 172.8 MB / 0.9167 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.092e-05/1.497, allocations: 5.5 kB / 1.44 GB, free: 172.8 MB / 0.9167 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.026e-05/1.497, allocations: 2 kB / 1.44 GB, free: 172.8 MB / 0.9167 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.095e-05/1.497, allocations: 2.156 kB / 1.44 GB, free: 172.8 MB / 0.9167 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001035/1.498, allocations: 0.6351 MB / 1.441 GB, free: 172.6 MB / 0.9167 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.615e-06/1.498, allocations: 1.469 kB / 1.441 GB, free: 172.6 MB / 0.9167 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005335/1.498, allocations: 95.45 kB / 1.441 GB, free: 172.6 MB / 0.9167 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.769e-06/1.498, allocations: 6.328 kB / 1.441 GB, free: 172.6 MB / 0.9167 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.344e-05/1.498, allocations: 17.88 kB / 1.441 GB, free: 172.6 MB / 0.9167 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.831e-06/1.498, allocations: 5.484 kB / 1.441 GB, free: 172.6 MB / 0.9167 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.707e-06/1.498, allocations: 0.6562 kB / 1.441 GB, free: 172.6 MB / 0.9167 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001708/1.5, allocations: 0.9299 MB / 1.442 GB, free: 172.4 MB / 0.9167 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002673/1.5, allocations: 178.6 kB / 1.442 GB, free: 172.3 MB / 0.9167 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.875e-05/1.5, allocations: 21.25 kB / 1.442 GB, free: 172.3 MB / 0.9167 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003478/1.501, allocations: 37.61 kB / 1.442 GB, free: 172.3 MB / 0.9167 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001797/1.501, allocations: 57.17 kB / 1.442 GB, free: 172.3 MB / 0.9167 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.141e-05/1.501, allocations: 16.53 kB / 1.442 GB, free: 172.3 MB / 0.9167 GB Notification: Performance of sorting global known variables: time 0.0003254/1.501, allocations: 255 kB / 1.443 GB, free: 172.2 MB / 0.9167 GB Notification: Performance of sort global known variables: time 2.4e-07/1.501, allocations: 1.094 kB / 1.443 GB, free: 172.2 MB / 0.9167 GB Notification: Performance of remove unused functions: time 0.0009489/1.502, allocations: 280.1 kB / 1.443 GB, free: 172.2 MB / 0.9167 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) * Number of clocked states: 0 () * 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.0002635/1.502, allocations: 152.5 kB / 1.443 GB, free: 172.1 MB / 0.9167 GB Notification: Performance of simCode: created initialization part: time 0.001931/1.504, allocations: 1.011 MB / 1.444 GB, free: 171.9 MB / 0.9167 GB Notification: Performance of simCode: created event and clocks part: time 5.27e-06/1.504, allocations: 0.8438 kB / 1.444 GB, free: 171.9 MB / 0.9167 GB Notification: Performance of simCode: created simulation system equations: time 0.0005691/1.505, allocations: 285.8 kB / 1.444 GB, free: 171.9 MB / 0.9167 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007924/1.506, allocations: 153 kB / 1.444 GB, free: 171.9 MB / 0.9167 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00244/1.508, allocations: 1.309 MB / 1.446 GB, free: 171.3 MB / 0.9167 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000531/1.509, allocations: 0.9104 MB / 1.447 GB, free: 170.6 MB / 0.9167 GB Notification: Performance of simCode: alias equations: time 0.0006009/1.509, allocations: 151.6 kB / 1.447 GB, free: 170.6 MB / 0.9167 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001906/1.51, allocations: 46.28 kB / 1.447 GB, free: 170.6 MB / 0.9167 GB Notification: Performance of SimCode: time 7.21e-07/1.51, allocations: 0 / 1.447 GB, free: 170.6 MB / 0.9167 GB Notification: Performance of Templates: time 0.01813/1.528, allocations: 7.761 MB / 1.454 GB, free: 170.2 MB / 0.9167 GB make -j1 -f Buildings_latest_Buildings.Electrical.AC.ThreePhasesBalanced.Storage.Examples.AcBattery.makefile (rm -f Buildings_latest_Buildings.Electrical.AC.ThreePhasesBalanced.Storage.Examples.AcBattery.pipe ; mkfifo Buildings_latest_Buildings.Electrical.AC.ThreePhasesBalanced.Storage.Examples.AcBattery.pipe ; head -c 1048576 < Buildings_latest_Buildings.Electrical.AC.ThreePhasesBalanced.Storage.Examples.AcBattery.pipe >> ../files/Buildings_latest_Buildings.Electrical.AC.ThreePhasesBalanced.Storage.Examples.AcBattery.sim & ./Buildings_latest_Buildings.Electrical.AC.ThreePhasesBalanced.Storage.Examples.AcBattery -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Electrical.AC.ThreePhasesBalanced.Storage.Examples.AcBattery.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Electrical.AC.ThreePhasesBalanced.Storage.Examples.AcBattery_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Electrical_AC_ThreePhasesBalanced_Storage_Examples_AcBattery.csv","../files/Buildings_latest_Buildings.Electrical.AC.ThreePhasesBalanced.Storage.Examples.AcBattery.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches