Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_8_Buildings.Electrical.AC.ThreePhasesBalanced.Storage.Examples.AcBattery.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.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.1.4 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo) Running command: "" <> buildModelFMU(Buildings.Electrical.AC.ThreePhasesBalanced.Storage.Examples.AcBattery,fileNamePrefix="Buildings_8_Buildings_Electrical_AC_ThreePhasesBalanced_Storage_Examples_AcBattery",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Electrical.AC.ThreePhasesBalanced.Storage.Examples.AcBattery,fileNamePrefix="Buildings_8_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.1.4-maint.8.1.x/package.mo): time 1.877/1.877, allocations: 292.6 MB / 307.5 MB, free: 5.176 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.001104/0.001104, allocations: 179.4 kB / 377.1 MB, free: 1.535 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.85/1.85, allocations: 205.4 MB / 0.6366 GB, free: 8.555 MB / 474.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0009068/0.0009068, allocations: 88.34 kB / 0.7509 GB, free: 63.17 MB / 0.5573 GB Notification: Performance of FrontEnd - loaded program: time 0.0003541/0.0003541, allocations: 8 kB / 0.8749 GB, free: 11.1 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3069/0.3072, allocations: 116.3 MB / 0.9884 GB, free: 6.648 MB / 0.7136 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.8847/1.192, allocations: 159.2 MB / 1.144 GB, free: 19.66 MB / 0.7292 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003518/1.192, allocations: 96.5 kB / 1.144 GB, free: 19.58 MB / 0.7292 GB Notification: Performance of FrontEnd - DAE generated: time 0.0742/1.267, allocations: 29.54 MB / 1.173 GB, free: 9.633 MB / 0.7448 GB Notification: Performance of FrontEnd: time 2.224e-06/1.267, allocations: 4 kB / 1.173 GB, free: 9.629 MB / 0.7448 GB Notification: Performance of Transformations before backend: time 4.168e-05/1.267, allocations: 12 kB / 1.173 GB, free: 9.617 MB / 0.7448 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.002125/1.269, allocations: 0.8768 MB / 1.174 GB, free: 8.684 MB / 0.7448 GB Notification: Performance of prepare preOptimizeDAE: time 5.893e-05/1.269, allocations: 12.02 kB / 1.174 GB, free: 8.672 MB / 0.7448 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001525/1.269, allocations: 102.5 kB / 1.174 GB, free: 8.562 MB / 0.7448 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001079/1.27, allocations: 149.1 kB / 1.174 GB, free: 8.418 MB / 0.7448 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008527/1.271, allocations: 436.8 kB / 1.174 GB, free: 7.949 MB / 0.7448 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.574e-05/1.271, allocations: 44.98 kB / 1.174 GB, free: 7.906 MB / 0.7448 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001197/1.271, allocations: 51.44 kB / 1.174 GB, free: 7.859 MB / 0.7448 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001432/1.273, allocations: 0.6808 MB / 1.175 GB, free: 7.145 MB / 0.7448 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.031e-05/1.273, allocations: 0 / 1.175 GB, free: 7.145 MB / 0.7448 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.922e-05/1.273, allocations: 31.94 kB / 1.175 GB, free: 7.113 MB / 0.7448 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.78e-05/1.273, allocations: 36.98 kB / 1.175 GB, free: 7.078 MB / 0.7448 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001325/1.274, allocations: 0.5699 MB / 1.176 GB, free: 6.508 MB / 0.7448 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003781/1.278, allocations: 2.833 MB / 1.179 GB, free: 3.453 MB / 0.7448 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001113/1.279, allocations: 0.5899 MB / 1.179 GB, free: 2.844 MB / 0.7448 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0005498/1.28, allocations: 0.5662 MB / 1.18 GB, free: 2.148 MB / 0.7448 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007215/1.28, allocations: 409.5 kB / 1.18 GB, free: 1.734 MB / 0.7448 GB Notification: Performance of pre-optimization done (n=49): time 5.611e-06/1.28, allocations: 3.984 kB / 1.18 GB, free: 1.73 MB / 0.7448 GB Notification: Performance of matching and sorting (n=49): time 0.001577/1.282, allocations: 0.7756 MB / 1.181 GB, free: 0.9453 MB / 0.7448 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.934e-05/1.282, allocations: 85.55 kB / 1.181 GB, free: 0.8438 MB / 0.7448 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003661/1.283, allocations: 305 kB / 1.181 GB, free: 0.5391 MB / 0.7448 GB Notification: Performance of collectPreVariables (initialization): time 6.325e-05/1.283, allocations: 45.64 kB / 1.181 GB, free: 500 kB / 0.7448 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002191/1.283, allocations: 280.5 kB / 1.181 GB, free: 216 kB / 0.7448 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001382/1.283, allocations: 157.8 kB / 1.182 GB, free: 56 kB / 0.7448 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.154e-05/1.283, allocations: 12 kB / 1.182 GB, free: 44 kB / 0.7448 GB Notification: Performance of setup shared object (initialization): time 0.0001893/1.283, allocations: 351.3 kB / 1.182 GB, free: 15.69 MB / 0.7605 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004665/1.284, allocations: 245 kB / 1.182 GB, free: 15.45 MB / 0.7605 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005669/1.284, allocations: 366.3 kB / 1.183 GB, free: 15.05 MB / 0.7605 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.00053/1.285, allocations: 307.7 kB / 1.183 GB, free: 14.75 MB / 0.7605 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.457e-06/1.285, allocations: 0 / 1.183 GB, free: 14.75 MB / 0.7605 GB Notification: Performance of matching and sorting (n=70) (initialization): time 0.00127/1.286, allocations: 0.714 MB / 1.184 GB, free: 14.03 MB / 0.7605 GB Notification: Performance of prepare postOptimizeDAE: time 0.0005499/1.287, allocations: 1.072 MB / 1.185 GB, free: 12.87 MB / 0.7605 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.297e-06/1.287, allocations: 0 / 1.185 GB, free: 12.87 MB / 0.7605 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.441e-05/1.287, allocations: 8 kB / 1.185 GB, free: 12.86 MB / 0.7605 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005619/1.287, allocations: 111.8 kB / 1.185 GB, free: 12.75 MB / 0.7605 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.463e-05/1.287, allocations: 12.8 kB / 1.185 GB, free: 12.74 MB / 0.7605 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004947/1.288, allocations: 71.62 kB / 1.185 GB, free: 12.67 MB / 0.7605 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.769e-05/1.288, allocations: 20 kB / 1.185 GB, free: 12.65 MB / 0.7605 GB Notification: Performance of prepare postOptimizeDAE: time 8.596e-06/1.288, allocations: 6.188 kB / 1.185 GB, free: 12.64 MB / 0.7605 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001042/1.289, allocations: 0.5969 MB / 1.185 GB, free: 12.04 MB / 0.7605 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.091e-06/1.289, allocations: 4 kB / 1.185 GB, free: 12.04 MB / 0.7605 GB Notification: Performance of postOpt tearingSystem (initialization): time 8.797e-06/1.289, allocations: 8 kB / 1.185 GB, free: 12.03 MB / 0.7605 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004259/1.289, allocations: 107.8 kB / 1.185 GB, free: 11.93 MB / 0.7605 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.759e-06/1.289, allocations: 7.953 kB / 1.186 GB, free: 11.92 MB / 0.7605 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004049/1.29, allocations: 71.89 kB / 1.186 GB, free: 11.85 MB / 0.7605 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.122e-05/1.29, allocations: 20 kB / 1.186 GB, free: 11.83 MB / 0.7605 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.0004308/1.29, allocations: 295.2 kB / 1.186 GB, free: 11.53 MB / 0.7605 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.163e-05/1.29, allocations: 51.42 kB / 1.186 GB, free: 11.48 MB / 0.7605 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001176/1.292, allocations: 0.6085 MB / 1.187 GB, free: 10.87 MB / 0.7605 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.145e-05/1.292, allocations: 8 kB / 1.187 GB, free: 10.86 MB / 0.7605 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.225e-05/1.292, allocations: 10.02 kB / 1.187 GB, free: 10.85 MB / 0.7605 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.796e-06/1.292, allocations: 7.922 kB / 1.187 GB, free: 10.84 MB / 0.7605 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007837/1.292, allocations: 0.6225 MB / 1.187 GB, free: 10.17 MB / 0.7605 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.655e-06/1.292, allocations: 0 / 1.187 GB, free: 10.17 MB / 0.7605 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004863/1.293, allocations: 95.86 kB / 1.187 GB, free: 10.08 MB / 0.7605 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.527e-06/1.293, allocations: 4 kB / 1.187 GB, free: 10.07 MB / 0.7605 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.582e-05/1.293, allocations: 8 kB / 1.187 GB, free: 10.07 MB / 0.7605 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.465e-06/1.293, allocations: 0 / 1.187 GB, free: 10.07 MB / 0.7605 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.904e-06/1.293, allocations: 4 kB / 1.187 GB, free: 10.06 MB / 0.7605 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001553/1.295, allocations: 0.936 MB / 1.188 GB, free: 9.098 MB / 0.7605 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002587/1.295, allocations: 184.3 kB / 1.188 GB, free: 8.898 MB / 0.7605 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.813e-05/1.295, allocations: 12 kB / 1.188 GB, free: 8.887 MB / 0.7605 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003347/1.295, allocations: 43.95 kB / 1.188 GB, free: 8.844 MB / 0.7605 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001426/1.295, allocations: 52.31 kB / 1.188 GB, free: 8.793 MB / 0.7605 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.668e-05/1.295, allocations: 16 kB / 1.188 GB, free: 8.777 MB / 0.7605 GB Notification: Performance of sorting global known variables: time 0.0002775/1.296, allocations: 247.2 kB / 1.189 GB, free: 8.535 MB / 0.7605 GB Notification: Performance of sort global known variables: time 2.71e-07/1.296, allocations: 0 / 1.189 GB, free: 8.535 MB / 0.7605 GB Notification: Performance of remove unused functions: time 0.0007944/1.297, allocations: 275.1 kB / 1.189 GB, free: 8.266 MB / 0.7605 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.002029/1.299, allocations: 1.593 MB / 1.191 GB, free: 6.637 MB / 0.7605 GB Notification: Performance of simCode: created initialization part: time 0.001748/1.3, allocations: 1 MB / 1.191 GB, free: 5.613 MB / 0.7605 GB Notification: Performance of simCode: created event and clocks part: time 3.667e-06/1.3, allocations: 0 / 1.191 GB, free: 5.613 MB / 0.7605 GB Notification: Performance of simCode: created simulation system equations: time 0.0005166/1.301, allocations: 291 kB / 1.192 GB, free: 5.328 MB / 0.7605 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007506/1.302, allocations: 159.4 kB / 1.192 GB, free: 5.176 MB / 0.7605 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005882/1.308, allocations: 4.802 MB / 1.197 GB, free: 280 kB / 0.7605 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005478/1.308, allocations: 0.9069 MB / 1.198 GB, free: 15.34 MB / 0.7761 GB Notification: Performance of simCode: alias equations: time 0.0005985/1.309, allocations: 145.5 kB / 1.198 GB, free: 15.2 MB / 0.7761 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003203/1.309, allocations: 187.4 kB / 1.198 GB, free: 15.02 MB / 0.7761 GB Notification: Performance of SimCode: time 1.172e-06/1.309, allocations: 4 kB / 1.198 GB, free: 15.02 MB / 0.7761 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02728/1.336, allocations: 11.92 MB / 1.209 GB, free: 3.344 MB / 0.7761 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001881/1.337, allocations: 208.8 kB / 1.21 GB, free: 3.094 MB / 0.7761 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.518/3.855, allocations: 2.812 kB / 1.21 GB, free: 3.094 MB / 0.7761 GB (rm -f Buildings_8_Buildings.Electrical.AC.ThreePhasesBalanced.Storage.Examples.AcBattery.pipe ; mkfifo Buildings_8_Buildings.Electrical.AC.ThreePhasesBalanced.Storage.Examples.AcBattery.pipe ; head -c 1048576 < Buildings_8_Buildings.Electrical.AC.ThreePhasesBalanced.Storage.Examples.AcBattery.pipe >> ../files/Buildings_8_Buildings.Electrical.AC.ThreePhasesBalanced.Storage.Examples.AcBattery.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_Buildings_8_Buildings_Electrical_AC_ThreePhasesBalanced_Storage_Examples_AcBattery_fmu --startTime=0 --stopTime=3600 --timeout=50 --tolerance=1e-06 Buildings_8_Buildings_Electrical_AC_ThreePhasesBalanced_Storage_Examples_AcBattery.fmu > Buildings_8_Buildings.Electrical.AC.ThreePhasesBalanced.Storage.Examples.AcBattery.pipe 2>&1)