Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_7.0.0_Buildings.Electrical.AC.OnePhase.Sensors.Examples.GeneralizedSensor.conf.json 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.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.1/package.mo) Running command: "" <> buildModelFMU(Buildings.Electrical.AC.OnePhase.Sensors.Examples.GeneralizedSensor,fileNamePrefix="Buildings_7_0_0_Buildings_Electrical_AC_OnePhase_Sensors_Examples_GeneralizedSensor",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.1/package.mo): time 2.414/2.414, allocations: 248.6 MB / 255.9 MB, free: 7.148 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.002425/0.002425, allocations: 184.1 kB / 315.1 MB, free: 4.25 MB / 250.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.072/2.072, allocations: 205.1 MB / 0.5658 GB, free: 284 kB / 410.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.002487/0.002487, allocations: 93.56 kB / 0.67 GB, free: 5.484 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.5164/0.5189, allocations: 112.4 MB / 0.7797 GB, free: 103.7 MB / 0.5417 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2495/0.7685, allocations: 106.3 MB / 0.8835 GB, free: 13.32 MB / 0.5573 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.7103/1.479, allocations: 158.6 MB / 1.038 GB, free: 15.33 MB / 0.6667 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003833/1.479, allocations: 95.75 kB / 1.038 GB, free: 15.28 MB / 0.6667 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 59 * Number of variables: 59 Notification: Performance of Generate backend data structure: time 0.08559/1.565, allocations: 16.56 MB / 1.055 GB, free: 1.438 MB / 0.6667 GB Notification: Performance of prepare preOptimizeDAE: time 4.648e-05/1.565, allocations: 12 kB / 1.055 GB, free: 1.426 MB / 0.6667 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00147/1.566, allocations: 95.52 kB / 1.055 GB, free: 1.332 MB / 0.6667 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006271/1.567, allocations: 259.5 kB / 1.055 GB, free: 1.059 MB / 0.6667 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.03e-05/1.567, allocations: 8 kB / 1.055 GB, free: 1.051 MB / 0.6667 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.923e-05/1.567, allocations: 12 kB / 1.055 GB, free: 1.039 MB / 0.6667 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0006862/1.568, allocations: 233.7 kB / 1.055 GB, free: 0.8867 MB / 0.6667 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008049/1.569, allocations: 340.7 kB / 1.056 GB, free: 0.6016 MB / 0.6667 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.849e-05/1.569, allocations: 0 / 1.056 GB, free: 0.6016 MB / 0.6667 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.556e-05/1.569, allocations: 0 / 1.056 GB, free: 0.6016 MB / 0.6667 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.141e-05/1.569, allocations: 24.42 kB / 1.056 GB, free: 0.5781 MB / 0.6667 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003083/1.572, allocations: 1.477 MB / 1.057 GB, free: 15.12 MB / 0.6823 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000568/1.573, allocations: 197.1 kB / 1.057 GB, free: 14.97 MB / 0.6823 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003841/1.573, allocations: 111.5 kB / 1.057 GB, free: 14.89 MB / 0.6823 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0003897/1.573, allocations: 93.02 kB / 1.057 GB, free: 14.79 MB / 0.6823 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.581e-05/1.574, allocations: 38.44 kB / 1.057 GB, free: 14.74 MB / 0.6823 GB Notification: Performance of pre-optimization done (n=18): time 5.42e-06/1.574, allocations: 4 kB / 1.057 GB, free: 14.74 MB / 0.6823 GB Notification: Performance of matching and sorting (n=19): time 0.003922/1.577, allocations: 0.7238 MB / 1.058 GB, free: 14.09 MB / 0.6823 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.936e-05/1.578, allocations: 55.41 kB / 1.058 GB, free: 14.02 MB / 0.6823 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004618/1.578, allocations: 164.1 kB / 1.058 GB, free: 13.88 MB / 0.6823 GB Notification: Performance of collectPreVariables (initialization): time 7.288e-05/1.578, allocations: 25.7 kB / 1.058 GB, free: 13.85 MB / 0.6823 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001987/1.578, allocations: 162.8 kB / 1.058 GB, free: 13.69 MB / 0.6823 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001232/1.579, allocations: 60.86 kB / 1.059 GB, free: 13.64 MB / 0.6823 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.687e-05/1.579, allocations: 0 / 1.059 GB, free: 13.64 MB / 0.6823 GB Notification: Performance of setup shared object (initialization): time 0.0002289/1.579, allocations: 329.3 kB / 1.059 GB, free: 13.32 MB / 0.6823 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004478/1.579, allocations: 109.4 kB / 1.059 GB, free: 13.25 MB / 0.6823 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005258/1.58, allocations: 170 kB / 1.059 GB, free: 13.1 MB / 0.6823 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.00113/1.581, allocations: 152.8 kB / 1.059 GB, free: 13 MB / 0.6823 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.091e-06/1.581, allocations: 0 / 1.059 GB, free: 13 MB / 0.6823 GB Notification: Performance of matching and sorting (n=31) (initialization): time 0.002304/1.583, allocations: 419.1 kB / 1.06 GB, free: 12.66 MB / 0.6823 GB Notification: Performance of prepare postOptimizeDAE: time 2.712e-05/1.584, allocations: 4 kB / 1.06 GB, free: 12.66 MB / 0.6823 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.617e-05/1.584, allocations: 3.906 kB / 1.06 GB, free: 12.66 MB / 0.6823 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009572/1.585, allocations: 102.3 kB / 1.06 GB, free: 12.57 MB / 0.6823 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006878/1.585, allocations: 47.91 kB / 1.06 GB, free: 12.52 MB / 0.6823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003291/1.589, allocations: 1.644 MB / 1.061 GB, free: 10.91 MB / 0.6823 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004291/1.589, allocations: 7.984 kB / 1.061 GB, free: 10.91 MB / 0.6823 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.827e-05/1.589, allocations: 8 kB / 1.061 GB, free: 10.9 MB / 0.6823 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 7 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (26): * Single equations (assignments): 25 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(2,100.0%) 4} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002225/1.589, allocations: 108.9 kB / 1.062 GB, free: 10.79 MB / 0.6823 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.218e-05/1.589, allocations: 23.09 kB / 1.062 GB, free: 10.77 MB / 0.6823 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001069/1.591, allocations: 310.8 kB / 1.062 GB, free: 10.54 MB / 0.6823 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.223e-05/1.591, allocations: 4 kB / 1.062 GB, free: 10.54 MB / 0.6823 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.537e-06/1.591, allocations: 3.938 kB / 1.062 GB, free: 10.53 MB / 0.6823 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.414e-06/1.591, allocations: 3.938 kB / 1.062 GB, free: 10.53 MB / 0.6823 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001677/1.592, allocations: 0.6716 MB / 1.063 GB, free: 9.922 MB / 0.6823 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.629e-06/1.592, allocations: 0 / 1.063 GB, free: 9.922 MB / 0.6823 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005854/1.593, allocations: 51.91 kB / 1.063 GB, free: 9.871 MB / 0.6823 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.365e-05/1.593, allocations: 4 kB / 1.063 GB, free: 9.867 MB / 0.6823 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.055e-05/1.593, allocations: 3.984 kB / 1.063 GB, free: 9.863 MB / 0.6823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.682e-06/1.593, allocations: 4 kB / 1.063 GB, free: 9.859 MB / 0.6823 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.817e-06/1.593, allocations: 0 / 1.063 GB, free: 9.859 MB / 0.6823 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.001271/1.594, allocations: 0.5513 MB / 1.063 GB, free: 9.398 MB / 0.6823 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.001737/1.596, allocations: 1.081 MB / 1.064 GB, free: 8.461 MB / 0.6823 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002115/1.596, allocations: 115.2 kB / 1.064 GB, free: 8.336 MB / 0.6823 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.007e-05/1.596, allocations: 7.906 kB / 1.064 GB, free: 8.328 MB / 0.6823 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003119/1.597, allocations: 7.984 kB / 1.064 GB, free: 8.32 MB / 0.6823 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.676e-05/1.597, allocations: 11.86 kB / 1.064 GB, free: 8.312 MB / 0.6823 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.607e-05/1.597, allocations: 8.062 kB / 1.064 GB, free: 8.305 MB / 0.6823 GB Notification: Performance of sort global known variables: time 0.0001831/1.597, allocations: 140.4 kB / 1.064 GB, free: 8.184 MB / 0.6823 GB Notification: Performance of remove unused functions: time 0.001474/1.598, allocations: 73.56 kB / 1.065 GB, free: 8.117 MB / 0.6823 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 2 (loa.q[1],loa.q[2]) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (20): * Single equations (assignments): 20 * Array equations: 0 * Algorithm blocks: 0 * 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 Backend phase and start with SimCode phase: time 0.0002738/1.599, allocations: 119.2 kB / 1.065 GB, free: 7.992 MB / 0.6823 GB Notification: Performance of simCode: created initialization part: time 0.00113/1.6, allocations: 390.2 kB / 1.065 GB, free: 7.684 MB / 0.6823 GB Notification: Performance of simCode: created event and clocks part: time 3.707e-06/1.6, allocations: 0 / 1.065 GB, free: 7.684 MB / 0.6823 GB Notification: Performance of simCode: created simulation system equations: time 0.000277/1.6, allocations: 120.5 kB / 1.065 GB, free: 7.602 MB / 0.6823 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004283/1.601, allocations: 28.89 kB / 1.065 GB, free: 7.578 MB / 0.6823 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001742/1.602, allocations: 0.4887 MB / 1.066 GB, free: 7.102 MB / 0.6823 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007298/1.603, allocations: 0.8118 MB / 1.066 GB, free: 6.281 MB / 0.6823 GB Notification: Performance of SimCode: time 1.062e-06/1.603, allocations: 0 / 1.066 GB, free: 6.281 MB / 0.6823 GB