Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_maint.8.0.x_Buildings.Electrical.AC.ThreePhasesBalanced.Storage.Examples.AcBattery.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.1-maint.8.0.x/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Using package Buildings with version 8.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.1-maint.8.0.x/package.mo) Running command: "" <> buildModelFMU(Buildings.Electrical.AC.ThreePhasesBalanced.Storage.Examples.AcBattery,fileNamePrefix="Buildings_maint_8_0_x_Buildings_Electrical_AC_ThreePhasesBalanced_Storage_Examples_AcBattery",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Electrical.AC.ThreePhasesBalanced.Storage.Examples.AcBattery,fileNamePrefix="Buildings_maint_8_0_x_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 8.0.1-maint.8.0.x/package.mo): time 1.813/1.813, allocations: 288.2 MB / 303.2 MB, free: 8.207 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001131/0.001131, allocations: 182.3 kB / 371.8 MB, free: 10.28 MB / 298.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.715/1.715, allocations: 205.4 MB / 0.6305 GB, free: 10.02 MB / 458.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0009077/0.0009075, allocations: 97.7 kB / 0.7439 GB, free: 5.949 MB / 0.5573 GB Notification: Performance of FrontEnd - loaded program: time 0.0004557/0.000456, allocations: 10.16 kB / 0.8669 GB, free: 142.1 MB / 0.6198 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2564/0.2568, allocations: 115.3 MB / 0.9795 GB, free: 27.61 MB / 0.6198 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.8247/1.082, allocations: 158.2 MB / 1.134 GB, free: 15.45 MB / 0.6823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000289/1.082, allocations: 98.66 kB / 1.134 GB, free: 15.43 MB / 0.6823 GB Notification: Performance of FrontEnd - DAE generated: time 0.07011/1.152, allocations: 29.52 MB / 1.163 GB, free: 14.76 MB / 0.698 GB Notification: Performance of FrontEnd: time 2.485e-06/1.152, allocations: 0 / 1.163 GB, free: 14.76 MB / 0.698 GB Notification: Performance of Transformations before backend: time 6.119e-05/1.152, allocations: 16 kB / 1.163 GB, free: 14.74 MB / 0.698 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.002636/1.155, allocations: 0.8798 MB / 1.164 GB, free: 13.85 MB / 0.698 GB Notification: Performance of prepare preOptimizeDAE: time 5.922e-05/1.155, allocations: 12.03 kB / 1.164 GB, free: 13.84 MB / 0.698 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003097/1.155, allocations: 91.27 kB / 1.164 GB, free: 13.77 MB / 0.698 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001112/1.156, allocations: 150.5 kB / 1.164 GB, free: 13.62 MB / 0.698 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001012/1.157, allocations: 444.3 kB / 1.164 GB, free: 13.21 MB / 0.698 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.453e-05/1.157, allocations: 40.98 kB / 1.164 GB, free: 13.18 MB / 0.698 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001536/1.158, allocations: 50.62 kB / 1.165 GB, free: 13.15 MB / 0.698 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001372/1.159, allocations: 0.6801 MB / 1.165 GB, free: 12.63 MB / 0.698 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.834e-05/1.159, allocations: 0 / 1.165 GB, free: 12.63 MB / 0.698 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.395e-05/1.159, allocations: 25.73 kB / 1.165 GB, free: 12.62 MB / 0.698 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.024e-05/1.159, allocations: 44.2 kB / 1.165 GB, free: 12.58 MB / 0.698 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001182/1.16, allocations: 0.5758 MB / 1.166 GB, free: 12.18 MB / 0.698 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004036/1.164, allocations: 2.834 MB / 1.169 GB, free: 9.57 MB / 0.698 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001146/1.166, allocations: 0.5897 MB / 1.169 GB, free: 9.141 MB / 0.698 GB Notification: Performance of preOpt evalFunc (simulation): time 0.000464/1.166, allocations: 0.5619 MB / 1.17 GB, free: 8.453 MB / 0.698 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007255/1.167, allocations: 416.3 kB / 1.17 GB, free: 8.125 MB / 0.698 GB Notification: Performance of pre-optimization done (n=49): time 7.384e-06/1.167, allocations: 0 / 1.17 GB, free: 8.125 MB / 0.698 GB Notification: Performance of matching and sorting (n=49): time 0.001608/1.168, allocations: 0.7758 MB / 1.171 GB, free: 7.566 MB / 0.698 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.003e-05/1.169, allocations: 85.48 kB / 1.171 GB, free: 7.465 MB / 0.698 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003849/1.169, allocations: 300.4 kB / 1.171 GB, free: 7.223 MB / 0.698 GB Notification: Performance of collectPreVariables (initialization): time 7.938e-05/1.169, allocations: 48.19 kB / 1.171 GB, free: 7.18 MB / 0.698 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002369/1.169, allocations: 279.8 kB / 1.172 GB, free: 6.965 MB / 0.698 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001595/1.169, allocations: 156.3 kB / 1.172 GB, free: 6.832 MB / 0.698 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.271e-05/1.17, allocations: 10.5 kB / 1.172 GB, free: 6.832 MB / 0.698 GB Notification: Performance of setup shared object (initialization): time 0.0001433/1.17, allocations: 355.4 kB / 1.172 GB, free: 6.492 MB / 0.698 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004726/1.17, allocations: 244.6 kB / 1.172 GB, free: 6.344 MB / 0.698 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005199/1.171, allocations: 366 kB / 1.173 GB, free: 6.035 MB / 0.698 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005171/1.171, allocations: 298.6 kB / 1.173 GB, free: 5.84 MB / 0.698 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.35e-06/1.171, allocations: 4 kB / 1.173 GB, free: 5.836 MB / 0.698 GB Notification: Performance of matching and sorting (n=70) (initialization): time 0.001234/1.172, allocations: 0.7059 MB / 1.174 GB, free: 5.32 MB / 0.698 GB Notification: Performance of prepare postOptimizeDAE: time 0.0004403/1.173, allocations: 1.078 MB / 1.175 GB, free: 4.176 MB / 0.698 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.341e-05/1.173, allocations: 4 kB / 1.175 GB, free: 4.172 MB / 0.698 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.525e-05/1.173, allocations: 4 kB / 1.175 GB, free: 4.168 MB / 0.698 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005909/1.174, allocations: 115.3 kB / 1.175 GB, free: 4.059 MB / 0.698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.149e-05/1.174, allocations: 11.92 kB / 1.175 GB, free: 4.047 MB / 0.698 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005537/1.174, allocations: 74.14 kB / 1.175 GB, free: 3.984 MB / 0.698 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.721e-05/1.174, allocations: 23.61 kB / 1.175 GB, free: 3.965 MB / 0.698 GB Notification: Performance of prepare postOptimizeDAE: time 1.144e-05/1.174, allocations: 4 kB / 1.175 GB, free: 3.961 MB / 0.698 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001035/1.175, allocations: 0.5878 MB / 1.175 GB, free: 3.555 MB / 0.698 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.012e-05/1.175, allocations: 4 kB / 1.175 GB, free: 3.551 MB / 0.698 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.017e-05/1.175, allocations: 4 kB / 1.175 GB, free: 3.547 MB / 0.698 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000428/1.176, allocations: 113 kB / 1.176 GB, free: 3.441 MB / 0.698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.607e-05/1.176, allocations: 7.953 kB / 1.176 GB, free: 3.434 MB / 0.698 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004603/1.176, allocations: 69.62 kB / 1.176 GB, free: 3.375 MB / 0.698 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.699e-05/1.176, allocations: 19.06 kB / 1.176 GB, free: 3.359 MB / 0.698 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.000428/1.177, allocations: 302.8 kB / 1.176 GB, free: 3.105 MB / 0.698 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001/1.177, allocations: 47.44 kB / 1.176 GB, free: 3.059 MB / 0.698 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001181/1.178, allocations: 0.624 MB / 1.177 GB, free: 2.629 MB / 0.698 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.574e-06/1.178, allocations: 4 kB / 1.177 GB, free: 2.625 MB / 0.698 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.495e-06/1.178, allocations: 7.953 kB / 1.177 GB, free: 2.617 MB / 0.698 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.111e-06/1.178, allocations: 0 / 1.177 GB, free: 2.617 MB / 0.698 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008233/1.179, allocations: 0.6195 MB / 1.177 GB, free: 2.105 MB / 0.698 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.463e-06/1.179, allocations: 4 kB / 1.177 GB, free: 2.102 MB / 0.698 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004982/1.179, allocations: 91.05 kB / 1.177 GB, free: 2.016 MB / 0.698 GB Notification: Performance of postOpt tearingSystem (simulation): time 8.536e-06/1.179, allocations: 11.94 kB / 1.177 GB, free: 2.004 MB / 0.698 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.442e-05/1.18, allocations: 15.48 kB / 1.177 GB, free: 1.996 MB / 0.698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.815e-06/1.18, allocations: 0 / 1.177 GB, free: 1.996 MB / 0.698 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.893e-06/1.18, allocations: 0 / 1.177 GB, free: 1.996 MB / 0.698 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001503/1.181, allocations: 0.935 MB / 1.178 GB, free: 1.324 MB / 0.698 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002938/1.181, allocations: 183.9 kB / 1.178 GB, free: 1.152 MB / 0.698 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.915e-05/1.181, allocations: 10.69 kB / 1.178 GB, free: 1.148 MB / 0.698 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003625/1.182, allocations: 42.95 kB / 1.179 GB, free: 1.113 MB / 0.698 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001421/1.182, allocations: 54.88 kB / 1.179 GB, free: 1.07 MB / 0.698 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.941e-05/1.182, allocations: 14.8 kB / 1.179 GB, free: 1.059 MB / 0.698 GB Notification: Performance of sorting global known variables: time 0.000263/1.182, allocations: 243.7 kB / 1.179 GB, free: 0.8672 MB / 0.698 GB Notification: Performance of sort global known variables: time 1.4e-07/1.182, allocations: 0 / 1.179 GB, free: 0.8672 MB / 0.698 GB Notification: Performance of remove unused functions: time 0.0008892/1.183, allocations: 275.1 kB / 1.179 GB, free: 0.6211 MB / 0.698 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.002001/1.185, allocations: 1.604 MB / 1.181 GB, free: 15.29 MB / 0.7136 GB Notification: Performance of simCode: created initialization part: time 0.001732/1.187, allocations: 0.9921 MB / 1.182 GB, free: 14.54 MB / 0.7136 GB Notification: Performance of simCode: created event and clocks part: time 4.568e-06/1.187, allocations: 4 kB / 1.182 GB, free: 14.54 MB / 0.7136 GB Notification: Performance of simCode: created simulation system equations: time 0.0004825/1.187, allocations: 285.8 kB / 1.182 GB, free: 14.34 MB / 0.7136 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007827/1.188, allocations: 153.1 kB / 1.182 GB, free: 14.21 MB / 0.7136 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006204/1.194, allocations: 4.794 MB / 1.187 GB, free: 9.914 MB / 0.7136 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000534/1.195, allocations: 0.9115 MB / 1.188 GB, free: 8.992 MB / 0.7136 GB Notification: Performance of simCode: alias equations: time 0.0006524/1.196, allocations: 148.3 kB / 1.188 GB, free: 8.848 MB / 0.7136 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003219/1.196, allocations: 182.7 kB / 1.188 GB, free: 8.797 MB / 0.7136 GB Notification: Performance of SimCode: time 1.753e-06/1.196, allocations: 4 kB / 1.188 GB, free: 8.793 MB / 0.7136 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03099/1.227, allocations: 11.95 MB / 1.2 GB, free: 13.11 MB / 0.7292 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002386/1.227, allocations: 212 kB / 1.2 GB, free: 12.87 MB / 0.7292 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.457/3.684, allocations: 0 / 1.2 GB, free: 12.87 MB / 0.7292 GB (rm -f Buildings_maint.8.0.x_Buildings.Electrical.AC.ThreePhasesBalanced.Storage.Examples.AcBattery.pipe ; mkfifo Buildings_maint.8.0.x_Buildings.Electrical.AC.ThreePhasesBalanced.Storage.Examples.AcBattery.pipe ; head -c 1048576 < Buildings_maint.8.0.x_Buildings.Electrical.AC.ThreePhasesBalanced.Storage.Examples.AcBattery.pipe >> ../files/Buildings_maint.8.0.x_Buildings.Electrical.AC.ThreePhasesBalanced.Storage.Examples.AcBattery.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_Buildings_maint_8_0_x_Buildings_Electrical_AC_ThreePhasesBalanced_Storage_Examples_AcBattery_fmu --startTime=0 --stopTime=3600 --timeout=50 --tolerance=1e-06 Buildings_maint_8_0_x_Buildings_Electrical_AC_ThreePhasesBalanced_Storage_Examples_AcBattery.fmu > Buildings_maint.8.0.x_Buildings.Electrical.AC.ThreePhasesBalanced.Storage.Examples.AcBattery.pipe 2>&1)