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.536/2.536, allocations: 390.3 MB / 402.8 MB, free: 6.664 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.001694/0.001694, allocations: 180.9 kB / 496.1 MB, free: 12.87 MB / 410.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.491/1.491, allocations: 221.3 MB / 0.7915 GB, free: 5.418 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.001076/0.001076, allocations: 91.94 kB / 0.9317 GB, free: 5.723 MB / 0.698 GB Notification: Performance of FrontEnd - loaded program: time 5.468e-05/5.504e-05, allocations: 4 kB / 1.079 GB, free: 140.5 MB / 0.7292 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2933/0.2934, allocations: 143 MB / 1.219 GB, free: 13.44 MB / 0.7448 GB Notification: Performance of FrontEnd - scodeFlatten: time 1.084/1.378, allocations: 169 MB / 1.384 GB, free: 2.531 MB / 0.8386 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0004537/1.378, allocations: 93.94 kB / 1.384 GB, free: 2.48 MB / 0.8386 GB Notification: Performance of FrontEnd - DAE generated: time 0.1101/1.488, allocations: 29.65 MB / 1.413 GB, free: 9.449 MB / 0.8698 GB Notification: Performance of FrontEnd: time 2.224e-06/1.488, allocations: 4 kB / 1.413 GB, free: 9.445 MB / 0.8698 GB Notification: Performance of Transformations before backend: time 7.101e-05/1.489, allocations: 12 kB / 1.413 GB, free: 9.434 MB / 0.8698 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.002494/1.491, allocations: 0.8299 MB / 1.414 GB, free: 8.59 MB / 0.8698 GB Notification: Performance of prepare preOptimizeDAE: time 6.341e-05/1.491, allocations: 12.03 kB / 1.414 GB, free: 8.578 MB / 0.8698 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000213/1.491, allocations: 94.89 kB / 1.414 GB, free: 8.504 MB / 0.8698 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001179/1.493, allocations: 151 kB / 1.414 GB, free: 8.355 MB / 0.8698 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009153/1.493, allocations: 444 kB / 1.414 GB, free: 7.945 MB / 0.8698 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.026e-05/1.494, allocations: 46.92 kB / 1.414 GB, free: 7.914 MB / 0.8698 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.628e-05/1.494, allocations: 53.12 kB / 1.414 GB, free: 7.879 MB / 0.8698 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001175/1.495, allocations: 0.6472 MB / 1.415 GB, free: 7.395 MB / 0.8698 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.616e-05/1.495, allocations: 4 kB / 1.415 GB, free: 7.391 MB / 0.8698 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.791e-05/1.495, allocations: 24.55 kB / 1.415 GB, free: 7.383 MB / 0.8698 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.058e-05/1.495, allocations: 52.36 kB / 1.415 GB, free: 7.336 MB / 0.8698 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000892/1.496, allocations: 0.5204 MB / 1.416 GB, free: 6.988 MB / 0.8698 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004819/1.501, allocations: 2.843 MB / 1.418 GB, free: 4.363 MB / 0.8698 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0009039/1.502, allocations: 0.5449 MB / 1.419 GB, free: 3.977 MB / 0.8698 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003343/1.502, allocations: 245.1 kB / 1.419 GB, free: 3.82 MB / 0.8698 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0005024/1.503, allocations: 0.5688 MB / 1.42 GB, free: 3.125 MB / 0.8698 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005788/1.503, allocations: 381.3 kB / 1.42 GB, free: 2.832 MB / 0.8698 GB Notification: Performance of pre-optimization done (n=49): time 3.286e-06/1.503, allocations: 4 kB / 1.42 GB, free: 2.828 MB / 0.8698 GB Notification: Performance of matching and sorting (n=49): time 0.0009185/1.504, allocations: 0.5159 MB / 1.421 GB, free: 2.449 MB / 0.8698 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.248e-05/1.504, allocations: 81.55 kB / 1.421 GB, free: 2.352 MB / 0.8698 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003882/1.505, allocations: 321.6 kB / 1.421 GB, free: 2.094 MB / 0.8698 GB Notification: Performance of collectPreVariables (initialization): time 5.855e-05/1.505, allocations: 44.33 kB / 1.421 GB, free: 2.055 MB / 0.8698 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001895/1.505, allocations: 281.5 kB / 1.421 GB, free: 1.844 MB / 0.8698 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001288/1.505, allocations: 158 kB / 1.422 GB, free: 1.711 MB / 0.8698 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.925e-05/1.505, allocations: 9.688 kB / 1.422 GB, free: 1.711 MB / 0.8698 GB Notification: Performance of setup shared object (initialization): time 0.0001689/1.505, allocations: 362.8 kB / 1.422 GB, free: 1.367 MB / 0.8698 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003345/1.505, allocations: 219.6 kB / 1.422 GB, free: 1.234 MB / 0.8698 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004205/1.506, allocations: 343.6 kB / 1.422 GB, free: 0.9531 MB / 0.8698 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003857/1.506, allocations: 265.9 kB / 1.423 GB, free: 0.7695 MB / 0.8698 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.86e-06/1.506, allocations: 8 kB / 1.423 GB, free: 0.7617 MB / 0.8698 GB Notification: Performance of matching and sorting (n=70) (initialization): time 0.001011/1.507, allocations: 0.6645 MB / 1.423 GB, free: 276 kB / 0.8698 GB Notification: Performance of prepare postOptimizeDAE: time 0.0006037/1.508, allocations: 1.073 MB / 1.424 GB, free: 15.13 MB / 0.8855 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.177e-06/1.508, allocations: 0 / 1.424 GB, free: 15.13 MB / 0.8855 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.573e-05/1.508, allocations: 12 kB / 1.424 GB, free: 15.12 MB / 0.8855 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006413/1.509, allocations: 111.1 kB / 1.424 GB, free: 15.01 MB / 0.8855 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.463e-05/1.509, allocations: 4 kB / 1.424 GB, free: 15.01 MB / 0.8855 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004983/1.509, allocations: 82.23 kB / 1.425 GB, free: 14.94 MB / 0.8855 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.614e-05/1.509, allocations: 19.75 kB / 1.425 GB, free: 14.92 MB / 0.8855 GB Notification: Performance of prepare postOptimizeDAE: time 9.127e-06/1.509, allocations: 4 kB / 1.425 GB, free: 14.92 MB / 0.8855 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0008398/1.51, allocations: 0.5464 MB / 1.425 GB, free: 14.54 MB / 0.8855 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.44e-06/1.51, allocations: 4 kB / 1.425 GB, free: 14.53 MB / 0.8855 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.099e-05/1.51, allocations: 8 kB / 1.425 GB, free: 14.52 MB / 0.8855 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004375/1.511, allocations: 106.7 kB / 1.425 GB, free: 14.42 MB / 0.8855 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.955e-06/1.511, allocations: 4 kB / 1.425 GB, free: 14.42 MB / 0.8855 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004092/1.511, allocations: 73.19 kB / 1.425 GB, free: 14.36 MB / 0.8855 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.126e-05/1.511, allocations: 23.31 kB / 1.425 GB, free: 14.34 MB / 0.8855 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.0002242/1.511, allocations: 147 kB / 1.425 GB, free: 14.2 MB / 0.8855 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.953e-05/1.511, allocations: 51.39 kB / 1.426 GB, free: 14.15 MB / 0.8855 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001065/1.512, allocations: 0.5622 MB / 1.426 GB, free: 13.68 MB / 0.8855 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.658e-06/1.513, allocations: 12 kB / 1.426 GB, free: 13.66 MB / 0.8855 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.39e-06/1.513, allocations: 0 / 1.426 GB, free: 13.66 MB / 0.8855 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.373e-06/1.513, allocations: 320 / 1.426 GB, free: 13.66 MB / 0.8855 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008492/1.513, allocations: 0.6341 MB / 1.427 GB, free: 12.98 MB / 0.8855 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.639e-06/1.513, allocations: 4 kB / 1.427 GB, free: 12.97 MB / 0.8855 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004901/1.514, allocations: 99.8 kB / 1.427 GB, free: 12.88 MB / 0.8855 GB Notification: Performance of postOpt tearingSystem (simulation): time 8.897e-06/1.514, allocations: 7.953 kB / 1.427 GB, free: 12.87 MB / 0.8855 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.129e-05/1.514, allocations: 11.98 kB / 1.427 GB, free: 12.86 MB / 0.8855 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.27e-06/1.514, allocations: 4 kB / 1.427 GB, free: 12.85 MB / 0.8855 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.255e-06/1.514, allocations: 0 / 1.427 GB, free: 12.85 MB / 0.8855 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001298/1.515, allocations: 0.858 MB / 1.428 GB, free: 11.97 MB / 0.8855 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002613/1.516, allocations: 188.4 kB / 1.428 GB, free: 11.77 MB / 0.8855 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.299e-05/1.516, allocations: 12 kB / 1.428 GB, free: 11.75 MB / 0.8855 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003371/1.516, allocations: 39.95 kB / 1.428 GB, free: 11.71 MB / 0.8855 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001537/1.516, allocations: 56.3 kB / 1.428 GB, free: 11.66 MB / 0.8855 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.878e-05/1.516, allocations: 16 kB / 1.428 GB, free: 11.64 MB / 0.8855 GB Notification: Performance of sorting global known variables: time 0.0003316/1.517, allocations: 253.2 kB / 1.428 GB, free: 11.39 MB / 0.8855 GB Notification: Performance of sort global known variables: time 4.11e-07/1.517, allocations: 0 / 1.428 GB, free: 11.39 MB / 0.8855 GB Notification: Performance of remove unused functions: time 0.0008743/1.517, allocations: 291 kB / 1.428 GB, free: 11.11 MB / 0.8855 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.001874/1.519, allocations: 1.531 MB / 1.43 GB, free: 9.547 MB / 0.8855 GB Notification: Performance of simCode: created initialization part: time 0.001626/1.521, allocations: 0.9339 MB / 1.431 GB, free: 8.586 MB / 0.8855 GB Notification: Performance of simCode: created event and clocks part: time 3.877e-06/1.521, allocations: 0 / 1.431 GB, free: 8.586 MB / 0.8855 GB Notification: Performance of simCode: created simulation system equations: time 0.0004185/1.521, allocations: 270.5 kB / 1.431 GB, free: 8.32 MB / 0.8855 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008541/1.522, allocations: 161 kB / 1.431 GB, free: 8.168 MB / 0.8855 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002029/1.524, allocations: 0.9504 MB / 1.432 GB, free: 7.176 MB / 0.8855 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000704/1.525, allocations: 0.919 MB / 1.433 GB, free: 6.23 MB / 0.8855 GB Notification: Performance of simCode: alias equations: time 0.0006593/1.526, allocations: 160.4 kB / 1.433 GB, free: 6.07 MB / 0.8855 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003107/1.526, allocations: 187.4 kB / 1.433 GB, free: 5.891 MB / 0.8855 GB Notification: Performance of SimCode: time 1.473e-06/1.526, allocations: 0 / 1.433 GB, free: 5.891 MB / 0.8855 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03182/1.558, allocations: 12.7 MB / 1.446 GB, free: 9.434 MB / 0.9011 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001915/1.558, allocations: 168.8 kB / 1.446 GB, free: 9.207 MB / 0.9011 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.534/4.093, allocations: 0 / 1.446 GB, free: 9.207 MB / 0.9011 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