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.288/2.288, allocations: 390.3 MB / 402.8 MB, free: 6.656 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.0009278/0.0009278, allocations: 180.8 kB / 496.1 MB, free: 12.84 MB / 410.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.64/1.64, allocations: 221.3 MB / 0.7915 GB, free: 5.375 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.0008426/0.0008428, allocations: 87.95 kB / 0.9317 GB, free: 5.684 MB / 0.698 GB Notification: Performance of FrontEnd - loaded program: time 3.017e-05/3.021e-05, allocations: 4 kB / 1.079 GB, free: 140.5 MB / 0.7292 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3279/0.328, allocations: 143 MB / 1.219 GB, free: 13.47 MB / 0.7448 GB Notification: Performance of FrontEnd - scodeFlatten: time 1.132/1.461, allocations: 170.4 MB / 1.385 GB, free: 1.02 MB / 0.8386 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003003/1.461, allocations: 94.06 kB / 1.385 GB, free: 0.9648 MB / 0.8386 GB Notification: Performance of FrontEnd - DAE generated: time 0.091/1.552, allocations: 31.6 MB / 1.416 GB, free: 6.254 MB / 0.8698 GB Notification: Performance of FrontEnd: time 1.473e-06/1.552, allocations: 0 / 1.416 GB, free: 6.254 MB / 0.8698 GB Notification: Performance of Transformations before backend: time 5.819e-05/1.552, allocations: 12 kB / 1.416 GB, free: 6.242 MB / 0.8698 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.00219/1.554, allocations: 0.8259 MB / 1.417 GB, free: 5.402 MB / 0.8698 GB Notification: Performance of prepare preOptimizeDAE: time 4.861e-05/1.554, allocations: 8.031 kB / 1.417 GB, free: 5.395 MB / 0.8698 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001127/1.555, allocations: 151 kB / 1.417 GB, free: 5.246 MB / 0.8698 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009528/1.556, allocations: 454.1 kB / 1.418 GB, free: 4.828 MB / 0.8698 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.224e-05/1.556, allocations: 42.61 kB / 1.418 GB, free: 4.801 MB / 0.8698 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001531/1.557, allocations: 53.3 kB / 1.418 GB, free: 4.762 MB / 0.8698 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001229/1.558, allocations: 0.6493 MB / 1.418 GB, free: 4.277 MB / 0.8698 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.713e-05/1.558, allocations: 0 / 1.418 GB, free: 4.277 MB / 0.8698 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.054e-05/1.558, allocations: 25.98 kB / 1.418 GB, free: 4.266 MB / 0.8698 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.028e-05/1.558, allocations: 48.38 kB / 1.418 GB, free: 4.227 MB / 0.8698 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009885/1.559, allocations: 0.5214 MB / 1.419 GB, free: 3.875 MB / 0.8698 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003842/1.563, allocations: 2.846 MB / 1.422 GB, free: 1.254 MB / 0.8698 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0008964/1.564, allocations: 0.54 MB / 1.422 GB, free: 0.8711 MB / 0.8698 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003629/1.564, allocations: 247 kB / 1.422 GB, free: 0.7148 MB / 0.8698 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0005016/1.565, allocations: 0.5622 MB / 1.423 GB, free: 24 kB / 0.8698 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006655/1.565, allocations: 389.5 kB / 1.423 GB, free: 15.72 MB / 0.8855 GB Notification: Performance of pre-optimization done (n=49): time 3.316e-06/1.565, allocations: 4 kB / 1.423 GB, free: 15.72 MB / 0.8855 GB Notification: Performance of matching and sorting (n=49): time 0.0009844/1.566, allocations: 0.5098 MB / 1.424 GB, free: 15.35 MB / 0.8855 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.521e-05/1.566, allocations: 81.55 kB / 1.424 GB, free: 15.25 MB / 0.8855 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004055/1.567, allocations: 326.6 kB / 1.424 GB, free: 14.99 MB / 0.8855 GB Notification: Performance of collectPreVariables (initialization): time 6.721e-05/1.567, allocations: 44.02 kB / 1.424 GB, free: 14.95 MB / 0.8855 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002106/1.567, allocations: 280.6 kB / 1.425 GB, free: 14.74 MB / 0.8855 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001455/1.567, allocations: 155.8 kB / 1.425 GB, free: 14.61 MB / 0.8855 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.098e-05/1.567, allocations: 14.31 kB / 1.425 GB, free: 14.6 MB / 0.8855 GB Notification: Performance of setup shared object (initialization): time 0.0001679/1.568, allocations: 363.9 kB / 1.425 GB, free: 14.26 MB / 0.8855 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003581/1.568, allocations: 220.2 kB / 1.425 GB, free: 14.12 MB / 0.8855 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004616/1.568, allocations: 341.8 kB / 1.426 GB, free: 13.84 MB / 0.8855 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004231/1.569, allocations: 267.5 kB / 1.426 GB, free: 13.66 MB / 0.8855 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.172e-06/1.569, allocations: 8 kB / 1.426 GB, free: 13.65 MB / 0.8855 GB Notification: Performance of matching and sorting (n=70) (initialization): time 0.001045/1.57, allocations: 0.6619 MB / 1.426 GB, free: 13.16 MB / 0.8855 GB Notification: Performance of prepare postOptimizeDAE: time 0.0004833/1.57, allocations: 1.07 MB / 1.428 GB, free: 12.02 MB / 0.8855 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.097e-05/1.57, allocations: 4 kB / 1.428 GB, free: 12.02 MB / 0.8855 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.56e-05/1.57, allocations: 8 kB / 1.428 GB, free: 12.01 MB / 0.8855 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005503/1.571, allocations: 111.6 kB / 1.428 GB, free: 11.91 MB / 0.8855 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.148e-05/1.571, allocations: 11.94 kB / 1.428 GB, free: 11.89 MB / 0.8855 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005409/1.572, allocations: 78.17 kB / 1.428 GB, free: 11.83 MB / 0.8855 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.505e-05/1.572, allocations: 19.94 kB / 1.428 GB, free: 11.81 MB / 0.8855 GB Notification: Performance of prepare postOptimizeDAE: time 1.066e-05/1.572, allocations: 4 kB / 1.428 GB, free: 11.81 MB / 0.8855 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0009079/1.573, allocations: 0.5433 MB / 1.428 GB, free: 11.27 MB / 0.8855 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.554e-06/1.573, allocations: 8.062 kB / 1.428 GB, free: 11.27 MB / 0.8855 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.335e-05/1.573, allocations: 8 kB / 1.428 GB, free: 11.26 MB / 0.8855 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004261/1.573, allocations: 107.8 kB / 1.428 GB, free: 11.15 MB / 0.8855 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.326e-05/1.573, allocations: 11.98 kB / 1.428 GB, free: 11.14 MB / 0.8855 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004512/1.574, allocations: 63.89 kB / 1.428 GB, free: 11.08 MB / 0.8855 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.03e-05/1.574, allocations: 20 kB / 1.428 GB, free: 11.06 MB / 0.8855 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.0001891/1.574, allocations: 147.1 kB / 1.429 GB, free: 10.91 MB / 0.8855 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.797e-05/1.574, allocations: 51.39 kB / 1.429 GB, free: 10.86 MB / 0.8855 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001012/1.575, allocations: 0.5596 MB / 1.429 GB, free: 10.29 MB / 0.8855 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.097e-06/1.575, allocations: 12 kB / 1.429 GB, free: 10.27 MB / 0.8855 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.142e-06/1.575, allocations: 0 / 1.429 GB, free: 10.27 MB / 0.8855 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.967e-06/1.575, allocations: 3.984 kB / 1.429 GB, free: 10.27 MB / 0.8855 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008651/1.576, allocations: 0.634 MB / 1.43 GB, free: 9.582 MB / 0.8855 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.094e-06/1.576, allocations: 0 / 1.43 GB, free: 9.582 MB / 0.8855 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005146/1.576, allocations: 95.86 kB / 1.43 GB, free: 9.488 MB / 0.8855 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.435e-05/1.576, allocations: 7.953 kB / 1.43 GB, free: 9.48 MB / 0.8855 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.234e-05/1.576, allocations: 7.984 kB / 1.43 GB, free: 9.473 MB / 0.8855 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.28e-06/1.576, allocations: 4 kB / 1.43 GB, free: 9.469 MB / 0.8855 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.833e-06/1.576, allocations: 0 / 1.43 GB, free: 9.469 MB / 0.8855 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001295/1.578, allocations: 0.8658 MB / 1.431 GB, free: 8.578 MB / 0.8855 GB Notification: Performance of postOpt removeConstants (simulation): time 0.000286/1.578, allocations: 188.4 kB / 1.431 GB, free: 8.375 MB / 0.8855 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.194e-05/1.578, allocations: 12 kB / 1.431 GB, free: 8.363 MB / 0.8855 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003567/1.579, allocations: 39.95 kB / 1.431 GB, free: 8.324 MB / 0.8855 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001457/1.579, allocations: 52.36 kB / 1.431 GB, free: 8.27 MB / 0.8855 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.659e-05/1.579, allocations: 12 kB / 1.431 GB, free: 8.258 MB / 0.8855 GB Notification: Performance of sorting global known variables: time 0.000298/1.579, allocations: 257.2 kB / 1.431 GB, free: 8.008 MB / 0.8855 GB Notification: Performance of sort global known variables: time 3.21e-07/1.579, allocations: 3.938 kB / 1.431 GB, free: 8.004 MB / 0.8855 GB Notification: Performance of remove unused functions: time 0.0008496/1.58, allocations: 287 kB / 1.432 GB, free: 7.723 MB / 0.8855 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.0003093/1.58, allocations: 152.9 kB / 1.432 GB, free: 7.566 MB / 0.8855 GB Notification: Performance of simCode: created initialization part: time 0.001508/1.582, allocations: 0.9413 MB / 1.433 GB, free: 6.602 MB / 0.8855 GB Notification: Performance of simCode: created event and clocks part: time 5.701e-06/1.582, allocations: 4 kB / 1.433 GB, free: 6.598 MB / 0.8855 GB Notification: Performance of simCode: created simulation system equations: time 0.000419/1.582, allocations: 262.4 kB / 1.433 GB, free: 6.34 MB / 0.8855 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007782/1.583, allocations: 159.4 kB / 1.433 GB, free: 6.188 MB / 0.8855 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001745/1.585, allocations: 0.8091 MB / 1.434 GB, free: 5.352 MB / 0.8855 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005533/1.585, allocations: 0.919 MB / 1.435 GB, free: 4.406 MB / 0.8855 GB Notification: Performance of simCode: alias equations: time 0.0006782/1.586, allocations: 160.4 kB / 1.435 GB, free: 4.246 MB / 0.8855 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001593/1.586, allocations: 39.42 kB / 1.435 GB, free: 4.207 MB / 0.8855 GB Notification: Performance of SimCode: time 4.41e-07/1.586, allocations: 0 / 1.435 GB, free: 4.207 MB / 0.8855 GB Notification: Performance of Templates: time 0.01725/1.603, allocations: 8.354 MB / 1.443 GB, free: 11.95 MB / 0.9011 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