Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/../OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Buildings_6.0.0_Buildings.Electrical.AC.OnePhase.Storage.Examples.AcBattery.conf.json Using package ModelicaServices with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.2/package.mo) Using package Complex with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OMCompiler/build/lib/omlibrary/Complex 3.2.2.mo) Using package Modelica with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/package.mo) Using package Buildings with version 6.0.0 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OMCompiler/build/lib/omlibrary/Buildings 6.0.0/package.mo) Running command: "" <> buildModelFMU(Buildings.Electrical.AC.OnePhase.Storage.Examples.AcBattery,fileNamePrefix="Buildings_6_0_0_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 loadModel(Buildings): time 3.891/3.891, allocations: 433 MB / 440.3 MB, free: 4.812 MB / 346.7 MB Notification: Performance of FrontEnd - loaded program: time 0.5077/4.399, allocations: 104.3 MB / 0.5319 GB, free: 12.96 MB / 442.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2143/4.613, allocations: 98.73 MB / 0.6283 GB, free: 9.812 MB / 0.5105 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.2529/4.866, allocations: 142.5 MB / 0.7675 GB, free: 11.11 MB / 0.6511 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000356/4.867, allocations: 99.58 kB / 0.7675 GB, free: 11.02 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.4539/5.321, allocations: 27.45 MB / 0.7944 GB, free: 139.6 MB / 0.6511 GB Notification: Performance of prepare preOptimizeDAE: time 4.732e-05/5.321, allocations: 8.906 kB / 0.7944 GB, free: 139.6 MB / 0.6511 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001682/5.322, allocations: 152.2 kB / 0.7945 GB, free: 139.5 MB / 0.6511 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001219/5.324, allocations: 437.2 kB / 0.7949 GB, free: 139.3 MB / 0.6511 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.268e-05/5.324, allocations: 16.62 kB / 0.7949 GB, free: 139.3 MB / 0.6511 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001467/5.324, allocations: 29.12 kB / 0.795 GB, free: 139.3 MB / 0.6511 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.00151/5.325, allocations: 466.2 kB / 0.7954 GB, free: 139.3 MB / 0.6511 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001633/5.327, allocations: 0.5923 MB / 0.796 GB, free: 139.2 MB / 0.6511 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.628e-05/5.327, allocations: 9.25 kB / 0.796 GB, free: 139.1 MB / 0.6511 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.381e-05/5.327, allocations: 11.94 kB / 0.796 GB, free: 139.1 MB / 0.6511 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.748e-05/5.327, allocations: 42.52 kB / 0.796 GB, free: 139.1 MB / 0.6511 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005305/5.333, allocations: 2.717 MB / 0.7987 GB, free: 137.5 MB / 0.6511 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001423/5.334, allocations: 0.5235 MB / 0.7992 GB, free: 137.4 MB / 0.6511 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006113/5.335, allocations: 239 kB / 0.7994 GB, free: 137.4 MB / 0.6511 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0005307/5.335, allocations: 0.5683 MB / 0.8 GB, free: 136.7 MB / 0.6511 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008554/5.336, allocations: 338.6 kB / 0.8003 GB, free: 136.6 MB / 0.6511 GB Notification: Performance of pre-optimization done (n=49): time 3.867e-06/5.336, allocations: 0 / 0.8003 GB, free: 136.6 MB / 0.6511 GB Notification: Performance of matching and sorting (n=49): time 0.001703/5.338, allocations: 0.5061 MB / 0.8008 GB, free: 136.5 MB / 0.6511 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.481e-05/5.338, allocations: 84.17 kB / 0.8009 GB, free: 136.4 MB / 0.6511 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005192/5.338, allocations: 280.8 kB / 0.8012 GB, free: 136.3 MB / 0.6511 GB Notification: Performance of collectPreVariables (initialization): time 9.408e-05/5.339, allocations: 35.42 kB / 0.8012 GB, free: 136.3 MB / 0.6511 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002166/5.339, allocations: 238.2 kB / 0.8014 GB, free: 136.1 MB / 0.6511 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001829/5.339, allocations: 148.8 kB / 0.8016 GB, free: 136 MB / 0.6511 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.822e-05/5.339, allocations: 0 / 0.8016 GB, free: 136 MB / 0.6511 GB Notification: Performance of setup shared object (initialization): time 0.0001304/5.339, allocations: 356.1 kB / 0.8019 GB, free: 135.6 MB / 0.6511 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006053/5.34, allocations: 218 kB / 0.8021 GB, free: 135.5 MB / 0.6511 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007516/5.341, allocations: 335.8 kB / 0.8024 GB, free: 135.3 MB / 0.6511 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007591/5.341, allocations: 244.2 kB / 0.8027 GB, free: 135.2 MB / 0.6511 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.301e-06/5.341, allocations: 1.25 kB / 0.8027 GB, free: 135.2 MB / 0.6511 GB Notification: Performance of matching and sorting (n=70) (initialization): time 0.001787/5.343, allocations: 0.6034 MB / 0.8033 GB, free: 135 MB / 0.6511 GB Notification: Performance of prepare postOptimizeDAE: time 0.000255/5.343, allocations: 1.047 MB / 0.8043 GB, free: 133.8 MB / 0.6511 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.536e-05/5.343, allocations: 2.25 kB / 0.8043 GB, free: 133.8 MB / 0.6511 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.333e-05/5.344, allocations: 6.656 kB / 0.8043 GB, free: 133.8 MB / 0.6511 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00117/5.345, allocations: 115.5 kB / 0.8044 GB, free: 133.8 MB / 0.6511 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.539e-05/5.345, allocations: 5.438 kB / 0.8044 GB, free: 133.8 MB / 0.6511 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001017/5.346, allocations: 58.06 kB / 0.8045 GB, free: 133.8 MB / 0.6511 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.87e-05/5.346, allocations: 24.81 kB / 0.8045 GB, free: 133.8 MB / 0.6511 GB Notification: Performance of prepare postOptimizeDAE: time 1.521e-05/5.346, allocations: 11.31 kB / 0.8045 GB, free: 133.8 MB / 0.6511 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001463/5.347, allocations: 470.5 kB / 0.8049 GB, free: 133.6 MB / 0.6511 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.807e-06/5.347, allocations: 2.344 kB / 0.8049 GB, free: 133.6 MB / 0.6511 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.738e-05/5.347, allocations: 5.75 kB / 0.8049 GB, free: 133.6 MB / 0.6511 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009342/5.348, allocations: 109.8 kB / 0.8051 GB, free: 133.6 MB / 0.6511 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.29e-05/5.348, allocations: 6.219 kB / 0.8051 GB, free: 133.6 MB / 0.6511 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008788/5.349, allocations: 50.03 kB / 0.8051 GB, free: 133.6 MB / 0.6511 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.661e-05/5.349, allocations: 19.14 kB / 0.8051 GB, free: 133.6 MB / 0.6511 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.0002582/5.35, allocations: 129 kB / 0.8052 GB, free: 133.5 MB / 0.6511 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001409/5.35, allocations: 46.8 kB / 0.8053 GB, free: 133.4 MB / 0.6511 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001685/5.351, allocations: 0.5454 MB / 0.8058 GB, free: 133.2 MB / 0.6511 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.146e-05/5.352, allocations: 4.875 kB / 0.8058 GB, free: 133.2 MB / 0.6511 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.654e-06/5.352, allocations: 1.156 kB / 0.8058 GB, free: 133.2 MB / 0.6511 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.456e-05/5.352, allocations: 4.062 kB / 0.8058 GB, free: 133.2 MB / 0.6511 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001171/5.353, allocations: 0.5419 MB / 0.8064 GB, free: 132.9 MB / 0.6511 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.34e-06/5.353, allocations: 1.125 kB / 0.8064 GB, free: 132.9 MB / 0.6511 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001081/5.354, allocations: 92.81 kB / 0.8065 GB, free: 132.9 MB / 0.6511 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.288e-05/5.354, allocations: 3.062 kB / 0.8065 GB, free: 132.9 MB / 0.6511 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.799e-05/5.354, allocations: 7.359 kB / 0.8065 GB, free: 132.9 MB / 0.6511 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.732e-06/5.354, allocations: 2.219 kB / 0.8065 GB, free: 132.9 MB / 0.6511 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.96e-06/5.354, allocations: 1.031 kB / 0.8065 GB, free: 132.9 MB / 0.6511 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.002246/5.356, allocations: 0.8649 MB / 0.8073 GB, free: 132.5 MB / 0.6511 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.002989/5.359, allocations: 1.556 MB / 0.8088 GB, free: 131.5 MB / 0.6511 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0004316/5.36, allocations: 181.1 kB / 0.809 GB, free: 131.3 MB / 0.6511 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000143/5.36, allocations: 6.938 kB / 0.809 GB, free: 131.3 MB / 0.6511 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007392/5.361, allocations: 41.02 kB / 0.8091 GB, free: 131.3 MB / 0.6511 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001858/5.361, allocations: 41.22 kB / 0.8091 GB, free: 131.3 MB / 0.6511 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.041e-05/5.361, allocations: 17.86 kB / 0.8091 GB, free: 131.3 MB / 0.6511 GB Notification: Performance of sort global known variables: time 0.000366/5.361, allocations: 220.6 kB / 0.8093 GB, free: 131.1 MB / 0.6511 GB Notification: Performance of remove unused functions: time 0.002983/5.364, allocations: 264.1 kB / 0.8096 GB, free: 131.1 MB / 0.6511 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.0003741/5.365, allocations: 140.6 kB / 0.8097 GB, free: 130.9 MB / 0.6511 GB Notification: Performance of simCode: created initialization part: time 0.002334/5.367, allocations: 0.8595 MB / 0.8105 GB, free: 130.5 MB / 0.6511 GB Notification: Performance of simCode: created event and clocks part: time 7.725e-06/5.367, allocations: 3.938 kB / 0.8105 GB, free: 130.5 MB / 0.6511 GB Notification: Performance of simCode: created simulation system equations: time 0.0007351/5.368, allocations: 270.5 kB / 0.8108 GB, free: 130.4 MB / 0.6511 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001627/5.37, allocations: 139.7 kB / 0.8109 GB, free: 130.4 MB / 0.6511 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005394/5.375, allocations: 0.813 MB / 0.8117 GB, free: 129.9 MB / 0.6511 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00176/5.377, allocations: 0.9648 MB / 0.8127 GB, free: 129.1 MB / 0.6511 GB Notification: Performance of SimCode: time 1.883e-06/5.377, allocations: 0 / 0.8127 GB, free: 129.1 MB / 0.6511 GB