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.545/2.545, allocations: 390.5 MB / 398 MB, free: 10.92 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.001042/0.001042, allocations: 180.8 kB / 491.2 MB, free: 1.555 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.542/1.542, allocations: 221.5 MB / 0.7868 GB, free: 13.27 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.0009678/0.0009676, allocations: 99.58 kB / 0.9269 GB, free: 13.76 MB / 0.698 GB Notification: Performance of FrontEnd - loaded program: time 1.878e-05/1.879e-05, allocations: 4 kB / 1.073 GB, free: 182.1 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3646/0.3647, allocations: 143 MB / 1.212 GB, free: 39.54 MB / 0.7605 GB Notification: Performance of FrontEnd - scodeFlatten: time 1.197/1.562, allocations: 169.7 MB / 1.378 GB, free: 17.47 MB / 0.823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003954/1.563, allocations: 94.16 kB / 1.378 GB, free: 17.47 MB / 0.823 GB Notification: Performance of FrontEnd - DAE generated: time 0.1183/1.681, allocations: 31.47 MB / 1.409 GB, free: 18.17 MB / 0.8386 GB Notification: Performance of FrontEnd: time 1.913e-06/1.681, allocations: 0 / 1.409 GB, free: 18.17 MB / 0.8386 GB Notification: Performance of Transformations before backend: time 3.422e-05/1.681, allocations: 12 kB / 1.409 GB, free: 18.16 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.001379/1.683, allocations: 0.8311 MB / 1.41 GB, free: 17.32 MB / 0.8386 GB Notification: Performance of prepare preOptimizeDAE: time 4.213e-05/1.683, allocations: 8.031 kB / 1.41 GB, free: 17.31 MB / 0.8386 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008143/1.683, allocations: 159 kB / 1.41 GB, free: 17.15 MB / 0.8386 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005467/1.684, allocations: 443.2 kB / 1.41 GB, free: 16.75 MB / 0.8386 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.023e-05/1.684, allocations: 16 kB / 1.41 GB, free: 16.74 MB / 0.8386 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.445e-05/1.684, allocations: 35.94 kB / 1.41 GB, free: 16.7 MB / 0.8386 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0006254/1.685, allocations: 450.2 kB / 1.411 GB, free: 16.42 MB / 0.8386 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007507/1.685, allocations: 0.5867 MB / 1.411 GB, free: 15.96 MB / 0.8386 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.65e-05/1.686, allocations: 8 kB / 1.411 GB, free: 15.96 MB / 0.8386 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.924e-05/1.686, allocations: 3.953 kB / 1.411 GB, free: 15.95 MB / 0.8386 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.445e-05/1.686, allocations: 49.09 kB / 1.411 GB, free: 15.91 MB / 0.8386 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003238/1.689, allocations: 2.728 MB / 1.414 GB, free: 13.4 MB / 0.8386 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0007746/1.69, allocations: 0.5228 MB / 1.415 GB, free: 13.03 MB / 0.8386 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003036/1.69, allocations: 229 kB / 1.415 GB, free: 12.89 MB / 0.8386 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0005235/1.691, allocations: 0.5699 MB / 1.415 GB, free: 12.19 MB / 0.8386 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005744/1.691, allocations: 375 kB / 1.416 GB, free: 11.9 MB / 0.8386 GB Notification: Performance of pre-optimization done (n=49): time 3.226e-06/1.691, allocations: 0 / 1.416 GB, free: 11.9 MB / 0.8386 GB Notification: Performance of matching and sorting (n=49): time 0.000906/1.692, allocations: 0.4889 MB / 1.416 GB, free: 11.54 MB / 0.8386 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.632e-05/1.692, allocations: 93.02 kB / 1.416 GB, free: 11.43 MB / 0.8386 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003391/1.692, allocations: 301.6 kB / 1.417 GB, free: 11.2 MB / 0.8386 GB Notification: Performance of collectPreVariables (initialization): time 5.99e-05/1.692, allocations: 33.25 kB / 1.417 GB, free: 11.16 MB / 0.8386 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002041/1.693, allocations: 280 kB / 1.417 GB, free: 10.95 MB / 0.8386 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001321/1.693, allocations: 157 kB / 1.417 GB, free: 10.81 MB / 0.8386 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.863e-05/1.693, allocations: 0 / 1.417 GB, free: 10.81 MB / 0.8386 GB Notification: Performance of setup shared object (initialization): time 0.0001794/1.693, allocations: 356 kB / 1.417 GB, free: 10.47 MB / 0.8386 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000315/1.693, allocations: 209.3 kB / 1.418 GB, free: 10.35 MB / 0.8386 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003901/1.694, allocations: 335.5 kB / 1.418 GB, free: 10.08 MB / 0.8386 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003954/1.694, allocations: 232.2 kB / 1.418 GB, free: 9.934 MB / 0.8386 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.316e-06/1.694, allocations: 0 / 1.418 GB, free: 9.934 MB / 0.8386 GB Notification: Performance of matching and sorting (n=70) (initialization): time 0.0009466/1.695, allocations: 0.5978 MB / 1.419 GB, free: 9.496 MB / 0.8386 GB Notification: Performance of prepare postOptimizeDAE: time 0.0006299/1.696, allocations: 1.071 MB / 1.42 GB, free: 8.355 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.176e-05/1.696, allocations: 4 kB / 1.42 GB, free: 8.352 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.373e-05/1.696, allocations: 4 kB / 1.42 GB, free: 8.348 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005969/1.696, allocations: 122.3 kB / 1.42 GB, free: 8.234 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.15e-05/1.696, allocations: 11.98 kB / 1.42 GB, free: 8.223 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004868/1.697, allocations: 63.53 kB / 1.42 GB, free: 8.16 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.57e-05/1.697, allocations: 19.69 kB / 1.42 GB, free: 8.145 MB / 0.8386 GB Notification: Performance of prepare postOptimizeDAE: time 8.045e-06/1.697, allocations: 4 kB / 1.42 GB, free: 8.141 MB / 0.8386 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.000794/1.698, allocations: 483.1 kB / 1.42 GB, free: 7.812 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.069e-06/1.698, allocations: 4 kB / 1.42 GB, free: 7.809 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (initialization): time 7.354e-06/1.698, allocations: 4 kB / 1.42 GB, free: 7.805 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004231/1.698, allocations: 111.4 kB / 1.421 GB, free: 7.699 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.923e-06/1.698, allocations: 7.938 kB / 1.421 GB, free: 7.691 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003781/1.699, allocations: 51.64 kB / 1.421 GB, free: 7.641 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.665e-05/1.699, allocations: 19.62 kB / 1.421 GB, free: 7.625 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.0001875/1.699, allocations: 130.4 kB / 1.421 GB, free: 7.496 MB / 0.8386 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.067e-05/1.699, allocations: 47.44 kB / 1.421 GB, free: 7.449 MB / 0.8386 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001049/1.7, allocations: 0.5274 MB / 1.421 GB, free: 7.082 MB / 0.8386 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.175e-06/1.7, allocations: 4 kB / 1.421 GB, free: 7.078 MB / 0.8386 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.323e-06/1.7, allocations: 0 / 1.421 GB, free: 7.078 MB / 0.8386 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.827e-06/1.7, allocations: 4 kB / 1.421 GB, free: 7.074 MB / 0.8386 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007153/1.701, allocations: 0.5451 MB / 1.422 GB, free: 6.641 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.457e-06/1.701, allocations: 8 kB / 1.422 GB, free: 6.633 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004916/1.701, allocations: 99.41 kB / 1.422 GB, free: 6.539 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.861e-06/1.701, allocations: 4 kB / 1.422 GB, free: 6.535 MB / 0.8386 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.204e-05/1.701, allocations: 3.625 kB / 1.422 GB, free: 6.535 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.53e-06/1.701, allocations: 4 kB / 1.422 GB, free: 6.531 MB / 0.8386 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.669e-06/1.701, allocations: 3.953 kB / 1.422 GB, free: 6.527 MB / 0.8386 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001151/1.703, allocations: 0.8363 MB / 1.423 GB, free: 5.93 MB / 0.8386 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002267/1.703, allocations: 174.3 kB / 1.423 GB, free: 5.766 MB / 0.8386 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.062e-05/1.703, allocations: 12.55 kB / 1.423 GB, free: 5.758 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000322/1.703, allocations: 31.91 kB / 1.423 GB, free: 5.727 MB / 0.8386 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001337/1.703, allocations: 50.05 kB / 1.423 GB, free: 5.688 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.696e-05/1.703, allocations: 15.88 kB / 1.423 GB, free: 5.676 MB / 0.8386 GB Notification: Performance of sorting global known variables: time 0.000262/1.704, allocations: 250.2 kB / 1.423 GB, free: 5.484 MB / 0.8386 GB Notification: Performance of sort global known variables: time 1.6e-07/1.704, allocations: 4 kB / 1.423 GB, free: 5.48 MB / 0.8386 GB Notification: Performance of remove unused functions: time 0.0008106/1.705, allocations: 254.6 kB / 1.424 GB, free: 5.234 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.0002546/1.705, allocations: 138.4 kB / 1.424 GB, free: 5.09 MB / 0.8386 GB Notification: Performance of simCode: created initialization part: time 0.001223/1.706, allocations: 0.8974 MB / 1.425 GB, free: 4.441 MB / 0.8386 GB Notification: Performance of simCode: created event and clocks part: time 2.735e-06/1.706, allocations: 192 / 1.425 GB, free: 4.441 MB / 0.8386 GB Notification: Performance of simCode: created simulation system equations: time 0.0003493/1.706, allocations: 255.3 kB / 1.425 GB, free: 4.273 MB / 0.8386 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007928/1.707, allocations: 144.1 kB / 1.425 GB, free: 4.164 MB / 0.8386 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001467/1.709, allocations: 0.7955 MB / 1.426 GB, free: 3.457 MB / 0.8386 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005414/1.709, allocations: 0.9193 MB / 1.427 GB, free: 2.527 MB / 0.8386 GB Notification: Performance of simCode: alias equations: time 0.0006354/1.71, allocations: 168.5 kB / 1.427 GB, free: 2.363 MB / 0.8386 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001487/1.71, allocations: 38.19 kB / 1.427 GB, free: 2.328 MB / 0.8386 GB Notification: Performance of SimCode: time 5.31e-07/1.71, allocations: 0 / 1.427 GB, free: 2.328 MB / 0.8386 GB Notification: Performance of Templates: time 0.01451/1.725, allocations: 7.974 MB / 1.435 GB, free: 10.46 MB / 0.8542 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