Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_9_Buildings.Electrical.AC.OnePhase.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.OnePhase.Storage.Examples.AcBattery,fileNamePrefix="Buildings_9_Buildings_Electrical_AC_OnePhase_Storage_Examples_AcBattery",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Electrical.AC.OnePhase.Storage.Examples.AcBattery,fileNamePrefix="Buildings_9_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 9.1.1-maint.9.1.x/package.mo): time 2.349/2.349, allocations: 390.3 MB / 405.3 MB, free: 13.46 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.001137/0.001137, allocations: 169.2 kB / 498.1 MB, free: 5.742 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.584/1.584, allocations: 223.1 MB / 0.7948 GB, free: 17.92 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.0009567/0.0009569, allocations: 99.7 kB / 0.9346 GB, free: 6.195 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 0.0004343/0.0004343, allocations: 13.52 kB / 1.084 GB, free: 221.4 MB / 0.823 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3191/0.3195, allocations: 142.3 MB / 1.223 GB, free: 114.1 MB / 0.823 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.2082/0.5278, allocations: 168.2 MB / 1.387 GB, free: 9.688 MB / 0.8855 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003022/0.5281, allocations: 95.94 kB / 1.387 GB, free: 9.594 MB / 0.8855 GB Notification: Performance of FrontEnd - DAE generated: time 0.07989/0.6081, allocations: 29.8 MB / 1.416 GB, free: 11.54 MB / 0.9167 GB Notification: Performance of FrontEnd: time 2.455e-06/0.6081, allocations: 0 / 1.416 GB, free: 11.54 MB / 0.9167 GB Notification: Performance of Transformations before backend: time 5.121e-05/0.6082, allocations: 16 kB / 1.416 GB, free: 11.52 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.002225/0.6104, allocations: 0.8968 MB / 1.417 GB, free: 10.57 MB / 0.9167 GB Notification: Performance of prepare preOptimizeDAE: time 5.213e-05/0.6105, allocations: 8.031 kB / 1.417 GB, free: 10.56 MB / 0.9167 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002443/0.6107, allocations: 102.4 kB / 1.417 GB, free: 10.45 MB / 0.9167 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000978/0.6117, allocations: 147.1 kB / 1.418 GB, free: 10.3 MB / 0.9167 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007557/0.6125, allocations: 444.8 kB / 1.418 GB, free: 9.828 MB / 0.9167 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.248e-05/0.6125, allocations: 33 kB / 1.418 GB, free: 9.797 MB / 0.9167 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.018e-05/0.6126, allocations: 55.98 kB / 1.418 GB, free: 9.742 MB / 0.9167 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00114/0.6138, allocations: 0.6809 MB / 1.419 GB, free: 9.031 MB / 0.9167 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.593e-05/0.6138, allocations: 3.938 kB / 1.419 GB, free: 9.027 MB / 0.9167 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.673e-05/0.6139, allocations: 23.98 kB / 1.419 GB, free: 9.004 MB / 0.9167 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.131e-05/0.6139, allocations: 52.86 kB / 1.419 GB, free: 8.953 MB / 0.9167 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001045/0.615, allocations: 0.5699 MB / 1.419 GB, free: 8.383 MB / 0.9167 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003413/0.6184, allocations: 2.845 MB / 1.422 GB, free: 5.312 MB / 0.9167 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001094/0.6195, allocations: 0.5904 MB / 1.423 GB, free: 4.703 MB / 0.9167 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0005418/0.6201, allocations: 0.5662 MB / 1.423 GB, free: 4.008 MB / 0.9167 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007135/0.6208, allocations: 411.7 kB / 1.424 GB, free: 3.586 MB / 0.9167 GB Notification: Performance of pre-optimization done (n=49): time 2.735e-06/0.6208, allocations: 0 / 1.424 GB, free: 3.586 MB / 0.9167 GB Notification: Performance of matching and sorting (n=49): time 0.001528/0.6224, allocations: 0.7756 MB / 1.424 GB, free: 2.809 MB / 0.9167 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.752e-05/0.6224, allocations: 81.55 kB / 1.424 GB, free: 2.707 MB / 0.9167 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000382/0.6228, allocations: 324.9 kB / 1.425 GB, free: 2.379 MB / 0.9167 GB Notification: Performance of collectPreVariables (initialization): time 6.221e-05/0.6229, allocations: 45.7 kB / 1.425 GB, free: 2.328 MB / 0.9167 GB Notification: Performance of collectInitialEqns (initialization): time 0.000214/0.6231, allocations: 284.6 kB / 1.425 GB, free: 2.047 MB / 0.9167 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001399/0.6233, allocations: 165.7 kB / 1.425 GB, free: 1.883 MB / 0.9167 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.209e-05/0.6233, allocations: 8 kB / 1.425 GB, free: 1.875 MB / 0.9167 GB Notification: Performance of setup shared object (initialization): time 0.0001733/0.6235, allocations: 362.7 kB / 1.426 GB, free: 1.512 MB / 0.9167 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004575/0.6239, allocations: 241 kB / 1.426 GB, free: 1.277 MB / 0.9167 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005719/0.6245, allocations: 370.3 kB / 1.426 GB, free: 0.8672 MB / 0.9167 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005518/0.6251, allocations: 302.2 kB / 1.426 GB, free: 0.5664 MB / 0.9167 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.408e-06/0.6251, allocations: 0 / 1.426 GB, free: 0.5664 MB / 0.9167 GB Notification: Performance of matching and sorting (n=70) (initialization): time 0.7651/1.39, allocations: 0.6933 MB / 1.427 GB, free: 185.6 MB / 0.9167 GB Notification: Performance of prepare postOptimizeDAE: time 0.0004394/1.391, allocations: 1.083 MB / 1.428 GB, free: 184.5 MB / 0.9167 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.685e-05/1.391, allocations: 2.188 kB / 1.428 GB, free: 184.5 MB / 0.9167 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.987e-05/1.391, allocations: 6.938 kB / 1.428 GB, free: 184.5 MB / 0.9167 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009956/1.392, allocations: 115.1 kB / 1.428 GB, free: 184.5 MB / 0.9167 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.89e-05/1.392, allocations: 10.44 kB / 1.428 GB, free: 184.5 MB / 0.9167 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009151/1.393, allocations: 69.95 kB / 1.428 GB, free: 184.5 MB / 0.9167 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.65e-05/1.393, allocations: 19.28 kB / 1.428 GB, free: 184.5 MB / 0.9167 GB Notification: Performance of prepare postOptimizeDAE: time 1.735e-05/1.393, allocations: 4.312 kB / 1.428 GB, free: 184.5 MB / 0.9167 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001762/1.395, allocations: 0.5936 MB / 1.429 GB, free: 184.5 MB / 0.9167 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.837e-06/1.395, allocations: 3.219 kB / 1.429 GB, free: 184.5 MB / 0.9167 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.604e-05/1.395, allocations: 5.781 kB / 1.429 GB, free: 184.5 MB / 0.9167 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006629/1.395, allocations: 111.5 kB / 1.429 GB, free: 184.5 MB / 0.9167 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.432e-05/1.395, allocations: 4.688 kB / 1.429 GB, free: 184.5 MB / 0.9167 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007551/1.396, allocations: 73.16 kB / 1.429 GB, free: 184.5 MB / 0.9167 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.585e-05/1.396, allocations: 22.19 kB / 1.429 GB, free: 184.5 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.0006097/1.397, allocations: 302.3 kB / 1.43 GB, free: 184.3 MB / 0.9167 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001411/1.397, allocations: 46.5 kB / 1.43 GB, free: 184.3 MB / 0.9167 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00194/1.399, allocations: 0.6043 MB / 1.43 GB, free: 184.2 MB / 0.9167 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.383e-05/1.399, allocations: 6.453 kB / 1.43 GB, free: 184.2 MB / 0.9167 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.118e-05/1.399, allocations: 3.156 kB / 1.43 GB, free: 184.2 MB / 0.9167 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.586e-05/1.399, allocations: 6.438 kB / 1.43 GB, free: 184.2 MB / 0.9167 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00146/1.401, allocations: 0.6345 MB / 1.431 GB, free: 184.1 MB / 0.9167 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.191e-06/1.401, allocations: 0.6562 kB / 1.431 GB, free: 184.1 MB / 0.9167 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008154/1.401, allocations: 96.42 kB / 1.431 GB, free: 184.1 MB / 0.9167 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.147e-05/1.401, allocations: 4.906 kB / 1.431 GB, free: 184.1 MB / 0.9167 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.887e-05/1.401, allocations: 10.94 kB / 1.431 GB, free: 184.1 MB / 0.9167 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.376e-06/1.401, allocations: 5.781 kB / 1.431 GB, free: 184.1 MB / 0.9167 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.36e-06/1.401, allocations: 3.453 kB / 1.431 GB, free: 184.1 MB / 0.9167 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002655/1.404, allocations: 0.9371 MB / 1.432 GB, free: 183.9 MB / 0.9167 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0004136/1.405, allocations: 183.7 kB / 1.432 GB, free: 183.8 MB / 0.9167 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001139/1.405, allocations: 9.594 kB / 1.432 GB, free: 183.8 MB / 0.9167 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005391/1.405, allocations: 40.41 kB / 1.432 GB, free: 183.8 MB / 0.9167 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002234/1.406, allocations: 55.38 kB / 1.432 GB, free: 183.8 MB / 0.9167 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.808e-05/1.406, allocations: 17.19 kB / 1.432 GB, free: 183.8 MB / 0.9167 GB Notification: Performance of sorting global known variables: time 0.0005372/1.406, allocations: 259.3 kB / 1.432 GB, free: 183.8 MB / 0.9167 GB Notification: Performance of sort global known variables: time 2.7e-07/1.406, allocations: 0 / 1.432 GB, free: 183.8 MB / 0.9167 GB Notification: Performance of remove unused functions: time 0.001632/1.408, allocations: 283.7 kB / 1.433 GB, free: 183.7 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.003581/1.411, allocations: 1.592 MB / 1.434 GB, free: 183 MB / 0.9167 GB Notification: Performance of simCode: created initialization part: time 0.00335/1.415, allocations: 1.002 MB / 1.435 GB, free: 182.9 MB / 0.9167 GB Notification: Performance of simCode: created event and clocks part: time 7.294e-06/1.415, allocations: 1.219 kB / 1.435 GB, free: 182.9 MB / 0.9167 GB Notification: Performance of simCode: created simulation system equations: time 0.000854/1.416, allocations: 287 kB / 1.435 GB, free: 182.9 MB / 0.9167 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00102/1.417, allocations: 161.6 kB / 1.436 GB, free: 182.9 MB / 0.9167 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007297/1.424, allocations: 4.878 MB / 1.44 GB, free: 180.2 MB / 0.9167 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006064/1.425, allocations: 0.9129 MB / 1.441 GB, free: 179.5 MB / 0.9167 GB Notification: Performance of simCode: alias equations: time 0.0008027/1.425, allocations: 154 kB / 1.441 GB, free: 179.5 MB / 0.9167 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003829/1.426, allocations: 191.5 kB / 1.442 GB, free: 179.5 MB / 0.9167 GB Notification: Performance of SimCode: time 1.954e-06/1.426, allocations: 0 / 1.442 GB, free: 179.5 MB / 0.9167 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04459/1.47, allocations: 12.15 MB / 1.453 GB, free: 178.9 MB / 0.9167 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002444/1.471, allocations: 193.1 kB / 1.454 GB, free: 178.7 MB / 0.9167 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.532/4.003, allocations: 3.938 kB / 1.454 GB, free: 178.7 MB / 0.9167 GB (rm -f Buildings_9_Buildings.Electrical.AC.OnePhase.Storage.Examples.AcBattery.pipe ; mkfifo Buildings_9_Buildings.Electrical.AC.OnePhase.Storage.Examples.AcBattery.pipe ; head -c 1048576 < Buildings_9_Buildings.Electrical.AC.OnePhase.Storage.Examples.AcBattery.pipe >> ../files/Buildings_9_Buildings.Electrical.AC.OnePhase.Storage.Examples.AcBattery.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Buildings_9_Buildings.Electrical.AC.OnePhase.Storage.Examples.AcBattery_res.mat --tempDir=temp_Buildings_9_Buildings_Electrical_AC_OnePhase_Storage_Examples_AcBattery_fmu --startTime=0 --stopTime=3600 --timeout=50 --tolerance=1e-06 Buildings_9_Buildings_Electrical_AC_OnePhase_Storage_Examples_AcBattery.fmu > Buildings_9_Buildings.Electrical.AC.OnePhase.Storage.Examples.AcBattery.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Buildings_9_Buildings.Electrical.AC.OnePhase.Storage.Examples.AcBattery_res.mat does not exist to compare? outputFormat=mat