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.329/2.329, allocations: 387.1 MB / 399.7 MB, free: 9.484 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.001466/0.001466, allocations: 176.9 kB / 492.3 MB, free: 0.6328 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.567/1.567, allocations: 221.3 MB / 0.7872 GB, free: 12.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.0009496/0.0009494, allocations: 95.27 kB / 0.9267 GB, free: 14.04 MB / 0.698 GB Notification: Performance of FrontEnd - loaded program: time 3.999e-05/4.008e-05, allocations: 4 kB / 1.073 GB, free: 180.3 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3409/0.341, allocations: 142.4 MB / 1.212 GB, free: 38.45 MB / 0.7605 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.9694/1.31, allocations: 169.6 MB / 1.378 GB, free: 18.9 MB / 0.823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002249/1.311, allocations: 87.75 kB / 1.378 GB, free: 18.9 MB / 0.823 GB Notification: Performance of FrontEnd - DAE generated: time 0.07441/1.385, allocations: 31.6 MB / 1.409 GB, free: 18.12 MB / 0.8386 GB Notification: Performance of FrontEnd: time 2.434e-06/1.385, allocations: 0 / 1.409 GB, free: 18.12 MB / 0.8386 GB Notification: Performance of Transformations before backend: time 5.916e-05/1.385, allocations: 19.5 kB / 1.409 GB, free: 18.1 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.002181/1.387, allocations: 0.8225 MB / 1.41 GB, free: 17.27 MB / 0.8386 GB Notification: Performance of prepare preOptimizeDAE: time 5.59e-05/1.387, allocations: 12.03 kB / 1.41 GB, free: 17.26 MB / 0.8386 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002659/1.388, allocations: 89.64 kB / 1.41 GB, free: 17.19 MB / 0.8386 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001151/1.389, allocations: 158.5 kB / 1.41 GB, free: 17.04 MB / 0.8386 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009187/1.39, allocations: 447.8 kB / 1.411 GB, free: 16.63 MB / 0.8386 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.952e-05/1.39, allocations: 35.62 kB / 1.411 GB, free: 16.61 MB / 0.8386 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001423/1.39, allocations: 53.08 kB / 1.411 GB, free: 16.58 MB / 0.8386 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001178/1.391, allocations: 0.6491 MB / 1.411 GB, free: 16.09 MB / 0.8386 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.214e-05/1.391, allocations: 3.984 kB / 1.411 GB, free: 16.09 MB / 0.8386 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.32e-05/1.391, allocations: 25.38 kB / 1.411 GB, free: 16.08 MB / 0.8386 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.535e-05/1.391, allocations: 40.66 kB / 1.411 GB, free: 16.05 MB / 0.8386 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001031/1.392, allocations: 0.5313 MB / 1.412 GB, free: 15.7 MB / 0.8386 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004846/1.397, allocations: 2.839 MB / 1.415 GB, free: 13.1 MB / 0.8386 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001062/1.398, allocations: 0.5449 MB / 1.415 GB, free: 12.71 MB / 0.8386 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004173/1.399, allocations: 241 kB / 1.415 GB, free: 12.56 MB / 0.8386 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0006717/1.4, allocations: 0.5618 MB / 1.416 GB, free: 11.87 MB / 0.8386 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006529/1.4, allocations: 395.9 kB / 1.416 GB, free: 11.57 MB / 0.8386 GB Notification: Performance of pre-optimization done (n=49): time 5.841e-06/1.4, allocations: 0 / 1.416 GB, free: 11.57 MB / 0.8386 GB Notification: Performance of matching and sorting (n=49): time 0.0009989/1.401, allocations: 0.5154 MB / 1.417 GB, free: 11.19 MB / 0.8386 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.668e-05/1.401, allocations: 89.47 kB / 1.417 GB, free: 11.09 MB / 0.8386 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004548/1.402, allocations: 314.6 kB / 1.417 GB, free: 10.83 MB / 0.8386 GB Notification: Performance of collectPreVariables (initialization): time 7.466e-05/1.402, allocations: 48.23 kB / 1.417 GB, free: 10.79 MB / 0.8386 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002448/1.402, allocations: 282.9 kB / 1.418 GB, free: 10.57 MB / 0.8386 GB Notification: Performance of collectInitialBindings (initialization): time 0.000172/1.402, allocations: 165 kB / 1.418 GB, free: 10.44 MB / 0.8386 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.362e-05/1.402, allocations: 10.06 kB / 1.418 GB, free: 10.44 MB / 0.8386 GB Notification: Performance of setup shared object (initialization): time 0.0001907/1.403, allocations: 361.7 kB / 1.418 GB, free: 10.1 MB / 0.8386 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003669/1.403, allocations: 214.3 kB / 1.418 GB, free: 9.973 MB / 0.8386 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004628/1.403, allocations: 345.8 kB / 1.419 GB, free: 9.688 MB / 0.8386 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.00042/1.404, allocations: 270.3 kB / 1.419 GB, free: 9.5 MB / 0.8386 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.799e-06/1.404, allocations: 0 / 1.419 GB, free: 9.5 MB / 0.8386 GB Notification: Performance of matching and sorting (n=70) (initialization): time 0.001119/1.405, allocations: 0.6662 MB / 1.42 GB, free: 9.004 MB / 0.8386 GB Notification: Performance of prepare postOptimizeDAE: time 0.0005459/1.406, allocations: 1.077 MB / 1.421 GB, free: 7.863 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.452e-05/1.406, allocations: 7.984 kB / 1.421 GB, free: 7.855 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.459e-05/1.406, allocations: 4.047 kB / 1.421 GB, free: 7.852 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005914/1.406, allocations: 119.2 kB / 1.421 GB, free: 7.738 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.226e-05/1.406, allocations: 11.92 kB / 1.421 GB, free: 7.727 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005504/1.407, allocations: 73.77 kB / 1.421 GB, free: 7.664 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.071e-05/1.407, allocations: 27.69 kB / 1.421 GB, free: 7.641 MB / 0.8386 GB Notification: Performance of prepare postOptimizeDAE: time 1.136e-05/1.407, allocations: 4 kB / 1.421 GB, free: 7.637 MB / 0.8386 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0009335/1.408, allocations: 0.5329 MB / 1.421 GB, free: 7.266 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.046e-05/1.408, allocations: 4 kB / 1.421 GB, free: 7.262 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.14e-05/1.408, allocations: 4.25 kB / 1.421 GB, free: 7.258 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004635/1.408, allocations: 115.1 kB / 1.421 GB, free: 7.148 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.135e-05/1.408, allocations: 4 kB / 1.421 GB, free: 7.145 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005057/1.409, allocations: 65.7 kB / 1.421 GB, free: 7.09 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.161e-05/1.409, allocations: 19.25 kB / 1.422 GB, free: 7.074 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.0002278/1.409, allocations: 146.5 kB / 1.422 GB, free: 6.945 MB / 0.8386 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001427/1.409, allocations: 55.38 kB / 1.422 GB, free: 6.891 MB / 0.8386 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001102/1.41, allocations: 0.5641 MB / 1.422 GB, free: 6.5 MB / 0.8386 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.917e-06/1.41, allocations: 4 kB / 1.422 GB, free: 6.496 MB / 0.8386 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.035e-06/1.41, allocations: 4 kB / 1.422 GB, free: 6.492 MB / 0.8386 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.688e-06/1.41, allocations: 3.984 kB / 1.422 GB, free: 6.488 MB / 0.8386 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001086/1.412, allocations: 0.6306 MB / 1.423 GB, free: 5.98 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.584e-06/1.412, allocations: 0 / 1.423 GB, free: 5.98 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005147/1.412, allocations: 98.98 kB / 1.423 GB, free: 5.887 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (simulation): time 9.368e-06/1.412, allocations: 0 / 1.423 GB, free: 5.887 MB / 0.8386 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.342e-05/1.412, allocations: 18.81 kB / 1.423 GB, free: 5.875 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.031e-06/1.412, allocations: 4 kB / 1.423 GB, free: 5.871 MB / 0.8386 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.714e-06/1.412, allocations: 0 / 1.423 GB, free: 5.871 MB / 0.8386 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001401/1.414, allocations: 0.8612 MB / 1.424 GB, free: 5.258 MB / 0.8386 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003438/1.414, allocations: 190.1 kB / 1.424 GB, free: 5.082 MB / 0.8386 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000102/1.414, allocations: 11.44 kB / 1.424 GB, free: 5.078 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003626/1.414, allocations: 35.64 kB / 1.424 GB, free: 5.051 MB / 0.8386 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001557/1.415, allocations: 48.05 kB / 1.424 GB, free: 5.012 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.095e-05/1.415, allocations: 24.05 kB / 1.424 GB, free: 4.992 MB / 0.8386 GB Notification: Performance of sorting global known variables: time 0.000329/1.415, allocations: 250 kB / 1.424 GB, free: 4.801 MB / 0.8386 GB Notification: Performance of sort global known variables: time 3.31e-07/1.415, allocations: 0 / 1.424 GB, free: 4.801 MB / 0.8386 GB Notification: Performance of remove unused functions: time 0.001119/1.416, allocations: 290.2 kB / 1.425 GB, free: 4.543 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.001887/1.418, allocations: 1.538 MB / 1.426 GB, free: 3.262 MB / 0.8386 GB Notification: Performance of simCode: created initialization part: time 0.001451/1.42, allocations: 0.944 MB / 1.427 GB, free: 2.57 MB / 0.8386 GB Notification: Performance of simCode: created event and clocks part: time 3.707e-06/1.42, allocations: 3.938 kB / 1.427 GB, free: 2.566 MB / 0.8386 GB Notification: Performance of simCode: created simulation system equations: time 0.0003898/1.42, allocations: 265.8 kB / 1.427 GB, free: 2.387 MB / 0.8386 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008393/1.421, allocations: 150.9 kB / 1.427 GB, free: 2.273 MB / 0.8386 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002329/1.423, allocations: 0.951 MB / 1.428 GB, free: 1.441 MB / 0.8386 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005923/1.424, allocations: 0.9196 MB / 1.429 GB, free: 0.5078 MB / 0.8386 GB Notification: Performance of simCode: alias equations: time 0.0007185/1.424, allocations: 168.5 kB / 1.429 GB, free: 348 kB / 0.8386 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003052/1.425, allocations: 191.7 kB / 1.43 GB, free: 292 kB / 0.8386 GB Notification: Performance of SimCode: time 1.223e-06/1.425, allocations: 0 / 1.43 GB, free: 292 kB / 0.8386 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03134/1.456, allocations: 12.7 MB / 1.442 GB, free: 3.844 MB / 0.8542 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001823/1.456, allocations: 181.4 kB / 1.442 GB, free: 3.613 MB / 0.8542 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.358/3.814, allocations: 4 kB / 1.442 GB, free: 3.609 MB / 0.8542 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