Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/../OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Buildings_6.0.0_Buildings.Electrical.AC.ThreePhasesBalanced.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.ThreePhasesBalanced.Storage.Examples.AcBattery,fileNamePrefix="Buildings_6_0_0_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 loadModel(Buildings): time 3.974/3.974, allocations: 433 MB / 440.3 MB, free: 4.809 MB / 346.7 MB Notification: Performance of FrontEnd - loaded program: time 0.5473/4.521, allocations: 104.3 MB / 0.5319 GB, free: 12.98 MB / 442.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2507/4.772, allocations: 98.72 MB / 0.6283 GB, free: 9.734 MB / 0.5105 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.2858/5.058, allocations: 144 MB / 0.7689 GB, free: 9.574 MB / 0.6511 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003645/5.058, allocations: 91.58 kB / 0.769 GB, free: 9.488 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.4981/5.556, allocations: 29.36 MB / 0.7976 GB, free: 141.5 MB / 0.6511 GB Notification: Performance of prepare preOptimizeDAE: time 4.75e-05/5.556, allocations: 8.625 kB / 0.7976 GB, free: 141.5 MB / 0.6511 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001608/5.558, allocations: 153.3 kB / 0.7978 GB, free: 141.4 MB / 0.6511 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001032/5.559, allocations: 436.4 kB / 0.7982 GB, free: 141.1 MB / 0.6511 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.055e-05/5.559, allocations: 15.28 kB / 0.7982 GB, free: 141.1 MB / 0.6511 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000146/5.559, allocations: 32.19 kB / 0.7983 GB, free: 141.1 MB / 0.6511 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001459/5.561, allocations: 465.6 kB / 0.7987 GB, free: 140.9 MB / 0.6511 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001508/5.562, allocations: 0.5929 MB / 0.7993 GB, free: 140.5 MB / 0.6511 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.336e-05/5.562, allocations: 3.906 kB / 0.7993 GB, free: 140.5 MB / 0.6511 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.43e-05/5.562, allocations: 15.05 kB / 0.7993 GB, free: 140.5 MB / 0.6511 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.689e-05/5.562, allocations: 48.05 kB / 0.7993 GB, free: 140.5 MB / 0.6511 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005347/5.568, allocations: 2.72 MB / 0.802 GB, free: 138.1 MB / 0.6511 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001398/5.569, allocations: 0.5223 MB / 0.8025 GB, free: 137.8 MB / 0.6511 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006037/5.57, allocations: 240 kB / 0.8027 GB, free: 137.7 MB / 0.6511 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0005114/5.57, allocations: 0.5682 MB / 0.8033 GB, free: 137 MB / 0.6511 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007831/5.571, allocations: 346 kB / 0.8036 GB, free: 136.8 MB / 0.6511 GB Notification: Performance of pre-optimization done (n=49): time 3.877e-06/5.571, allocations: 0 / 0.8036 GB, free: 136.8 MB / 0.6511 GB Notification: Performance of matching and sorting (n=49): time 0.001549/5.573, allocations: 0.5024 MB / 0.8041 GB, free: 136.5 MB / 0.6511 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.02e-05/5.573, allocations: 83.05 kB / 0.8042 GB, free: 136.4 MB / 0.6511 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004887/5.573, allocations: 285.6 kB / 0.8045 GB, free: 136.2 MB / 0.6511 GB Notification: Performance of collectPreVariables (initialization): time 0.0001008/5.574, allocations: 37.56 kB / 0.8045 GB, free: 136.2 MB / 0.6511 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002218/5.574, allocations: 230.6 kB / 0.8047 GB, free: 136 MB / 0.6511 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001692/5.574, allocations: 146.1 kB / 0.8049 GB, free: 135.9 MB / 0.6511 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.848e-05/5.574, allocations: 0.8438 kB / 0.8049 GB, free: 135.9 MB / 0.6511 GB Notification: Performance of setup shared object (initialization): time 0.0001057/5.574, allocations: 357.6 kB / 0.8052 GB, free: 135.5 MB / 0.6511 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005972/5.575, allocations: 213.6 kB / 0.8054 GB, free: 135.4 MB / 0.6511 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006748/5.575, allocations: 331.1 kB / 0.8057 GB, free: 135.2 MB / 0.6511 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007328/5.576, allocations: 244 kB / 0.806 GB, free: 135.1 MB / 0.6511 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.015e-06/5.576, allocations: 5.219 kB / 0.806 GB, free: 135.1 MB / 0.6511 GB Notification: Performance of matching and sorting (n=70) (initialization): time 0.001712/5.578, allocations: 0.5933 MB / 0.8065 GB, free: 134.8 MB / 0.6511 GB Notification: Performance of prepare postOptimizeDAE: time 0.0002302/5.578, allocations: 1.056 MB / 0.8076 GB, free: 133.6 MB / 0.6511 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.261e-05/5.578, allocations: 2.75 kB / 0.8076 GB, free: 133.6 MB / 0.6511 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.136e-05/5.578, allocations: 5.5 kB / 0.8076 GB, free: 133.6 MB / 0.6511 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001098/5.579, allocations: 112.9 kB / 0.8077 GB, free: 133.6 MB / 0.6511 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.265e-05/5.579, allocations: 9.781 kB / 0.8077 GB, free: 133.6 MB / 0.6511 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000972/5.58, allocations: 53.2 kB / 0.8077 GB, free: 133.6 MB / 0.6511 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.377e-05/5.58, allocations: 31.78 kB / 0.8078 GB, free: 133.6 MB / 0.6511 GB Notification: Performance of prepare postOptimizeDAE: time 1.057e-05/5.58, allocations: 3.625 kB / 0.8078 GB, free: 133.6 MB / 0.6511 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001334/5.582, allocations: 469.4 kB / 0.8082 GB, free: 133.3 MB / 0.6511 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.636e-06/5.582, allocations: 7.469 kB / 0.8082 GB, free: 133.3 MB / 0.6511 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.338e-05/5.582, allocations: 5.594 kB / 0.8082 GB, free: 133.3 MB / 0.6511 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008604/5.583, allocations: 105.7 kB / 0.8083 GB, free: 133.3 MB / 0.6511 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.239e-05/5.583, allocations: 9.125 kB / 0.8083 GB, free: 133.3 MB / 0.6511 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008226/5.584, allocations: 51.28 kB / 0.8084 GB, free: 133.3 MB / 0.6511 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.714e-05/5.584, allocations: 23.83 kB / 0.8084 GB, free: 133.3 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.0002369/5.584, allocations: 122.3 kB / 0.8085 GB, free: 133.2 MB / 0.6511 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000135/5.584, allocations: 47.47 kB / 0.8086 GB, free: 133.1 MB / 0.6511 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001637/5.586, allocations: 0.5454 MB / 0.8091 GB, free: 132.8 MB / 0.6511 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.065e-05/5.586, allocations: 6.062 kB / 0.8091 GB, free: 132.8 MB / 0.6511 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.873e-06/5.586, allocations: 0 / 0.8091 GB, free: 132.8 MB / 0.6511 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.948e-06/5.586, allocations: 5.422 kB / 0.8091 GB, free: 132.8 MB / 0.6511 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000985/5.587, allocations: 0.5487 MB / 0.8097 GB, free: 132.4 MB / 0.6511 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.579e-06/5.587, allocations: 0.875 kB / 0.8097 GB, free: 132.4 MB / 0.6511 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001074/5.588, allocations: 85.62 kB / 0.8097 GB, free: 132.4 MB / 0.6511 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.023e-05/5.588, allocations: 6.062 kB / 0.8098 GB, free: 132.4 MB / 0.6511 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.668e-05/5.588, allocations: 6.125 kB / 0.8098 GB, free: 132.4 MB / 0.6511 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.713e-06/5.588, allocations: 6.281 kB / 0.8098 GB, free: 132.4 MB / 0.6511 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.348e-06/5.588, allocations: 0.6875 kB / 0.8098 GB, free: 132.4 MB / 0.6511 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.002265/5.59, allocations: 0.8606 MB / 0.8106 GB, free: 131.9 MB / 0.6511 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.00496/5.595, allocations: 1.558 MB / 0.8121 GB, free: 130.9 MB / 0.6511 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0007546/5.596, allocations: 183.7 kB / 0.8123 GB, free: 130.7 MB / 0.6511 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003082/5.596, allocations: 4 kB / 0.8123 GB, free: 130.7 MB / 0.6511 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001293/5.598, allocations: 35.95 kB / 0.8123 GB, free: 130.6 MB / 0.6511 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003125/5.598, allocations: 48.5 kB / 0.8124 GB, free: 130.6 MB / 0.6511 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.566e-05/5.598, allocations: 16 kB / 0.8124 GB, free: 130.6 MB / 0.6511 GB Notification: Performance of sort global known variables: time 0.0005909/5.599, allocations: 224.6 kB / 0.8126 GB, free: 130.4 MB / 0.6511 GB Notification: Performance of remove unused functions: time 0.005726/5.605, allocations: 255.1 kB / 0.8129 GB, free: 130.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.0004602/5.605, allocations: 147.1 kB / 0.813 GB, free: 130 MB / 0.6511 GB Notification: Performance of simCode: created initialization part: time 0.00235/5.607, allocations: 0.8586 MB / 0.8138 GB, free: 129.1 MB / 0.6511 GB Notification: Performance of simCode: created event and clocks part: time 4.329e-06/5.607, allocations: 0 / 0.8138 GB, free: 129.1 MB / 0.6511 GB Notification: Performance of simCode: created simulation system equations: time 0.0006101/5.608, allocations: 269.5 kB / 0.8141 GB, free: 128.8 MB / 0.6511 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001483/5.61, allocations: 139.2 kB / 0.8142 GB, free: 128.7 MB / 0.6511 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002921/5.613, allocations: 0.8105 MB / 0.815 GB, free: 127.9 MB / 0.6511 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000813/5.613, allocations: 0.9693 MB / 0.816 GB, free: 126.9 MB / 0.6511 GB Notification: Performance of SimCode: time 2.134e-06/5.613, allocations: 0 / 0.816 GB, free: 126.9 MB / 0.6511 GB