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.195/2.195, allocations: 387.4 MB / 394.9 MB, free: 13.36 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.001148/0.001148, allocations: 184.7 kB / 487.4 MB, free: 5.035 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.544/1.544, allocations: 221.5 MB / 0.7824 GB, free: 0.9102 MB / 0.5417 GB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009137/0.0009137, allocations: 99.02 kB / 0.9219 GB, free: 2.137 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 1.799e-05/1.802e-05, allocations: 6.109 kB / 1.067 GB, free: 185.6 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2942/0.2942, allocations: 142.4 MB / 1.206 GB, free: 43.84 MB / 0.7605 GB Notification: Performance of FrontEnd - scodeFlatten: time 1.039/1.334, allocations: 168.9 MB / 1.371 GB, free: 18.05 MB / 0.823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002689/1.334, allocations: 95.34 kB / 1.371 GB, free: 18.05 MB / 0.823 GB Notification: Performance of FrontEnd - DAE generated: time 0.069/1.403, allocations: 31.46 MB / 1.402 GB, free: 23.14 MB / 0.8386 GB Notification: Performance of FrontEnd: time 2.615e-06/1.403, allocations: 0 / 1.402 GB, free: 23.14 MB / 0.8386 GB Notification: Performance of Transformations before backend: time 4.463e-05/1.403, allocations: 19.19 kB / 1.402 GB, free: 23.14 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.001714/1.405, allocations: 0.8259 MB / 1.403 GB, free: 22.48 MB / 0.8386 GB Notification: Performance of prepare preOptimizeDAE: time 5.284e-05/1.405, allocations: 11.69 kB / 1.403 GB, free: 22.48 MB / 0.8386 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008274/1.406, allocations: 159.6 kB / 1.403 GB, free: 22.4 MB / 0.8386 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005965/1.406, allocations: 443 kB / 1.403 GB, free: 22.1 MB / 0.8386 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.478e-05/1.406, allocations: 15.22 kB / 1.403 GB, free: 22.1 MB / 0.8386 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.943e-05/1.406, allocations: 26.94 kB / 1.403 GB, free: 22.1 MB / 0.8386 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0007252/1.407, allocations: 452.4 kB / 1.404 GB, free: 22.05 MB / 0.8386 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008575/1.408, allocations: 0.592 MB / 1.404 GB, free: 21.85 MB / 0.8386 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.931e-05/1.408, allocations: 3.938 kB / 1.404 GB, free: 21.84 MB / 0.8386 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.627e-05/1.408, allocations: 11.62 kB / 1.404 GB, free: 21.84 MB / 0.8386 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.489e-05/1.408, allocations: 46.55 kB / 1.404 GB, free: 21.83 MB / 0.8386 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00336/1.412, allocations: 2.73 MB / 1.407 GB, free: 19.8 MB / 0.8386 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0007536/1.412, allocations: 0.5277 MB / 1.408 GB, free: 19.68 MB / 0.8386 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002779/1.413, allocations: 233.9 kB / 1.408 GB, free: 19.61 MB / 0.8386 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0004093/1.413, allocations: 0.5544 MB / 1.408 GB, free: 18.93 MB / 0.8386 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004915/1.414, allocations: 370.7 kB / 1.409 GB, free: 18.64 MB / 0.8386 GB Notification: Performance of pre-optimization done (n=49): time 2.915e-06/1.414, allocations: 0 / 1.409 GB, free: 18.64 MB / 0.8386 GB Notification: Performance of matching and sorting (n=49): time 0.0007914/1.414, allocations: 0.4983 MB / 1.409 GB, free: 18.27 MB / 0.8386 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.829e-05/1.414, allocations: 81.55 kB / 1.409 GB, free: 18.17 MB / 0.8386 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003146/1.415, allocations: 307.2 kB / 1.41 GB, free: 17.93 MB / 0.8386 GB Notification: Performance of collectPreVariables (initialization): time 5.598e-05/1.415, allocations: 36.88 kB / 1.41 GB, free: 17.89 MB / 0.8386 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001757/1.415, allocations: 281.2 kB / 1.41 GB, free: 17.68 MB / 0.8386 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001028/1.415, allocations: 154.2 kB / 1.41 GB, free: 17.55 MB / 0.8386 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.859e-05/1.415, allocations: 0 / 1.41 GB, free: 17.55 MB / 0.8386 GB Notification: Performance of setup shared object (initialization): time 0.0001646/1.415, allocations: 359 kB / 1.41 GB, free: 17.21 MB / 0.8386 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002634/1.416, allocations: 203.4 kB / 1.411 GB, free: 17.09 MB / 0.8386 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000322/1.416, allocations: 334 kB / 1.411 GB, free: 16.82 MB / 0.8386 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003492/1.416, allocations: 238 kB / 1.411 GB, free: 16.67 MB / 0.8386 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.138e-06/1.416, allocations: 0 / 1.411 GB, free: 16.67 MB / 0.8386 GB Notification: Performance of matching and sorting (n=70) (initialization): time 0.0007971/1.417, allocations: 0.602 MB / 1.412 GB, free: 16.23 MB / 0.8386 GB Notification: Performance of prepare postOptimizeDAE: time 0.0004674/1.418, allocations: 1.081 MB / 1.413 GB, free: 15.08 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.758e-06/1.418, allocations: 0 / 1.413 GB, free: 15.08 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.969e-05/1.418, allocations: 8 kB / 1.413 GB, free: 15.07 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000504/1.418, allocations: 115.6 kB / 1.413 GB, free: 14.96 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.438e-06/1.418, allocations: 8 kB / 1.413 GB, free: 14.95 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004491/1.419, allocations: 55.62 kB / 1.413 GB, free: 14.9 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.07e-05/1.419, allocations: 19.81 kB / 1.413 GB, free: 14.88 MB / 0.8386 GB Notification: Performance of prepare postOptimizeDAE: time 7.033e-06/1.419, allocations: 8 kB / 1.413 GB, free: 14.88 MB / 0.8386 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0006492/1.419, allocations: 465.3 kB / 1.413 GB, free: 14.56 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.778e-06/1.419, allocations: 4 kB / 1.413 GB, free: 14.56 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (initialization): time 7.815e-06/1.419, allocations: 11.95 kB / 1.413 GB, free: 14.55 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000385/1.42, allocations: 111.2 kB / 1.413 GB, free: 14.45 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.408e-06/1.42, allocations: 4.25 kB / 1.413 GB, free: 14.44 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003468/1.42, allocations: 55.64 kB / 1.414 GB, free: 14.39 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.545e-05/1.42, allocations: 19.81 kB / 1.414 GB, free: 14.37 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.0001591/1.42, allocations: 126.4 kB / 1.414 GB, free: 14.25 MB / 0.8386 GB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0006298/1.421, allocations: 0.4918 MB / 1.414 GB, free: 13.88 MB / 0.8386 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.746e-05/1.421, allocations: 51.39 kB / 1.414 GB, free: 13.83 MB / 0.8386 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000782/1.422, allocations: 0.5304 MB / 1.415 GB, free: 13.46 MB / 0.8386 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.312e-06/1.422, allocations: 7.938 kB / 1.415 GB, free: 13.45 MB / 0.8386 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.331e-06/1.422, allocations: 4 kB / 1.415 GB, free: 13.45 MB / 0.8386 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.163e-06/1.422, allocations: 7.922 kB / 1.415 GB, free: 13.44 MB / 0.8386 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006439/1.423, allocations: 0.5405 MB / 1.415 GB, free: 13.01 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.224e-06/1.423, allocations: 4 kB / 1.415 GB, free: 13 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004852/1.423, allocations: 94.67 kB / 1.415 GB, free: 12.91 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.85e-06/1.423, allocations: 4 kB / 1.415 GB, free: 12.91 MB / 0.8386 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.354e-05/1.423, allocations: 11.33 kB / 1.415 GB, free: 12.9 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.968e-06/1.423, allocations: 4 kB / 1.415 GB, free: 12.9 MB / 0.8386 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.414e-06/1.423, allocations: 0 / 1.415 GB, free: 12.9 MB / 0.8386 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001121/1.424, allocations: 0.8289 MB / 1.416 GB, free: 12.31 MB / 0.8386 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002441/1.424, allocations: 181 kB / 1.416 GB, free: 12.14 MB / 0.8386 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.792e-05/1.425, allocations: 15.62 kB / 1.416 GB, free: 12.13 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003226/1.425, allocations: 31.95 kB / 1.416 GB, free: 12.1 MB / 0.8386 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001279/1.425, allocations: 50.11 kB / 1.416 GB, free: 12.06 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.726e-05/1.425, allocations: 19.73 kB / 1.416 GB, free: 12.04 MB / 0.8386 GB Notification: Performance of sorting global known variables: time 0.0002552/1.425, allocations: 239 kB / 1.417 GB, free: 11.86 MB / 0.8386 GB Notification: Performance of sort global known variables: time 1.31e-07/1.425, allocations: 0 / 1.417 GB, free: 11.86 MB / 0.8386 GB Notification: Performance of remove unused functions: time 0.0007623/1.426, allocations: 251 kB / 1.417 GB, free: 11.62 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.001589/1.428, allocations: 1.497 MB / 1.418 GB, free: 10.36 MB / 0.8386 GB Notification: Performance of simCode: created initialization part: time 0.001211/1.429, allocations: 0.901 MB / 1.419 GB, free: 9.711 MB / 0.8386 GB Notification: Performance of simCode: created event and clocks part: time 4.739e-06/1.429, allocations: 8.062 kB / 1.419 GB, free: 9.703 MB / 0.8386 GB Notification: Performance of simCode: created simulation system equations: time 0.0003314/1.429, allocations: 256 kB / 1.42 GB, free: 9.535 MB / 0.8386 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007759/1.43, allocations: 144.1 kB / 1.42 GB, free: 9.422 MB / 0.8386 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001792/1.432, allocations: 0.9031 MB / 1.421 GB, free: 8.602 MB / 0.8386 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005409/1.432, allocations: 0.9128 MB / 1.421 GB, free: 7.676 MB / 0.8386 GB Notification: Performance of simCode: alias equations: time 0.000602/1.433, allocations: 164.5 kB / 1.422 GB, free: 7.516 MB / 0.8386 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002682/1.433, allocations: 198.4 kB / 1.422 GB, free: 7.461 MB / 0.8386 GB Notification: Performance of SimCode: time 3.81e-07/1.433, allocations: 4 kB / 1.422 GB, free: 7.457 MB / 0.8386 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03705/1.47, allocations: 12.04 MB / 1.434 GB, free: 11.54 MB / 0.8542 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002323/1.471, allocations: 166.2 kB / 1.434 GB, free: 11.34 MB / 0.8542 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.281/3.751, allocations: 0 / 1.434 GB, free: 11.34 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