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: "" <> buildModelFMU(Buildings.Electrical.AC.ThreePhasesBalanced.Storage.Examples.AcBattery,fileNamePrefix="Buildings_9_Buildings_Electrical_AC_ThreePhasesBalanced_Storage_Examples_AcBattery",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Electrical.AC.ThreePhasesBalanced.Storage.Examples.AcBattery,fileNamePrefix="Buildings_9_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 9.1.1-maint.9.1.x/package.mo): time 2.269/2.269, allocations: 390.3 MB / 405.3 MB, free: 13.5 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.001107/0.001107, allocations: 175 kB / 498.1 MB, free: 5.754 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.612/1.612, allocations: 223.2 MB / 0.7948 GB, free: 17.95 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.001057/0.001056, allocations: 100.3 kB / 0.9346 GB, free: 6.219 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 0.0003764/0.0003764, allocations: 12.16 kB / 1.084 GB, free: 221.5 MB / 0.823 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3014/0.3018, allocations: 142.3 MB / 1.223 GB, free: 114.2 MB / 0.823 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.2479/0.5497, allocations: 169.7 MB / 1.389 GB, free: 8.273 MB / 0.8855 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003564/0.5501, allocations: 99.88 kB / 1.389 GB, free: 8.176 MB / 0.8855 GB Notification: Performance of FrontEnd - DAE generated: time 0.08844/0.6386, allocations: 31.76 MB / 1.42 GB, free: 8.141 MB / 0.9167 GB Notification: Performance of FrontEnd: time 3.446e-06/0.6387, allocations: 0 / 1.42 GB, free: 8.141 MB / 0.9167 GB Notification: Performance of Transformations before backend: time 6.559e-05/0.6387, allocations: 15.94 kB / 1.42 GB, free: 8.125 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.002695/0.6414, allocations: 0.893 MB / 1.421 GB, free: 7.176 MB / 0.9167 GB Notification: Performance of prepare preOptimizeDAE: time 5.456e-05/0.6415, allocations: 8.031 kB / 1.421 GB, free: 7.168 MB / 0.9167 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003072/0.6418, allocations: 102.5 kB / 1.421 GB, free: 7.059 MB / 0.9167 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001093/0.6429, allocations: 147.1 kB / 1.421 GB, free: 6.914 MB / 0.9167 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001092/0.644, allocations: 444.7 kB / 1.421 GB, free: 6.438 MB / 0.9167 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.843e-05/0.6441, allocations: 44.98 kB / 1.421 GB, free: 6.395 MB / 0.9167 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001704/0.6443, allocations: 51.98 kB / 1.421 GB, free: 6.344 MB / 0.9167 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001478/0.6458, allocations: 0.6809 MB / 1.422 GB, free: 5.633 MB / 0.9167 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.309e-05/0.6458, allocations: 4 kB / 1.422 GB, free: 5.629 MB / 0.9167 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.954e-05/0.6459, allocations: 16 kB / 1.422 GB, free: 5.613 MB / 0.9167 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.177e-05/0.646, allocations: 52.86 kB / 1.422 GB, free: 5.562 MB / 0.9167 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001287/0.6473, allocations: 0.5738 MB / 1.423 GB, free: 4.988 MB / 0.9167 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004389/0.6517, allocations: 2.849 MB / 1.425 GB, free: 1.914 MB / 0.9167 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001167/0.6529, allocations: 0.5855 MB / 1.426 GB, free: 1.309 MB / 0.9167 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0005324/0.6534, allocations: 0.5662 MB / 1.427 GB, free: 0.6133 MB / 0.9167 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007481/0.6542, allocations: 411.7 kB / 1.427 GB, free: 196 kB / 0.9167 GB Notification: Performance of pre-optimization done (n=49): time 4.228e-06/0.6542, allocations: 0 / 1.427 GB, free: 196 kB / 0.9167 GB Notification: Performance of matching and sorting (n=49): time 0.6774/1.332, allocations: 0.7755 MB / 1.428 GB, free: 185.6 MB / 0.9167 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.591e-05/1.332, allocations: 84.88 kB / 1.428 GB, free: 185.5 MB / 0.9167 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004129/1.332, allocations: 321.2 kB / 1.428 GB, free: 185.4 MB / 0.9167 GB Notification: Performance of collectPreVariables (initialization): time 6.33e-05/1.332, allocations: 43.59 kB / 1.428 GB, free: 185.3 MB / 0.9167 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002056/1.332, allocations: 284.3 kB / 1.428 GB, free: 185.2 MB / 0.9167 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001209/1.333, allocations: 157.8 kB / 1.429 GB, free: 185.1 MB / 0.9167 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.975e-05/1.333, allocations: 8.781 kB / 1.429 GB, free: 185.1 MB / 0.9167 GB Notification: Performance of setup shared object (initialization): time 9.372e-05/1.333, allocations: 357.2 kB / 1.429 GB, free: 184.8 MB / 0.9167 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004615/1.333, allocations: 243.4 kB / 1.429 GB, free: 184.8 MB / 0.9167 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005599/1.334, allocations: 364 kB / 1.43 GB, free: 184.7 MB / 0.9167 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005246/1.334, allocations: 303.6 kB / 1.43 GB, free: 184.7 MB / 0.9167 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.648e-06/1.334, allocations: 1.344 kB / 1.43 GB, free: 184.7 MB / 0.9167 GB Notification: Performance of matching and sorting (n=70) (initialization): time 0.001314/1.336, allocations: 0.7064 MB / 1.431 GB, free: 184.6 MB / 0.9167 GB Notification: Performance of prepare postOptimizeDAE: time 0.0002678/1.336, allocations: 1.078 MB / 1.432 GB, free: 183.4 MB / 0.9167 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.176e-05/1.336, allocations: 2.625 kB / 1.432 GB, free: 183.4 MB / 0.9167 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.76e-05/1.336, allocations: 6.859 kB / 1.432 GB, free: 183.4 MB / 0.9167 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006113/1.337, allocations: 117 kB / 1.432 GB, free: 183.4 MB / 0.9167 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.701e-05/1.337, allocations: 7.719 kB / 1.432 GB, free: 183.4 MB / 0.9167 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005242/1.337, allocations: 72.11 kB / 1.432 GB, free: 183.4 MB / 0.9167 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.297e-05/1.337, allocations: 24.33 kB / 1.432 GB, free: 183.4 MB / 0.9167 GB Notification: Performance of prepare postOptimizeDAE: time 8.616e-06/1.337, allocations: 3.406 kB / 1.432 GB, free: 183.4 MB / 0.9167 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001108/1.338, allocations: 0.5936 MB / 1.432 GB, free: 183.4 MB / 0.9167 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.653e-06/1.338, allocations: 3.141 kB / 1.432 GB, free: 183.4 MB / 0.9167 GB Notification: Performance of postOpt tearingSystem (initialization): time 8.316e-06/1.338, allocations: 6.531 kB / 1.432 GB, free: 183.4 MB / 0.9167 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004243/1.339, allocations: 109.8 kB / 1.432 GB, free: 183.4 MB / 0.9167 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.088e-06/1.339, allocations: 8.203 kB / 1.432 GB, free: 183.4 MB / 0.9167 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004216/1.339, allocations: 66.8 kB / 1.433 GB, free: 183.4 MB / 0.9167 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.537e-05/1.339, allocations: 22.53 kB / 1.433 GB, free: 183.4 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.0004077/1.34, allocations: 300.1 kB / 1.433 GB, free: 183.2 MB / 0.9167 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.906e-05/1.34, allocations: 50.03 kB / 1.433 GB, free: 183.2 MB / 0.9167 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001252/1.341, allocations: 0.6075 MB / 1.434 GB, free: 183.1 MB / 0.9167 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.227e-06/1.341, allocations: 6.672 kB / 1.434 GB, free: 183.1 MB / 0.9167 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.252e-06/1.341, allocations: 1.031 kB / 1.434 GB, free: 183.1 MB / 0.9167 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.007e-06/1.341, allocations: 6.906 kB / 1.434 GB, free: 183.1 MB / 0.9167 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009355/1.342, allocations: 0.6399 MB / 1.434 GB, free: 182.9 MB / 0.9167 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.377e-06/1.342, allocations: 0.6094 kB / 1.434 GB, free: 182.9 MB / 0.9167 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005134/1.343, allocations: 99.42 kB / 1.434 GB, free: 182.9 MB / 0.9167 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.77e-06/1.343, allocations: 1.906 kB / 1.434 GB, free: 182.9 MB / 0.9167 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.529e-05/1.343, allocations: 11.06 kB / 1.434 GB, free: 182.9 MB / 0.9167 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.056e-06/1.343, allocations: 2.781 kB / 1.434 GB, free: 182.9 MB / 0.9167 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.705e-06/1.343, allocations: 3.75 kB / 1.434 GB, free: 182.9 MB / 0.9167 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001712/1.344, allocations: 0.9379 MB / 1.435 GB, free: 182.8 MB / 0.9167 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002548/1.345, allocations: 179.5 kB / 1.435 GB, free: 182.7 MB / 0.9167 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.623e-05/1.345, allocations: 14.62 kB / 1.435 GB, free: 182.7 MB / 0.9167 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003614/1.345, allocations: 40.44 kB / 1.435 GB, free: 182.7 MB / 0.9167 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001561/1.345, allocations: 52.47 kB / 1.435 GB, free: 182.7 MB / 0.9167 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.157e-05/1.345, allocations: 16.17 kB / 1.435 GB, free: 182.7 MB / 0.9167 GB Notification: Performance of sorting global known variables: time 0.0003108/1.346, allocations: 255.4 kB / 1.436 GB, free: 182.6 MB / 0.9167 GB Notification: Performance of sort global known variables: time 1.61e-07/1.346, allocations: 3.281 kB / 1.436 GB, free: 182.6 MB / 0.9167 GB Notification: Performance of remove unused functions: time 0.0008965/1.346, allocations: 279.5 kB / 1.436 GB, free: 182.6 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.002048/1.349, allocations: 1.606 MB / 1.438 GB, free: 181.8 MB / 0.9167 GB Notification: Performance of simCode: created initialization part: time 0.001942/1.35, allocations: 0.9921 MB / 1.439 GB, free: 181.7 MB / 0.9167 GB Notification: Performance of simCode: created event and clocks part: time 5.821e-06/1.351, allocations: 6.219 kB / 1.439 GB, free: 181.7 MB / 0.9167 GB Notification: Performance of simCode: created simulation system equations: time 0.0005513/1.351, allocations: 286.6 kB / 1.439 GB, free: 181.7 MB / 0.9167 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008306/1.352, allocations: 160.7 kB / 1.439 GB, free: 181.7 MB / 0.9167 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005861/1.358, allocations: 4.879 MB / 1.444 GB, free: 179 MB / 0.9167 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004874/1.358, allocations: 0.918 MB / 1.445 GB, free: 178.3 MB / 0.9167 GB Notification: Performance of simCode: alias equations: time 0.000713/1.359, allocations: 149.5 kB / 1.445 GB, free: 178.3 MB / 0.9167 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003311/1.359, allocations: 194.9 kB / 1.445 GB, free: 178.3 MB / 0.9167 GB Notification: Performance of SimCode: time 1.383e-06/1.359, allocations: 1.531 kB / 1.445 GB, free: 178.3 MB / 0.9167 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03643/1.396, allocations: 12.15 MB / 1.457 GB, free: 177.8 MB / 0.9167 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001585/1.396, allocations: 202.5 kB / 1.457 GB, free: 177.5 MB / 0.9167 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.38/3.776, allocations: 4 kB / 1.457 GB, free: 177.5 MB / 0.9167 GB (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 & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Buildings_9_Buildings.Electrical.AC.ThreePhasesBalanced.Storage.Examples.AcBattery_res.mat --tempDir=temp_Buildings_9_Buildings_Electrical_AC_ThreePhasesBalanced_Storage_Examples_AcBattery_fmu --startTime=0 --stopTime=3600 --timeout=50 --tolerance=1e-06 Buildings_9_Buildings_Electrical_AC_ThreePhasesBalanced_Storage_Examples_AcBattery.fmu > Buildings_9_Buildings.Electrical.AC.ThreePhasesBalanced.Storage.Examples.AcBattery.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Buildings_9_Buildings.Electrical.AC.ThreePhasesBalanced.Storage.Examples.AcBattery_res.mat does not exist to compare? outputFormat=mat