Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_maint.7.0.x_Buildings.Electrical.AC.ThreePhasesBalanced.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.ThreePhasesBalanced.Storage.Examples.AcBattery,fileNamePrefix="Buildings_maint_7_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_7_0_x_Buildings_Electrical_AC_ThreePhasesBalanced_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.215/1.215, allocations: 249.4 MB / 256.7 MB, free: 15.82 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001013/0.001013, allocations: 190.7 kB / 316 MB, free: 7.195 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.369/1.369, allocations: 205.1 MB / 0.5667 GB, free: 23.61 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.0009038/0.0009041, allocations: 79.72 kB / 0.671 GB, free: 0.9492 MB / 0.4948 GB Notification: Performance of FrontEnd - loaded program: time 0.203/0.2039, allocations: 112.5 MB / 0.7808 GB, free: 376 kB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3838/0.5878, allocations: 106.3 MB / 0.8847 GB, free: 76.34 MB / 0.6042 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.1624/0.7502, allocations: 151.1 MB / 1.032 GB, free: 5.031 MB / 0.6823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002588/0.7506, allocations: 91.94 kB / 1.032 GB, free: 4.941 MB / 0.6823 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.413/1.164, allocations: 29.67 MB / 1.061 GB, free: 140.2 MB / 0.6823 GB Notification: Performance of prepare preOptimizeDAE: time 4.764e-05/1.164, allocations: 9.094 kB / 1.061 GB, free: 140.2 MB / 0.6823 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009659/1.165, allocations: 153.2 kB / 1.061 GB, free: 140.1 MB / 0.6823 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006794/1.165, allocations: 443.3 kB / 1.062 GB, free: 139.7 MB / 0.6823 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.44e-05/1.165, allocations: 19.5 kB / 1.062 GB, free: 139.7 MB / 0.6823 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.455e-05/1.165, allocations: 30.28 kB / 1.062 GB, free: 139.7 MB / 0.6823 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0008313/1.166, allocations: 462.1 kB / 1.062 GB, free: 139.5 MB / 0.6823 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009919/1.167, allocations: 0.5984 MB / 1.063 GB, free: 139.2 MB / 0.6823 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.651e-05/1.167, allocations: 4.906 kB / 1.063 GB, free: 139.2 MB / 0.6823 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.028e-05/1.167, allocations: 1.938 kB / 1.063 GB, free: 139.2 MB / 0.6823 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.977e-05/1.167, allocations: 44.53 kB / 1.063 GB, free: 139.1 MB / 0.6823 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002881/1.17, allocations: 2.711 MB / 1.066 GB, free: 136.7 MB / 0.6823 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0007803/1.171, allocations: 0.5206 MB / 1.066 GB, free: 136.4 MB / 0.6823 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002639/1.171, allocations: 237.6 kB / 1.066 GB, free: 136.1 MB / 0.6823 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0003322/1.172, allocations: 0.5638 MB / 1.067 GB, free: 135.4 MB / 0.6823 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003986/1.172, allocations: 348.1 kB / 1.067 GB, free: 135.1 MB / 0.6823 GB Notification: Performance of pre-optimization done (n=49): time 2.314e-06/1.172, allocations: 0 / 1.067 GB, free: 135.1 MB / 0.6823 GB Notification: Performance of matching and sorting (n=49): time 0.0007984/1.173, allocations: 0.5024 MB / 1.068 GB, free: 134.6 MB / 0.6823 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.973e-05/1.173, allocations: 85.55 kB / 1.068 GB, free: 134.5 MB / 0.6823 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002532/1.173, allocations: 286.1 kB / 1.068 GB, free: 134.2 MB / 0.6823 GB Notification: Performance of collectPreVariables (initialization): time 4.999e-05/1.173, allocations: 33.7 kB / 1.068 GB, free: 134.1 MB / 0.6823 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001107/1.173, allocations: 232.5 kB / 1.068 GB, free: 133.9 MB / 0.6823 GB Notification: Performance of collectInitialBindings (initialization): time 9.062e-05/1.174, allocations: 147.2 kB / 1.068 GB, free: 133.8 MB / 0.6823 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.703e-05/1.174, allocations: 0 / 1.068 GB, free: 133.8 MB / 0.6823 GB Notification: Performance of setup shared object (initialization): time 7.217e-05/1.174, allocations: 354.8 kB / 1.069 GB, free: 133.4 MB / 0.6823 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002706/1.174, allocations: 213.3 kB / 1.069 GB, free: 133.2 MB / 0.6823 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003061/1.174, allocations: 330.1 kB / 1.069 GB, free: 132.8 MB / 0.6823 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003377/1.175, allocations: 248.4 kB / 1.07 GB, free: 132.6 MB / 0.6823 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.256e-06/1.175, allocations: 3.906 kB / 1.07 GB, free: 132.6 MB / 0.6823 GB Notification: Performance of matching and sorting (n=70) (initialization): time 0.000784/1.175, allocations: 0.5983 MB / 1.07 GB, free: 132 MB / 0.6823 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001658/1.176, allocations: 1.043 MB / 1.071 GB, free: 130.8 MB / 0.6823 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.512e-06/1.176, allocations: 4 kB / 1.071 GB, free: 130.8 MB / 0.6823 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.441e-05/1.176, allocations: 4.188 kB / 1.071 GB, free: 130.8 MB / 0.6823 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005121/1.176, allocations: 123.8 kB / 1.071 GB, free: 130.7 MB / 0.6823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.606e-06/1.176, allocations: 7.984 kB / 1.071 GB, free: 130.7 MB / 0.6823 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005016/1.177, allocations: 59.58 kB / 1.071 GB, free: 130.7 MB / 0.6823 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.227e-05/1.177, allocations: 20 kB / 1.071 GB, free: 130.6 MB / 0.6823 GB Notification: Performance of prepare postOptimizeDAE: time 4.989e-06/1.177, allocations: 4 kB / 1.071 GB, free: 130.6 MB / 0.6823 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0006365/1.177, allocations: 467.9 kB / 1.072 GB, free: 130.2 MB / 0.6823 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.699e-06/1.177, allocations: 15.83 kB / 1.072 GB, free: 130.2 MB / 0.6823 GB Notification: Performance of postOpt tearingSystem (initialization): time 6.933e-06/1.177, allocations: 7.984 kB / 1.072 GB, free: 130.1 MB / 0.6823 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003999/1.178, allocations: 112.1 kB / 1.072 GB, free: 130 MB / 0.6823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.68e-06/1.178, allocations: 11.92 kB / 1.072 GB, free: 130 MB / 0.6823 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003858/1.178, allocations: 47.7 kB / 1.072 GB, free: 130 MB / 0.6823 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.518e-05/1.178, allocations: 20 kB / 1.072 GB, free: 130 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.0001218/1.178, allocations: 130.8 kB / 1.072 GB, free: 129.8 MB / 0.6823 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.764e-05/1.178, allocations: 47.42 kB / 1.072 GB, free: 129.8 MB / 0.6823 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007728/1.179, allocations: 0.5391 MB / 1.073 GB, free: 129.2 MB / 0.6823 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.262e-06/1.179, allocations: 4 kB / 1.073 GB, free: 129.2 MB / 0.6823 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.751e-06/1.179, allocations: 4 kB / 1.073 GB, free: 129.2 MB / 0.6823 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.893e-06/1.179, allocations: 3.984 kB / 1.073 GB, free: 129.2 MB / 0.6823 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005261/1.18, allocations: 0.5339 MB / 1.073 GB, free: 128.7 MB / 0.6823 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.444e-06/1.18, allocations: 0 / 1.073 GB, free: 128.7 MB / 0.6823 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004735/1.18, allocations: 95.88 kB / 1.073 GB, free: 128.6 MB / 0.6823 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.118e-06/1.18, allocations: 0 / 1.073 GB, free: 128.6 MB / 0.6823 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.498e-05/1.18, allocations: 11.98 kB / 1.073 GB, free: 128.6 MB / 0.6823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.705e-06/1.18, allocations: 3.938 kB / 1.073 GB, free: 128.6 MB / 0.6823 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.963e-06/1.18, allocations: 4.188 kB / 1.073 GB, free: 128.5 MB / 0.6823 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0009627/1.181, allocations: 0.8614 MB / 1.074 GB, free: 127.7 MB / 0.6823 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.001308/1.183, allocations: 1.548 MB / 1.076 GB, free: 126.1 MB / 0.6823 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001915/1.183, allocations: 184.3 kB / 1.076 GB, free: 125.9 MB / 0.6823 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.874e-05/1.183, allocations: 11.98 kB / 1.076 GB, free: 125.9 MB / 0.6823 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003333/1.183, allocations: 27.97 kB / 1.076 GB, free: 125.8 MB / 0.6823 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001195/1.183, allocations: 48.27 kB / 1.076 GB, free: 125.8 MB / 0.6823 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.302e-05/1.183, allocations: 16 kB / 1.076 GB, free: 125.8 MB / 0.6823 GB Notification: Performance of sort global known variables: time 0.0001736/1.184, allocations: 224.6 kB / 1.076 GB, free: 125.6 MB / 0.6823 GB Notification: Performance of remove unused functions: time 0.001772/1.185, allocations: 255.1 kB / 1.076 GB, free: 125.3 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.0002349/1.186, allocations: 147.3 kB / 1.077 GB, free: 125.2 MB / 0.6823 GB Notification: Performance of simCode: created initialization part: time 0.001101/1.187, allocations: 0.854 MB / 1.077 GB, free: 124.3 MB / 0.6823 GB Notification: Performance of simCode: created event and clocks part: time 2.244e-06/1.187, allocations: 3.938 kB / 1.077 GB, free: 124.3 MB / 0.6823 GB Notification: Performance of simCode: created simulation system equations: time 0.0003114/1.187, allocations: 266.5 kB / 1.078 GB, free: 124 MB / 0.6823 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00074/1.188, allocations: 144 kB / 1.078 GB, free: 123.9 MB / 0.6823 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001554/1.189, allocations: 0.8084 MB / 1.079 GB, free: 123.1 MB / 0.6823 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005173/1.19, allocations: 0.9615 MB / 1.08 GB, free: 122.1 MB / 0.6823 GB Notification: Performance of SimCode: time 4.71e-07/1.19, allocations: 0 / 1.08 GB, free: 122.1 MB / 0.6823 GB (rm -f Buildings_maint.7.0.x_Buildings.Electrical.AC.ThreePhasesBalanced.Storage.Examples.AcBattery.pipe ; mkfifo Buildings_maint.7.0.x_Buildings.Electrical.AC.ThreePhasesBalanced.Storage.Examples.AcBattery.pipe ; head -c 1048576 < Buildings_maint.7.0.x_Buildings.Electrical.AC.ThreePhasesBalanced.Storage.Examples.AcBattery.pipe >> ../files/Buildings_maint.7.0.x_Buildings.Electrical.AC.ThreePhasesBalanced.Storage.Examples.AcBattery.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_Buildings_maint_7_0_x_Buildings_Electrical_AC_ThreePhasesBalanced_Storage_Examples_AcBattery_fmu --startTime=0 --stopTime=3600 --timeout=50 --tolerance=1e-06 Buildings_maint_7_0_x_Buildings_Electrical_AC_ThreePhasesBalanced_Storage_Examples_AcBattery.fmu > Buildings_maint.7.0.x_Buildings.Electrical.AC.ThreePhasesBalanced.Storage.Examples.AcBattery.pipe 2>&1)