Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_maint.7.0.x_Buildings.Electrical.AC.OnePhase.Storage.Examples.AcBattery.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.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 7.0.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo) Running command: "" <> buildModelFMU(Buildings.Electrical.AC.OnePhase.Storage.Examples.AcBattery,fileNamePrefix="Buildings_maint_7_0_x_Buildings_Electrical_AC_OnePhase_Storage_Examples_AcBattery",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Electrical.AC.OnePhase.Storage.Examples.AcBattery,fileNamePrefix="Buildings_maint_7_0_x_Buildings_Electrical_AC_OnePhase_Storage_Examples_AcBattery",fmuType="me",version="2.0",platforms={"static"}) [:1:1-1:32:writable] Error: Class GC_set_max_heap_size not found in scope (looking for a function or record). Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo): time 1.23/1.23, allocations: 249.4 MB / 256.7 MB, free: 7.023 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.0009527/0.0009527, allocations: 188.5 kB / 316 MB, free: 3.574 MB / 250.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.074/1.074, allocations: 205.1 MB / 0.5667 GB, free: 15.68 MB / 426.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008757/0.0008756, allocations: 95.33 kB / 0.671 GB, free: 4.805 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.3058/0.3068, allocations: 112.5 MB / 0.7808 GB, free: 103 MB / 0.5417 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1561/0.4628, allocations: 106.3 MB / 0.8847 GB, free: 12.57 MB / 0.5573 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.4963/0.9592, allocations: 150.7 MB / 1.032 GB, free: 5.25 MB / 0.6511 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002396/0.9595, allocations: 96.67 kB / 1.032 GB, free: 5.195 MB / 0.6511 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.07064/1.03, allocations: 27.78 MB / 1.059 GB, free: 14.11 MB / 0.6823 GB Notification: Performance of prepare preOptimizeDAE: time 3.279e-05/1.03, allocations: 8 kB / 1.059 GB, free: 14.11 MB / 0.6823 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008373/1.031, allocations: 147 kB / 1.059 GB, free: 13.96 MB / 0.6823 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000637/1.032, allocations: 439 kB / 1.06 GB, free: 13.55 MB / 0.6823 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.422e-05/1.032, allocations: 23.17 kB / 1.06 GB, free: 13.54 MB / 0.6823 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.64e-05/1.032, allocations: 28 kB / 1.06 GB, free: 13.51 MB / 0.6823 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0006958/1.032, allocations: 461.7 kB / 1.06 GB, free: 13.22 MB / 0.6823 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008557/1.033, allocations: 0.5955 MB / 1.061 GB, free: 12.75 MB / 0.6823 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.394e-05/1.033, allocations: 0 / 1.061 GB, free: 12.75 MB / 0.6823 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.255e-05/1.033, allocations: 7.906 kB / 1.061 GB, free: 12.74 MB / 0.6823 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.899e-05/1.033, allocations: 48.59 kB / 1.061 GB, free: 12.7 MB / 0.6823 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002903/1.036, allocations: 2.714 MB / 1.063 GB, free: 10.18 MB / 0.6823 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0007352/1.037, allocations: 0.5124 MB / 1.064 GB, free: 9.809 MB / 0.6823 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003528/1.038, allocations: 237.6 kB / 1.064 GB, free: 9.652 MB / 0.6823 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0004717/1.038, allocations: 0.5695 MB / 1.065 GB, free: 8.957 MB / 0.6823 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000464/1.038, allocations: 350 kB / 1.065 GB, free: 8.691 MB / 0.6823 GB Notification: Performance of pre-optimization done (n=49): time 2.204e-06/1.038, allocations: 0 / 1.065 GB, free: 8.691 MB / 0.6823 GB Notification: Performance of matching and sorting (n=49): time 0.0008179/1.039, allocations: 0.4945 MB / 1.065 GB, free: 8.32 MB / 0.6823 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.075e-05/1.039, allocations: 89.56 kB / 1.066 GB, free: 8.215 MB / 0.6823 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002766/1.04, allocations: 278.4 kB / 1.066 GB, free: 7.992 MB / 0.6823 GB Notification: Performance of collectPreVariables (initialization): time 4.987e-05/1.04, allocations: 33.2 kB / 1.066 GB, free: 7.957 MB / 0.6823 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001372/1.04, allocations: 237.6 kB / 1.066 GB, free: 7.742 MB / 0.6823 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001188/1.04, allocations: 149.5 kB / 1.066 GB, free: 7.613 MB / 0.6823 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.681e-05/1.04, allocations: 0 / 1.066 GB, free: 7.613 MB / 0.6823 GB Notification: Performance of setup shared object (initialization): time 0.0001054/1.04, allocations: 357.5 kB / 1.067 GB, free: 7.273 MB / 0.6823 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003018/1.04, allocations: 213.4 kB / 1.067 GB, free: 7.148 MB / 0.6823 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003787/1.041, allocations: 335.9 kB / 1.067 GB, free: 6.875 MB / 0.6823 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003955/1.041, allocations: 252.6 kB / 1.067 GB, free: 6.711 MB / 0.6823 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.886e-06/1.041, allocations: 0 / 1.067 GB, free: 6.711 MB / 0.6823 GB Notification: Performance of matching and sorting (n=70) (initialization): time 0.0008682/1.042, allocations: 0.6 MB / 1.068 GB, free: 6.27 MB / 0.6823 GB Notification: Performance of prepare postOptimizeDAE: time 0.0003969/1.042, allocations: 1.047 MB / 1.069 GB, free: 5.16 MB / 0.6823 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.115e-06/1.043, allocations: 4 kB / 1.069 GB, free: 5.156 MB / 0.6823 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.496e-05/1.043, allocations: 4 kB / 1.069 GB, free: 5.152 MB / 0.6823 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000555/1.043, allocations: 118.3 kB / 1.069 GB, free: 5.043 MB / 0.6823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.248e-06/1.043, allocations: 7.984 kB / 1.069 GB, free: 5.035 MB / 0.6823 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004718/1.044, allocations: 47.66 kB / 1.069 GB, free: 4.988 MB / 0.6823 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.663e-05/1.044, allocations: 23.36 kB / 1.069 GB, free: 4.969 MB / 0.6823 GB Notification: Performance of prepare postOptimizeDAE: time 6.231e-06/1.044, allocations: 7.938 kB / 1.069 GB, free: 4.961 MB / 0.6823 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0007182/1.044, allocations: 477.6 kB / 1.07 GB, free: 4.633 MB / 0.6823 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.396e-06/1.044, allocations: 0 / 1.07 GB, free: 4.633 MB / 0.6823 GB Notification: Performance of postOpt tearingSystem (initialization): time 7.485e-06/1.044, allocations: 8 kB / 1.07 GB, free: 4.625 MB / 0.6823 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004194/1.045, allocations: 103.6 kB / 1.07 GB, free: 4.527 MB / 0.6823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.841e-06/1.045, allocations: 12.38 kB / 1.07 GB, free: 4.516 MB / 0.6823 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004119/1.045, allocations: 51.64 kB / 1.07 GB, free: 4.465 MB / 0.6823 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.692e-05/1.045, allocations: 19.12 kB / 1.07 GB, free: 4.453 MB / 0.6823 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.0001324/1.045, allocations: 134 kB / 1.07 GB, free: 4.32 MB / 0.6823 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.968e-05/1.046, allocations: 47.44 kB / 1.07 GB, free: 4.273 MB / 0.6823 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008474/1.046, allocations: 0.5467 MB / 1.07 GB, free: 3.887 MB / 0.6823 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.374e-06/1.046, allocations: 4 kB / 1.07 GB, free: 3.883 MB / 0.6823 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.969e-06/1.046, allocations: 0 / 1.07 GB, free: 3.883 MB / 0.6823 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.804e-06/1.046, allocations: 8.031 kB / 1.071 GB, free: 3.875 MB / 0.6823 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005905/1.047, allocations: 0.5497 MB / 1.071 GB, free: 3.422 MB / 0.6823 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.174e-06/1.047, allocations: 0 / 1.071 GB, free: 3.422 MB / 0.6823 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005033/1.048, allocations: 91.88 kB / 1.071 GB, free: 3.332 MB / 0.6823 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.676e-06/1.048, allocations: 0 / 1.071 GB, free: 3.332 MB / 0.6823 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.628e-05/1.048, allocations: 11.55 kB / 1.071 GB, free: 3.324 MB / 0.6823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.284e-06/1.048, allocations: 0 / 1.071 GB, free: 3.324 MB / 0.6823 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.586e-06/1.048, allocations: 4 kB / 1.071 GB, free: 3.32 MB / 0.6823 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.001157/1.049, allocations: 0.8622 MB / 1.072 GB, free: 2.695 MB / 0.6823 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.001633/1.05, allocations: 1.55 MB / 1.074 GB, free: 1.523 MB / 0.6823 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002162/1.051, allocations: 175.4 kB / 1.074 GB, free: 1.359 MB / 0.6823 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.662e-05/1.051, allocations: 7.984 kB / 1.074 GB, free: 1.352 MB / 0.6823 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003453/1.051, allocations: 35.75 kB / 1.074 GB, free: 1.32 MB / 0.6823 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001198/1.051, allocations: 44.11 kB / 1.074 GB, free: 1.285 MB / 0.6823 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.828e-05/1.051, allocations: 19.75 kB / 1.074 GB, free: 1.27 MB / 0.6823 GB Notification: Performance of sort global known variables: time 0.0002237/1.051, allocations: 224.5 kB / 1.074 GB, free: 1.098 MB / 0.6823 GB Notification: Performance of remove unused functions: time 0.001987/1.053, allocations: 257.5 kB / 1.074 GB, free: 0.8516 MB / 0.6823 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.0002446/1.054, allocations: 146.9 kB / 1.074 GB, free: 0.6992 MB / 0.6823 GB Notification: Performance of simCode: created initialization part: time 0.001196/1.055, allocations: 0.8539 MB / 1.075 GB, free: 108 kB / 0.6823 GB Notification: Performance of simCode: created event and clocks part: time 2.946e-06/1.055, allocations: 0 / 1.075 GB, free: 108 kB / 0.6823 GB Notification: Performance of simCode: created simulation system equations: time 0.0003711/1.055, allocations: 266.4 kB / 1.075 GB, free: 15.92 MB / 0.698 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007201/1.056, allocations: 130.5 kB / 1.076 GB, free: 15.82 MB / 0.698 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001615/1.058, allocations: 0.8053 MB / 1.076 GB, free: 15.1 MB / 0.698 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006778/1.058, allocations: 0.9705 MB / 1.077 GB, free: 14.12 MB / 0.698 GB Notification: Performance of SimCode: time 4.51e-07/1.058, allocations: 0 / 1.077 GB, free: 14.12 MB / 0.698 GB (rm -f Buildings_maint.7.0.x_Buildings.Electrical.AC.OnePhase.Storage.Examples.AcBattery.pipe ; mkfifo Buildings_maint.7.0.x_Buildings.Electrical.AC.OnePhase.Storage.Examples.AcBattery.pipe ; head -c 1048576 < Buildings_maint.7.0.x_Buildings.Electrical.AC.OnePhase.Storage.Examples.AcBattery.pipe >> ../files/Buildings_maint.7.0.x_Buildings.Electrical.AC.OnePhase.Storage.Examples.AcBattery.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_Buildings_maint_7_0_x_Buildings_Electrical_AC_OnePhase_Storage_Examples_AcBattery_fmu --startTime=0 --stopTime=3600 --timeout=50 --tolerance=1e-06 Buildings_maint_7_0_x_Buildings_Electrical_AC_OnePhase_Storage_Examples_AcBattery.fmu > Buildings_maint.7.0.x_Buildings.Electrical.AC.OnePhase.Storage.Examples.AcBattery.pipe 2>&1)