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.348/2.348, allocations: 393.5 MB / 408.4 MB, free: 11.09 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.001044/0.001044, allocations: 184 kB / 0.4901 GB, free: 2.238 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.688/1.688, allocations: 223.1 MB / 0.7992 GB, free: 14.71 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.001009/0.001008, allocations: 100.3 kB / 0.9396 GB, free: 1.91 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 0.0005844/0.0005844, allocations: 14.28 kB / 1.09 GB, free: 216.3 MB / 0.823 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3245/0.3251, allocations: 143 MB / 1.229 GB, free: 105.7 MB / 0.823 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.231/0.5562, allocations: 169 MB / 1.394 GB, free: 444 kB / 0.8855 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003023/0.5565, allocations: 99.88 kB / 1.394 GB, free: 344 kB / 0.8855 GB Notification: Performance of FrontEnd - DAE generated: time 0.08273/0.6393, allocations: 29.78 MB / 1.424 GB, free: 2.301 MB / 0.9167 GB Notification: Performance of FrontEnd: time 2.114e-06/0.6393, allocations: 0 / 1.424 GB, free: 2.301 MB / 0.9167 GB Notification: Performance of Transformations before backend: time 5.282e-05/0.6394, allocations: 16 kB / 1.424 GB, free: 2.285 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.002549/0.6419, allocations: 0.9037 MB / 1.424 GB, free: 1.324 MB / 0.9167 GB Notification: Performance of prepare preOptimizeDAE: time 5.192e-05/0.642, allocations: 8.562 kB / 1.424 GB, free: 1.316 MB / 0.9167 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002523/0.6423, allocations: 94.47 kB / 1.425 GB, free: 1.215 MB / 0.9167 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00104/0.6433, allocations: 147 kB / 1.425 GB, free: 1.07 MB / 0.9167 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009859/0.6443, allocations: 452.7 kB / 1.425 GB, free: 0.5859 MB / 0.9167 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.477e-05/0.6444, allocations: 40.98 kB / 1.425 GB, free: 0.5469 MB / 0.9167 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001365/0.6445, allocations: 52 kB / 1.425 GB, free: 0.4961 MB / 0.9167 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.7589/1.403, allocations: 0.6732 MB / 1.426 GB, free: 178.8 MB / 0.9167 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.281e-05/1.404, allocations: 0.8125 kB / 1.426 GB, free: 178.8 MB / 0.9167 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001186/1.404, allocations: 23.02 kB / 1.426 GB, free: 178.8 MB / 0.9167 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000143/1.404, allocations: 44.91 kB / 1.426 GB, free: 178.8 MB / 0.9167 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001436/1.405, allocations: 0.5786 MB / 1.426 GB, free: 178.8 MB / 0.9167 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004071/1.409, allocations: 2.848 MB / 1.429 GB, free: 177.2 MB / 0.9167 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001248/1.411, allocations: 0.5867 MB / 1.43 GB, free: 177.1 MB / 0.9167 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0004415/1.411, allocations: 0.5638 MB / 1.43 GB, free: 176.5 MB / 0.9167 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000859/1.412, allocations: 412.2 kB / 1.431 GB, free: 176.4 MB / 0.9167 GB Notification: Performance of pre-optimization done (n=49): time 3.717e-06/1.412, allocations: 0.7031 kB / 1.431 GB, free: 176.4 MB / 0.9167 GB Notification: Performance of matching and sorting (n=49): time 0.001687/1.414, allocations: 0.7704 MB / 1.432 GB, free: 176.4 MB / 0.9167 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.183e-05/1.414, allocations: 86.38 kB / 1.432 GB, free: 176.3 MB / 0.9167 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004166/1.414, allocations: 326.1 kB / 1.432 GB, free: 176.1 MB / 0.9167 GB Notification: Performance of collectPreVariables (initialization): time 6.281e-05/1.414, allocations: 45.19 kB / 1.432 GB, free: 176.1 MB / 0.9167 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002107/1.414, allocations: 284.3 kB / 1.432 GB, free: 176 MB / 0.9167 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001363/1.415, allocations: 156.3 kB / 1.432 GB, free: 175.9 MB / 0.9167 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.956e-05/1.415, allocations: 13.31 kB / 1.432 GB, free: 175.9 MB / 0.9167 GB Notification: Performance of setup shared object (initialization): time 0.0001335/1.415, allocations: 355.6 kB / 1.433 GB, free: 175.6 MB / 0.9167 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000477/1.415, allocations: 245.4 kB / 1.433 GB, free: 175.6 MB / 0.9167 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005832/1.416, allocations: 366.2 kB / 1.433 GB, free: 175.5 MB / 0.9167 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005474/1.416, allocations: 296 kB / 1.434 GB, free: 175.4 MB / 0.9167 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.158e-06/1.416, allocations: 1.031 kB / 1.434 GB, free: 175.4 MB / 0.9167 GB Notification: Performance of matching and sorting (n=70) (initialization): time 0.001401/1.418, allocations: 0.7085 MB / 1.434 GB, free: 175.3 MB / 0.9167 GB Notification: Performance of prepare postOptimizeDAE: time 0.0003464/1.418, allocations: 1.079 MB / 1.435 GB, free: 174.2 MB / 0.9167 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.472e-05/1.418, allocations: 6.312 kB / 1.435 GB, free: 174.2 MB / 0.9167 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.287e-05/1.418, allocations: 9.688 kB / 1.435 GB, free: 174.2 MB / 0.9167 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006208/1.419, allocations: 117.9 kB / 1.435 GB, free: 174.2 MB / 0.9167 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.886e-05/1.419, allocations: 13.83 kB / 1.435 GB, free: 174.2 MB / 0.9167 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005376/1.419, allocations: 74.08 kB / 1.436 GB, free: 174.2 MB / 0.9167 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.377e-05/1.42, allocations: 26.45 kB / 1.436 GB, free: 174.2 MB / 0.9167 GB Notification: Performance of prepare postOptimizeDAE: time 9.317e-06/1.42, allocations: 2.625 kB / 1.436 GB, free: 174.2 MB / 0.9167 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001152/1.421, allocations: 0.5852 MB / 1.436 GB, free: 174.2 MB / 0.9167 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.474e-06/1.421, allocations: 3.156 kB / 1.436 GB, free: 174.2 MB / 0.9167 GB Notification: Performance of postOpt tearingSystem (initialization): time 9.407e-06/1.421, allocations: 6.344 kB / 1.436 GB, free: 174.2 MB / 0.9167 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004415/1.421, allocations: 110.5 kB / 1.436 GB, free: 174.2 MB / 0.9167 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.197e-05/1.421, allocations: 7.047 kB / 1.436 GB, free: 174.2 MB / 0.9167 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004641/1.422, allocations: 61.47 kB / 1.436 GB, free: 174.2 MB / 0.9167 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.512e-05/1.422, allocations: 20.55 kB / 1.436 GB, free: 174.2 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.0005228/1.422, allocations: 304.6 kB / 1.437 GB, free: 174 MB / 0.9167 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001176/1.422, allocations: 48.09 kB / 1.437 GB, free: 173.9 MB / 0.9167 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00126/1.424, allocations: 0.6108 MB / 1.437 GB, free: 173.9 MB / 0.9167 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.756e-06/1.424, allocations: 5.125 kB / 1.437 GB, free: 173.9 MB / 0.9167 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.504e-06/1.424, allocations: 1.375 kB / 1.437 GB, free: 173.9 MB / 0.9167 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.027e-06/1.424, allocations: 2.484 kB / 1.437 GB, free: 173.9 MB / 0.9167 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009434/1.425, allocations: 0.6335 MB / 1.438 GB, free: 173.7 MB / 0.9167 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.967e-06/1.425, allocations: 5.172 kB / 1.438 GB, free: 173.7 MB / 0.9167 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005107/1.425, allocations: 97.7 kB / 1.438 GB, free: 173.7 MB / 0.9167 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.312e-06/1.425, allocations: 2.891 kB / 1.438 GB, free: 173.7 MB / 0.9167 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.95e-05/1.425, allocations: 10.69 kB / 1.438 GB, free: 173.7 MB / 0.9167 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.771e-06/1.425, allocations: 4.266 kB / 1.438 GB, free: 173.7 MB / 0.9167 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.174e-06/1.425, allocations: 4.062 kB / 1.438 GB, free: 173.7 MB / 0.9167 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00163/1.427, allocations: 0.9353 MB / 1.439 GB, free: 173.6 MB / 0.9167 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002625/1.427, allocations: 183.8 kB / 1.439 GB, free: 173.4 MB / 0.9167 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.962e-05/1.427, allocations: 15.34 kB / 1.439 GB, free: 173.4 MB / 0.9167 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003508/1.428, allocations: 39.75 kB / 1.439 GB, free: 173.4 MB / 0.9167 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001765/1.428, allocations: 52.44 kB / 1.439 GB, free: 173.4 MB / 0.9167 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.101e-05/1.428, allocations: 20.78 kB / 1.439 GB, free: 173.4 MB / 0.9167 GB Notification: Performance of sorting global known variables: time 0.0003246/1.428, allocations: 257 kB / 1.439 GB, free: 173.4 MB / 0.9167 GB Notification: Performance of sort global known variables: time 1.5e-07/1.428, allocations: 1.594 kB / 1.439 GB, free: 173.4 MB / 0.9167 GB Notification: Performance of remove unused functions: time 0.00091/1.429, allocations: 281.9 kB / 1.44 GB, free: 173.3 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.002132/1.431, allocations: 1.595 MB / 1.441 GB, free: 172.6 MB / 0.9167 GB Notification: Performance of simCode: created initialization part: time 0.002132/1.433, allocations: 1.007 MB / 1.442 GB, free: 172.5 MB / 0.9167 GB Notification: Performance of simCode: created event and clocks part: time 5.761e-06/1.433, allocations: 1.562 kB / 1.442 GB, free: 172.5 MB / 0.9167 GB Notification: Performance of simCode: created simulation system equations: time 0.000583/1.434, allocations: 288.2 kB / 1.443 GB, free: 172.5 MB / 0.9167 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007859/1.435, allocations: 159.5 kB / 1.443 GB, free: 172.4 MB / 0.9167 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006414/1.441, allocations: 4.886 MB / 1.447 GB, free: 169.7 MB / 0.9167 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005376/1.442, allocations: 0.9121 MB / 1.448 GB, free: 169 MB / 0.9167 GB Notification: Performance of simCode: alias equations: time 0.0006818/1.442, allocations: 146.6 kB / 1.449 GB, free: 169 MB / 0.9167 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003453/1.443, allocations: 194.5 kB / 1.449 GB, free: 169 MB / 0.9167 GB Notification: Performance of SimCode: time 1.342e-06/1.443, allocations: 0 / 1.449 GB, free: 169 MB / 0.9167 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0323/1.475, allocations: 12.17 MB / 1.461 GB, free: 168.4 MB / 0.9167 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001678/1.475, allocations: 187.7 kB / 1.461 GB, free: 168.2 MB / 0.9167 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.583/4.059, allocations: 0.5625 kB / 1.461 GB, free: 168.2 MB / 0.9167 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