Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_latest_Buildings.Electrical.AC.OnePhase.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.OnePhase.Storage.Examples.AcBattery,fileNamePrefix="Buildings_latest_Buildings_Electrical_AC_OnePhase_Storage_Examples_AcBattery",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Electrical.AC.OnePhase.Storage.Examples.AcBattery,fileNamePrefix="Buildings_latest_Buildings_Electrical_AC_OnePhase_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.896/2.896, allocations: 390.5 MB / 398 MB, free: 10.94 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.001115/0.001115, allocations: 172.9 kB / 491.2 MB, free: 1.559 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.609/1.609, allocations: 221.5 MB / 0.7868 GB, free: 13.26 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.0008679/0.0008679, allocations: 79.98 kB / 0.9269 GB, free: 13.77 MB / 0.698 GB Notification: Performance of FrontEnd - loaded program: time 2.253e-05/2.246e-05, allocations: 4 kB / 1.073 GB, free: 181.9 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2776/0.2776, allocations: 143 MB / 1.212 GB, free: 39.39 MB / 0.7605 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.9912/1.269, allocations: 168.3 MB / 1.377 GB, free: 17.5 MB / 0.823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003176/1.269, allocations: 98.16 kB / 1.377 GB, free: 17.49 MB / 0.823 GB Notification: Performance of FrontEnd - DAE generated: time 0.06808/1.337, allocations: 29.53 MB / 1.406 GB, free: 20.85 MB / 0.8386 GB Notification: Performance of FrontEnd: time 2.585e-06/1.337, allocations: 0 / 1.406 GB, free: 20.85 MB / 0.8386 GB Notification: Performance of Transformations before backend: time 4.099e-05/1.337, allocations: 12 kB / 1.406 GB, free: 20.84 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.001494/1.339, allocations: 0.8242 MB / 1.406 GB, free: 20 MB / 0.8386 GB Notification: Performance of prepare preOptimizeDAE: time 4.74e-05/1.339, allocations: 12.03 kB / 1.407 GB, free: 19.98 MB / 0.8386 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007945/1.34, allocations: 158.8 kB / 1.407 GB, free: 19.83 MB / 0.8386 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005938/1.34, allocations: 452.4 kB / 1.407 GB, free: 19.43 MB / 0.8386 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.476e-05/1.34, allocations: 16 kB / 1.407 GB, free: 19.41 MB / 0.8386 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.226e-05/1.341, allocations: 31.94 kB / 1.407 GB, free: 19.38 MB / 0.8386 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.000684/1.341, allocations: 450.5 kB / 1.408 GB, free: 19.1 MB / 0.8386 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007685/1.342, allocations: 0.5927 MB / 1.408 GB, free: 18.64 MB / 0.8386 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.639e-05/1.342, allocations: 0 / 1.408 GB, free: 18.64 MB / 0.8386 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.147e-05/1.342, allocations: 15.12 kB / 1.408 GB, free: 18.62 MB / 0.8386 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.19e-05/1.342, allocations: 36.67 kB / 1.408 GB, free: 18.59 MB / 0.8386 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002583/1.345, allocations: 2.734 MB / 1.411 GB, free: 16.07 MB / 0.8386 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0006573/1.345, allocations: 0.5266 MB / 1.411 GB, free: 15.7 MB / 0.8386 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002472/1.346, allocations: 228.6 kB / 1.412 GB, free: 15.55 MB / 0.8386 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0004409/1.346, allocations: 0.5657 MB / 1.412 GB, free: 14.87 MB / 0.8386 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005318/1.347, allocations: 375.2 kB / 1.413 GB, free: 14.57 MB / 0.8386 GB Notification: Performance of pre-optimization done (n=49): time 2.245e-06/1.347, allocations: 0 / 1.413 GB, free: 14.57 MB / 0.8386 GB Notification: Performance of matching and sorting (n=49): time 0.0008607/1.348, allocations: 497.2 kB / 1.413 GB, free: 14.21 MB / 0.8386 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.018e-05/1.348, allocations: 85.55 kB / 1.413 GB, free: 14.11 MB / 0.8386 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003656/1.348, allocations: 303.9 kB / 1.413 GB, free: 13.88 MB / 0.8386 GB Notification: Performance of collectPreVariables (initialization): time 5.617e-05/1.348, allocations: 29.08 kB / 1.413 GB, free: 13.84 MB / 0.8386 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002229/1.348, allocations: 290 kB / 1.414 GB, free: 13.62 MB / 0.8386 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001356/1.348, allocations: 145.5 kB / 1.414 GB, free: 13.5 MB / 0.8386 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.833e-05/1.348, allocations: 8.031 kB / 1.414 GB, free: 13.49 MB / 0.8386 GB Notification: Performance of setup shared object (initialization): time 0.0001962/1.349, allocations: 358.6 kB / 1.414 GB, free: 13.15 MB / 0.8386 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003391/1.349, allocations: 210.4 kB / 1.414 GB, free: 13.03 MB / 0.8386 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004154/1.349, allocations: 329 kB / 1.415 GB, free: 12.76 MB / 0.8386 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004095/1.35, allocations: 233.6 kB / 1.415 GB, free: 12.61 MB / 0.8386 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.757e-06/1.35, allocations: 4 kB / 1.415 GB, free: 12.61 MB / 0.8386 GB Notification: Performance of matching and sorting (n=70) (initialization): time 0.0009525/1.351, allocations: 0.5921 MB / 1.415 GB, free: 12.18 MB / 0.8386 GB Notification: Performance of prepare postOptimizeDAE: time 0.0006069/1.351, allocations: 1.071 MB / 1.417 GB, free: 11.04 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.034e-05/1.351, allocations: 8.188 kB / 1.417 GB, free: 11.03 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.038e-05/1.352, allocations: 4 kB / 1.417 GB, free: 11.03 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005686/1.352, allocations: 119.6 kB / 1.417 GB, free: 10.91 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.159e-05/1.352, allocations: 11.92 kB / 1.417 GB, free: 10.9 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004982/1.353, allocations: 63.48 kB / 1.417 GB, free: 10.84 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.823e-05/1.353, allocations: 23.86 kB / 1.417 GB, free: 10.82 MB / 0.8386 GB Notification: Performance of prepare postOptimizeDAE: time 8.426e-06/1.353, allocations: 4 kB / 1.417 GB, free: 10.82 MB / 0.8386 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0007571/1.353, allocations: 476.5 kB / 1.417 GB, free: 10.5 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.643e-06/1.353, allocations: 7.984 kB / 1.417 GB, free: 10.49 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (initialization): time 8.385e-06/1.353, allocations: 4 kB / 1.417 GB, free: 10.48 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004338/1.354, allocations: 111.6 kB / 1.417 GB, free: 10.38 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.091e-06/1.354, allocations: 7.938 kB / 1.417 GB, free: 10.37 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003874/1.354, allocations: 55.89 kB / 1.417 GB, free: 10.32 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.711e-05/1.354, allocations: 19.81 kB / 1.417 GB, free: 10.3 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.0001784/1.355, allocations: 127 kB / 1.418 GB, free: 10.18 MB / 0.8386 GB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0007222/1.355, allocations: 0.4918 MB / 1.418 GB, free: 9.809 MB / 0.8386 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.755e-05/1.355, allocations: 51.39 kB / 1.418 GB, free: 9.758 MB / 0.8386 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008722/1.356, allocations: 0.5325 MB / 1.419 GB, free: 9.379 MB / 0.8386 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.813e-06/1.356, allocations: 4 kB / 1.419 GB, free: 9.375 MB / 0.8386 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.509e-06/1.356, allocations: 0 / 1.419 GB, free: 9.375 MB / 0.8386 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.674e-06/1.356, allocations: 3.984 kB / 1.419 GB, free: 9.371 MB / 0.8386 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007144/1.357, allocations: 0.5441 MB / 1.419 GB, free: 8.938 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.144e-06/1.357, allocations: 0 / 1.419 GB, free: 8.938 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004894/1.358, allocations: 95.48 kB / 1.419 GB, free: 8.848 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (simulation): time 8.566e-06/1.358, allocations: 7.953 kB / 1.419 GB, free: 8.84 MB / 0.8386 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.061e-05/1.358, allocations: 3.938 kB / 1.419 GB, free: 8.84 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.181e-06/1.358, allocations: 12 kB / 1.419 GB, free: 8.828 MB / 0.8386 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.035e-06/1.358, allocations: 0 / 1.419 GB, free: 8.828 MB / 0.8386 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001145/1.359, allocations: 0.8287 MB / 1.42 GB, free: 8.242 MB / 0.8386 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002191/1.359, allocations: 187.7 kB / 1.42 GB, free: 8.066 MB / 0.8386 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.547e-05/1.359, allocations: 7.688 kB / 1.42 GB, free: 8.062 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003292/1.359, allocations: 31.95 kB / 1.42 GB, free: 8.031 MB / 0.8386 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001227/1.36, allocations: 47.86 kB / 1.42 GB, free: 7.992 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.328e-05/1.36, allocations: 19.38 kB / 1.42 GB, free: 7.98 MB / 0.8386 GB Notification: Performance of sorting global known variables: time 0.00024/1.36, allocations: 237.3 kB / 1.421 GB, free: 7.801 MB / 0.8386 GB Notification: Performance of sort global known variables: time 1.6e-07/1.36, allocations: 0 / 1.421 GB, free: 7.801 MB / 0.8386 GB Notification: Performance of remove unused functions: time 0.0007739/1.361, allocations: 259 kB / 1.421 GB, free: 7.547 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.001684/1.362, allocations: 1.489 MB / 1.422 GB, free: 6.301 MB / 0.8386 GB Notification: Performance of simCode: created initialization part: time 0.001399/1.364, allocations: 0.8906 MB / 1.423 GB, free: 5.652 MB / 0.8386 GB Notification: Performance of simCode: created event and clocks part: time 3.336e-06/1.364, allocations: 256 / 1.423 GB, free: 5.652 MB / 0.8386 GB Notification: Performance of simCode: created simulation system equations: time 0.0003596/1.364, allocations: 263.2 kB / 1.423 GB, free: 5.48 MB / 0.8386 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008234/1.365, allocations: 149.3 kB / 1.423 GB, free: 5.359 MB / 0.8386 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001911/1.367, allocations: 0.9033 MB / 1.424 GB, free: 4.543 MB / 0.8386 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005926/1.367, allocations: 0.9196 MB / 1.425 GB, free: 3.613 MB / 0.8386 GB Notification: Performance of simCode: alias equations: time 0.0006293/1.368, allocations: 168.3 kB / 1.425 GB, free: 3.449 MB / 0.8386 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002744/1.368, allocations: 183.8 kB / 1.426 GB, free: 3.398 MB / 0.8386 GB Notification: Performance of SimCode: time 1.001e-06/1.368, allocations: 4 kB / 1.426 GB, free: 3.395 MB / 0.8386 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04053/1.409, allocations: 12.04 MB / 1.437 GB, free: 7.473 MB / 0.8542 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002093/1.409, allocations: 161.6 kB / 1.438 GB, free: 7.273 MB / 0.8542 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.394/3.803, allocations: 0 / 1.438 GB, free: 7.273 MB / 0.8542 GB (rm -f Buildings_latest_Buildings.Electrical.AC.OnePhase.Storage.Examples.AcBattery.pipe ; mkfifo Buildings_latest_Buildings.Electrical.AC.OnePhase.Storage.Examples.AcBattery.pipe ; head -c 1048576 < Buildings_latest_Buildings.Electrical.AC.OnePhase.Storage.Examples.AcBattery.pipe >> ../files/Buildings_latest_Buildings.Electrical.AC.OnePhase.Storage.Examples.AcBattery.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Buildings_latest_Buildings.Electrical.AC.OnePhase.Storage.Examples.AcBattery_res.mat --tempDir=temp_Buildings_latest_Buildings_Electrical_AC_OnePhase_Storage_Examples_AcBattery_fmu --startTime=0 --stopTime=3600 --timeout=50 --tolerance=1e-06 Buildings_latest_Buildings_Electrical_AC_OnePhase_Storage_Examples_AcBattery.fmu > Buildings_latest_Buildings.Electrical.AC.OnePhase.Storage.Examples.AcBattery.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Buildings_latest_Buildings.Electrical.AC.OnePhase.Storage.Examples.AcBattery_res.mat does not exist to compare? outputFormat=mat