Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_maint.8.0.x_Buildings.Electrical.DC.Loads.Examples.VariableLoad.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.1-maint.8.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 8.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.1-maint.8.0.x/package.mo) Running command: "" <> buildModelFMU(Buildings.Electrical.DC.Loads.Examples.VariableLoad,fileNamePrefix="Buildings_maint_8_0_x_Buildings_Electrical_DC_Loads_Examples_VariableLoad",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Electrical.DC.Loads.Examples.VariableLoad,fileNamePrefix="Buildings_maint_8_0_x_Buildings_Electrical_DC_Loads_Examples_VariableLoad",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 8.0.1-maint.8.0.x/package.mo): time 1.327/1.327, allocations: 285.5 MB / 292.8 MB, free: 9.84 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.0009357/0.0009357, allocations: 187.7 kB / 361.1 MB, free: 388 kB / 282.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.026/1.026, allocations: 205.1 MB / 0.6195 GB, free: 2.949 MB / 442.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0007749/0.000775, allocations: 85.09 kB / 0.7326 GB, free: 1.184 MB / 0.5417 GB Notification: Performance of FrontEnd - loaded program: time 0.3419/0.3427, allocations: 121.4 MB / 0.8512 GB, free: 151.7 MB / 0.6355 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.137/0.4797, allocations: 115.3 MB / 0.9638 GB, free: 56.3 MB / 0.6355 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.417/0.8967, allocations: 165 MB / 1.125 GB, free: 31.88 MB / 0.7136 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001913/0.8969, allocations: 93.69 kB / 1.125 GB, free: 31.88 MB / 0.7136 GB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.1-maint.8.0.x/Electrical/Interfaces/Source.mo:30:9-30:50:writable] Warning: Ignoring overconstrained operator applied to array components having size zero: Connections.potentialRoot(terminal.theta);. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.1-maint.8.0.x/Electrical/Transmission/BaseClasses/PartialTwoPortResistance.mo:13:3-13:57:writable] Warning: Ignoring overconstrained operator applied to array components having size zero: Connections.branch(terminal_p.theta, terminal_n.theta);. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.1-maint.8.0.x/Electrical/DC/Sensors/GeneralizedSensor.mo:39:3-39:57:writable] Warning: Ignoring overconstrained operator applied to array components having size zero: Connections.branch(terminal_p.theta, terminal_n.theta);. Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 82 * Number of variables: 82 Notification: Performance of Generate backend data structure: time 0.03697/0.9339, allocations: 19.52 MB / 1.144 GB, free: 29.77 MB / 0.7136 GB Notification: Performance of prepare preOptimizeDAE: time 3.145e-05/0.934, allocations: 7.625 kB / 1.144 GB, free: 29.77 MB / 0.7136 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007344/0.9347, allocations: 105 kB / 1.144 GB, free: 29.74 MB / 0.7136 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003071/0.935, allocations: 292.1 kB / 1.144 GB, free: 29.51 MB / 0.7136 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.172e-05/0.935, allocations: 11.59 kB / 1.144 GB, free: 29.51 MB / 0.7136 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.707e-05/0.9351, allocations: 15.41 kB / 1.145 GB, free: 29.51 MB / 0.7136 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0003909/0.9355, allocations: 295.1 kB / 1.145 GB, free: 29.51 MB / 0.7136 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004557/0.9359, allocations: 414 kB / 1.145 GB, free: 29.4 MB / 0.7136 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.175e-05/0.936, allocations: 4 kB / 1.145 GB, free: 29.39 MB / 0.7136 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.86e-05/0.936, allocations: 0 / 1.145 GB, free: 29.39 MB / 0.7136 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.225e-05/0.936, allocations: 37.03 kB / 1.145 GB, free: 29.39 MB / 0.7136 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001534/0.9376, allocations: 1.991 MB / 1.147 GB, free: 27.88 MB / 0.7136 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000343/0.9379, allocations: 184.4 kB / 1.147 GB, free: 27.84 MB / 0.7136 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002036/0.9381, allocations: 135.9 kB / 1.147 GB, free: 27.83 MB / 0.7136 GB Notification: Performance of preOpt evalFunc (simulation): time 2.076e-05/0.9382, allocations: 3.938 kB / 1.147 GB, free: 27.83 MB / 0.7136 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.234e-05/0.9382, allocations: 41.72 kB / 1.148 GB, free: 27.79 MB / 0.7136 GB Notification: Performance of pre-optimization done (n=18): time 1.303e-06/0.9382, allocations: 0 / 1.148 GB, free: 27.79 MB / 0.7136 GB Notification: Performance of matching and sorting (n=18): time 0.0003522/0.9386, allocations: 185.2 kB / 1.148 GB, free: 27.73 MB / 0.7136 GB Notification: Performance of inlineWhenForInitialization (initialization): time 1.441e-05/0.9386, allocations: 57.22 kB / 1.148 GB, free: 27.66 MB / 0.7136 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001414/0.9387, allocations: 194.7 kB / 1.148 GB, free: 43.57 MB / 0.7292 GB Notification: Performance of collectPreVariables (initialization): time 1.972e-05/0.9388, allocations: 29.58 kB / 1.148 GB, free: 43.54 MB / 0.7292 GB Notification: Performance of collectInitialEqns (initialization): time 6.315e-05/0.9388, allocations: 194.1 kB / 1.148 GB, free: 43.39 MB / 0.7292 GB Notification: Performance of collectInitialBindings (initialization): time 2.85e-05/0.9389, allocations: 67.78 kB / 1.148 GB, free: 43.34 MB / 0.7292 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.028e-05/0.9389, allocations: 0 / 1.148 GB, free: 43.34 MB / 0.7292 GB Notification: Performance of setup shared object (initialization): time 8.293e-05/0.939, allocations: 336.9 kB / 1.149 GB, free: 43.03 MB / 0.7292 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.409e-05/0.9391, allocations: 57.09 kB / 1.149 GB, free: 43.03 MB / 0.7292 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001132/0.9392, allocations: 178.1 kB / 1.149 GB, free: 42.88 MB / 0.7292 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000116/0.9393, allocations: 91.81 kB / 1.149 GB, free: 42.88 MB / 0.7292 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.134e-06/0.9393, allocations: 0 / 1.149 GB, free: 42.88 MB / 0.7292 GB Notification: Performance of matching and sorting (n=33) (initialization): time 0.0003647/0.9397, allocations: 272.8 kB / 1.149 GB, free: 42.8 MB / 0.7292 GB Notification: Performance of prepare postOptimizeDAE: time 0.0003536/0.94, allocations: 1.396 MB / 1.15 GB, free: 41.34 MB / 0.7292 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.622e-06/0.94, allocations: 3.812 kB / 1.15 GB, free: 41.34 MB / 0.7292 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001357/0.9402, allocations: 32.44 kB / 1.151 GB, free: 41.33 MB / 0.7292 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002603/0.9405, allocations: 71.81 kB / 1.151 GB, free: 41.32 MB / 0.7292 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0002946/0.9408, allocations: 0.56 MB / 1.151 GB, free: 40.8 MB / 0.7292 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002406/0.941, allocations: 38.45 kB / 1.151 GB, free: 40.79 MB / 0.7292 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.801e-05/0.941, allocations: 15.12 kB / 1.151 GB, free: 40.79 MB / 0.7292 GB Notification: Performance of prepare postOptimizeDAE: time 5.491e-06/0.9411, allocations: 7.875 kB / 1.151 GB, free: 40.78 MB / 0.7292 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0002404/0.9413, allocations: 191.4 kB / 1.151 GB, free: 40.76 MB / 0.7292 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.715e-06/0.9413, allocations: 7.844 kB / 1.151 GB, free: 40.76 MB / 0.7292 GB Notification: Performance of postOpt tearingSystem (initialization): time 4.308e-06/0.9413, allocations: 4.375 kB / 1.151 GB, free: 40.76 MB / 0.7292 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002561/0.9416, allocations: 80.41 kB / 1.151 GB, free: 40.75 MB / 0.7292 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.088e-06/0.9416, allocations: 9.516 kB / 1.151 GB, free: 40.75 MB / 0.7292 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001965/0.9418, allocations: 40.28 kB / 1.151 GB, free: 40.73 MB / 0.7292 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.495e-05/0.9418, allocations: 11.75 kB / 1.152 GB, free: 40.73 MB / 0.7292 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 16 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (32): * Single equations (assignments): 31 * 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: 0 * Non-linear torn systems: 1 {1 1} Notification: Performance of prepare postOptimizeDAE: time 8.138e-05/0.9419, allocations: 116.6 kB / 1.152 GB, free: 40.62 MB / 0.7292 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.137e-05/0.9419, allocations: 23.06 kB / 1.152 GB, free: 40.61 MB / 0.7292 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.023e-05/0.942, allocations: 28.25 kB / 1.152 GB, free: 40.6 MB / 0.7292 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.114e-06/0.942, allocations: 4 kB / 1.152 GB, free: 40.6 MB / 0.7292 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.158e-06/0.942, allocations: 0 / 1.152 GB, free: 40.6 MB / 0.7292 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.256e-06/0.942, allocations: 7.812 kB / 1.152 GB, free: 40.59 MB / 0.7292 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006582/0.9427, allocations: 0.6409 MB / 1.152 GB, free: 40.22 MB / 0.7292 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.613e-06/0.9427, allocations: 64 / 1.152 GB, free: 40.22 MB / 0.7292 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001833/0.9429, allocations: 46.84 kB / 1.152 GB, free: 40.22 MB / 0.7292 GB Notification: Performance of postOpt tearingSystem (simulation): time 8.193e-05/0.943, allocations: 30.45 kB / 1.152 GB, free: 40.21 MB / 0.7292 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.25e-05/0.943, allocations: 4 kB / 1.152 GB, free: 40.21 MB / 0.7292 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0006974/0.9437, allocations: 1.255 MB / 1.154 GB, free: 39 MB / 0.7292 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.715e-06/0.9437, allocations: 3.906 kB / 1.154 GB, free: 39 MB / 0.7292 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0002801/0.944, allocations: 333.5 kB / 1.154 GB, free: 38.79 MB / 0.7292 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.0003507/0.9444, allocations: 0.7003 MB / 1.155 GB, free: 38.21 MB / 0.7292 GB Notification: Performance of postOpt removeConstants (simulation): time 8.092e-05/0.9445, allocations: 111.9 kB / 1.155 GB, free: 38.11 MB / 0.7292 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.002e-05/0.9445, allocations: 7.781 kB / 1.155 GB, free: 38.1 MB / 0.7292 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001845/0.9447, allocations: 17.09 kB / 1.155 GB, free: 38.1 MB / 0.7292 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.134e-05/0.9447, allocations: 24.98 kB / 1.155 GB, free: 38.09 MB / 0.7292 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.106e-05/0.9447, allocations: 3.844 kB / 1.155 GB, free: 38.09 MB / 0.7292 GB Notification: Performance of sort global known variables: time 8.697e-05/0.9448, allocations: 149.8 kB / 1.155 GB, free: 38.02 MB / 0.7292 GB Notification: Performance of remove unused functions: time 0.001502/0.9463, allocations: 141.4 kB / 1.155 GB, free: 37.98 MB / 0.7292 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (18): * Single equations (assignments): 17 * 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: 0 * Non-linear torn systems: 1 {1 1} Notification: Performance of Backend phase and start with SimCode phase: time 0.0001178/0.9465, allocations: 102.5 kB / 1.155 GB, free: 37.89 MB / 0.7292 GB Notification: Performance of simCode: created initialization part: time 0.0003912/0.9469, allocations: 293.1 kB / 1.155 GB, free: 37.87 MB / 0.7292 GB Notification: Performance of simCode: created event and clocks part: time 2.475e-06/0.9469, allocations: 0 / 1.155 GB, free: 37.87 MB / 0.7292 GB Notification: Performance of simCode: created simulation system equations: time 0.0001855/0.9471, allocations: 182.7 kB / 1.156 GB, free: 37.76 MB / 0.7292 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003132/0.9474, allocations: 56.09 kB / 1.156 GB, free: 37.75 MB / 0.7292 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005618/0.948, allocations: 381.7 kB / 1.156 GB, free: 37.59 MB / 0.7292 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003323/0.9483, allocations: 0.8376 MB / 1.157 GB, free: 36.88 MB / 0.7292 GB Notification: Performance of SimCode: time 2.4e-07/0.9483, allocations: 0 / 1.157 GB, free: 36.88 MB / 0.7292 GB (rm -f Buildings_maint.8.0.x_Buildings.Electrical.DC.Loads.Examples.VariableLoad.pipe ; mkfifo Buildings_maint.8.0.x_Buildings.Electrical.DC.Loads.Examples.VariableLoad.pipe ; head -c 1048576 < Buildings_maint.8.0.x_Buildings.Electrical.DC.Loads.Examples.VariableLoad.pipe >> ../files/Buildings_maint.8.0.x_Buildings.Electrical.DC.Loads.Examples.VariableLoad.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_Buildings_maint_8_0_x_Buildings_Electrical_DC_Loads_Examples_VariableLoad_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Buildings_maint_8_0_x_Buildings_Electrical_DC_Loads_Examples_VariableLoad.fmu > Buildings_maint.8.0.x_Buildings.Electrical.DC.Loads.Examples.VariableLoad.pipe 2>&1)