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: "" <> buildModelFMU(Buildings.Electrical.AC.ThreePhasesBalanced.Storage.Examples.AcBattery,fileNamePrefix="Buildings_latest_Buildings_Electrical_AC_ThreePhasesBalanced_Storage_Examples_AcBattery",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Electrical.AC.ThreePhasesBalanced.Storage.Examples.AcBattery,fileNamePrefix="Buildings_latest_Buildings_Electrical_AC_ThreePhasesBalanced_Storage_Examples_AcBattery",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/package.mo): time 2.315/2.315, allocations: 393.5 MB / 408.4 MB, free: 11.04 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.001065/0.001065, allocations: 185.8 kB / 0.4901 GB, free: 2.25 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.562/1.562, allocations: 223.1 MB / 0.7992 GB, free: 14.71 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.001026/0.001026, allocations: 100.3 kB / 0.9396 GB, free: 1.832 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 0.0003747/0.0003746, allocations: 14.31 kB / 1.09 GB, free: 216.4 MB / 0.823 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3166/0.3169, allocations: 143 MB / 1.229 GB, free: 105.6 MB / 0.823 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.2228/0.5398, allocations: 170.5 MB / 1.396 GB, free: 14.89 MB / 0.9011 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002808/0.5401, allocations: 95.94 kB / 1.396 GB, free: 14.8 MB / 0.9011 GB Notification: Performance of FrontEnd - DAE generated: time 0.7917/1.332, allocations: 31.76 MB / 1.427 GB, free: 178.4 MB / 0.9167 GB Notification: Performance of FrontEnd: time 2.475e-06/1.332, allocations: 0 / 1.427 GB, free: 178.4 MB / 0.9167 GB Notification: Performance of Transformations before backend: time 3.907e-05/1.332, allocations: 14.25 kB / 1.427 GB, free: 178.4 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.001727/1.334, allocations: 0.9014 MB / 1.428 GB, free: 177.8 MB / 0.9167 GB Notification: Performance of prepare preOptimizeDAE: time 5.44e-05/1.334, allocations: 8.906 kB / 1.428 GB, free: 177.8 MB / 0.9167 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001288/1.334, allocations: 99.81 kB / 1.428 GB, free: 177.8 MB / 0.9167 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000824/1.335, allocations: 148.3 kB / 1.428 GB, free: 177.8 MB / 0.9167 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007265/1.335, allocations: 447.2 kB / 1.428 GB, free: 177.5 MB / 0.9167 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.198e-05/1.335, allocations: 39.95 kB / 1.428 GB, free: 177.5 MB / 0.9167 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.276e-05/1.336, allocations: 49.19 kB / 1.429 GB, free: 177.5 MB / 0.9167 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001071/1.337, allocations: 0.6839 MB / 1.429 GB, free: 177.4 MB / 0.9167 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.873e-05/1.337, allocations: 1.547 kB / 1.429 GB, free: 177.4 MB / 0.9167 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.748e-05/1.337, allocations: 18.09 kB / 1.429 GB, free: 177.4 MB / 0.9167 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.022e-05/1.337, allocations: 43.22 kB / 1.429 GB, free: 177.4 MB / 0.9167 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001046/1.338, allocations: 0.5751 MB / 1.43 GB, free: 177.4 MB / 0.9167 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003496/1.341, allocations: 2.846 MB / 1.433 GB, free: 175.7 MB / 0.9167 GB Notification: Performance of preOpt comSubExp (simulation): time 0.00125/1.343, allocations: 0.5882 MB / 1.433 GB, free: 175.7 MB / 0.9167 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0004479/1.343, allocations: 0.5638 MB / 1.434 GB, free: 175 MB / 0.9167 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008203/1.344, allocations: 413 kB / 1.434 GB, free: 174.9 MB / 0.9167 GB Notification: Performance of pre-optimization done (n=49): time 3.727e-06/1.344, allocations: 0.5156 kB / 1.434 GB, free: 174.9 MB / 0.9167 GB Notification: Performance of matching and sorting (n=49): time 0.001744/1.346, allocations: 0.7797 MB / 1.435 GB, free: 174.9 MB / 0.9167 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.727e-05/1.346, allocations: 85.22 kB / 1.435 GB, free: 174.8 MB / 0.9167 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000465/1.346, allocations: 321 kB / 1.435 GB, free: 174.7 MB / 0.9167 GB Notification: Performance of collectPreVariables (initialization): time 6.29e-05/1.346, allocations: 43.33 kB / 1.435 GB, free: 174.6 MB / 0.9167 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002202/1.347, allocations: 281.3 kB / 1.436 GB, free: 174.5 MB / 0.9167 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001382/1.347, allocations: 163 kB / 1.436 GB, free: 174.4 MB / 0.9167 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.277e-05/1.347, allocations: 13.22 kB / 1.436 GB, free: 174.4 MB / 0.9167 GB Notification: Performance of setup shared object (initialization): time 0.0001269/1.347, allocations: 357.1 kB / 1.436 GB, free: 174.1 MB / 0.9167 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005274/1.347, allocations: 246.2 kB / 1.436 GB, free: 174.1 MB / 0.9167 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006066/1.348, allocations: 372.2 kB / 1.437 GB, free: 173.9 MB / 0.9167 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005746/1.349, allocations: 296.9 kB / 1.437 GB, free: 173.9 MB / 0.9167 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.867e-06/1.349, allocations: 1.125 kB / 1.437 GB, free: 173.9 MB / 0.9167 GB Notification: Performance of matching and sorting (n=70) (initialization): time 0.001352/1.35, allocations: 0.7048 MB / 1.438 GB, free: 173.8 MB / 0.9167 GB Notification: Performance of prepare postOptimizeDAE: time 0.000311/1.35, allocations: 1.08 MB / 1.439 GB, free: 172.7 MB / 0.9167 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.343e-05/1.35, allocations: 3.75 kB / 1.439 GB, free: 172.7 MB / 0.9167 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.901e-05/1.35, allocations: 4.875 kB / 1.439 GB, free: 172.7 MB / 0.9167 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006024/1.351, allocations: 114.6 kB / 1.439 GB, free: 172.7 MB / 0.9167 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.728e-05/1.351, allocations: 7.656 kB / 1.439 GB, free: 172.7 MB / 0.9167 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005655/1.352, allocations: 83.59 kB / 1.439 GB, free: 172.6 MB / 0.9167 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.143e-05/1.352, allocations: 18.92 kB / 1.439 GB, free: 172.6 MB / 0.9167 GB Notification: Performance of prepare postOptimizeDAE: time 1.156e-05/1.352, allocations: 5.062 kB / 1.439 GB, free: 172.6 MB / 0.9167 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001213/1.353, allocations: 0.5887 MB / 1.439 GB, free: 172.6 MB / 0.9167 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.454e-06/1.353, allocations: 7.172 kB / 1.439 GB, free: 172.6 MB / 0.9167 GB Notification: Performance of postOpt tearingSystem (initialization): time 8.096e-06/1.353, allocations: 6 kB / 1.44 GB, free: 172.6 MB / 0.9167 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004511/1.353, allocations: 109.6 kB / 1.44 GB, free: 172.6 MB / 0.9167 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.129e-05/1.353, allocations: 5.469 kB / 1.44 GB, free: 172.6 MB / 0.9167 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004374/1.354, allocations: 61.58 kB / 1.44 GB, free: 172.6 MB / 0.9167 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.275e-05/1.354, allocations: 23.41 kB / 1.44 GB, free: 172.6 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.0004358/1.354, allocations: 298.4 kB / 1.44 GB, free: 172.4 MB / 0.9167 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.11e-05/1.354, allocations: 48.98 kB / 1.44 GB, free: 172.4 MB / 0.9167 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001375/1.356, allocations: 0.6126 MB / 1.441 GB, free: 172.3 MB / 0.9167 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.12e-05/1.356, allocations: 5.438 kB / 1.441 GB, free: 172.3 MB / 0.9167 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.007e-06/1.356, allocations: 4.797 kB / 1.441 GB, free: 172.3 MB / 0.9167 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.628e-06/1.356, allocations: 4.422 kB / 1.441 GB, free: 172.3 MB / 0.9167 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001031/1.357, allocations: 0.6315 MB / 1.441 GB, free: 172.1 MB / 0.9167 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.068e-06/1.357, allocations: 1.031 kB / 1.441 GB, free: 172.1 MB / 0.9167 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005347/1.357, allocations: 99.36 kB / 1.441 GB, free: 172.1 MB / 0.9167 GB Notification: Performance of postOpt tearingSystem (simulation): time 9.788e-06/1.357, allocations: 2.469 kB / 1.441 GB, free: 172.1 MB / 0.9167 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.282e-05/1.357, allocations: 16.67 kB / 1.441 GB, free: 172.1 MB / 0.9167 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.825e-06/1.358, allocations: 10.16 kB / 1.441 GB, free: 172.1 MB / 0.9167 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.385e-06/1.358, allocations: 0 / 1.441 GB, free: 172.1 MB / 0.9167 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001737/1.359, allocations: 0.9326 MB / 1.442 GB, free: 172 MB / 0.9167 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002767/1.36, allocations: 183 kB / 1.442 GB, free: 171.8 MB / 0.9167 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.685e-05/1.36, allocations: 16.53 kB / 1.442 GB, free: 171.8 MB / 0.9167 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003564/1.36, allocations: 43.16 kB / 1.443 GB, free: 171.8 MB / 0.9167 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001665/1.36, allocations: 47.84 kB / 1.443 GB, free: 171.8 MB / 0.9167 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.342e-05/1.36, allocations: 20.48 kB / 1.443 GB, free: 171.8 MB / 0.9167 GB Notification: Performance of sorting global known variables: time 0.000338/1.361, allocations: 257.8 kB / 1.443 GB, free: 171.8 MB / 0.9167 GB Notification: Performance of sort global known variables: time 1.61e-07/1.361, allocations: 0 / 1.443 GB, free: 171.8 MB / 0.9167 GB Notification: Performance of remove unused functions: time 0.0009948/1.362, allocations: 281.4 kB / 1.443 GB, free: 171.7 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.002127/1.364, allocations: 1.601 MB / 1.445 GB, free: 171 MB / 0.9167 GB Notification: Performance of simCode: created initialization part: time 0.001936/1.366, allocations: 1.003 MB / 1.446 GB, free: 170.8 MB / 0.9167 GB Notification: Performance of simCode: created event and clocks part: time 3.727e-06/1.366, allocations: 1 kB / 1.446 GB, free: 170.8 MB / 0.9167 GB Notification: Performance of simCode: created simulation system equations: time 0.0005475/1.366, allocations: 290.7 kB / 1.446 GB, free: 170.8 MB / 0.9167 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000827/1.367, allocations: 154.7 kB / 1.446 GB, free: 170.8 MB / 0.9167 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006478/1.374, allocations: 4.869 MB / 1.451 GB, free: 168.1 MB / 0.9167 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004743/1.374, allocations: 0.915 MB / 1.452 GB, free: 167.4 MB / 0.9167 GB Notification: Performance of simCode: alias equations: time 0.000668/1.375, allocations: 147.2 kB / 1.452 GB, free: 167.4 MB / 0.9167 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003257/1.375, allocations: 196 kB / 1.452 GB, free: 167.4 MB / 0.9167 GB Notification: Performance of SimCode: time 2.495e-06/1.375, allocations: 0 / 1.452 GB, free: 167.4 MB / 0.9167 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0385/1.414, allocations: 12.17 MB / 1.464 GB, free: 166.8 MB / 0.9167 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001854/1.414, allocations: 206.9 kB / 1.464 GB, free: 166.6 MB / 0.9167 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.411/3.825, allocations: 0 / 1.464 GB, free: 166.6 MB / 0.9167 GB (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 & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Buildings_latest_Buildings.Electrical.AC.ThreePhasesBalanced.Storage.Examples.AcBattery_res.mat --tempDir=temp_Buildings_latest_Buildings_Electrical_AC_ThreePhasesBalanced_Storage_Examples_AcBattery_fmu --startTime=0 --stopTime=3600 --timeout=50 --tolerance=1e-06 Buildings_latest_Buildings_Electrical_AC_ThreePhasesBalanced_Storage_Examples_AcBattery.fmu > Buildings_latest_Buildings.Electrical.AC.ThreePhasesBalanced.Storage.Examples.AcBattery.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Buildings_latest_Buildings.Electrical.AC.ThreePhasesBalanced.Storage.Examples.AcBattery_res.mat does not exist to compare? outputFormat=mat