Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_8.0.0_Buildings.Electrical.DC.Sources.Examples.PVSimple.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.0/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.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.0/package.mo) Running command: "" <> buildModelFMU(Buildings.Electrical.DC.Sources.Examples.PVSimple,fileNamePrefix="Buildings_8_0_0_Buildings_Electrical_DC_Sources_Examples_PVSimple",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Electrical.DC.Sources.Examples.PVSimple,fileNamePrefix="Buildings_8_0_0_Buildings_Electrical_DC_Sources_Examples_PVSimple",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.0/package.mo): time 2.129/2.129, allocations: 284.8 MB / 292.1 MB, free: 10.72 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.001576/0.001575, allocations: 173.3 kB / 360.3 MB, free: 7.496 MB / 298.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.616/1.616, allocations: 205.1 MB / 0.6187 GB, free: 13.18 MB / 474.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001204/0.001203, allocations: 92.17 kB / 0.7317 GB, free: 45.09 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.2423/0.2436, allocations: 121.4 MB / 0.8502 GB, free: 3.898 MB / 0.5886 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5419/0.7855, allocations: 115.2 MB / 0.9627 GB, free: 78.3 MB / 0.6667 GB Notification: Performance of FrontEnd - scodeFlatten: time 4.482/5.268, allocations: 2.105 GB / 3.067 GB, free: 263.4 MB / 0.9323 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003185/5.268, allocations: 97.69 kB / 3.067 GB, free: 263.4 MB / 0.9323 GB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.0/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.0/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.0/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: 372 * Number of variables: 372 Notification: Performance of Generate backend data structure: time 0.2724/5.541, allocations: 70.78 MB / 3.137 GB, free: 222 MB / 0.9323 GB Notification: Performance of prepare preOptimizeDAE: time 4.132e-05/5.541, allocations: 8.5 kB / 3.137 GB, free: 221.9 MB / 0.9323 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01009/5.551, allocations: 0.8969 MB / 3.137 GB, free: 221.1 MB / 0.9323 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002485/5.553, allocations: 0.8873 MB / 3.138 GB, free: 220.3 MB / 0.9323 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.264e-05/5.553, allocations: 44 kB / 3.138 GB, free: 220.3 MB / 0.9323 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002947/5.554, allocations: 87.91 kB / 3.138 GB, free: 220.2 MB / 0.9323 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.004697/5.558, allocations: 1.853 MB / 3.14 GB, free: 218.9 MB / 0.9323 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003568/5.562, allocations: 1.525 MB / 3.142 GB, free: 217.7 MB / 0.9323 GB Notification: Performance of preOpt findStateOrder (simulation): time 4.186e-05/5.562, allocations: 0 / 3.142 GB, free: 217.7 MB / 0.9323 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002565/5.562, allocations: 4 kB / 3.142 GB, free: 217.7 MB / 0.9323 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.337e-05/5.562, allocations: 62.75 kB / 3.142 GB, free: 217.6 MB / 0.9323 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01528/5.578, allocations: 6.076 MB / 3.148 GB, free: 212.7 MB / 0.9323 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002868/5.581, allocations: 1.191 MB / 3.149 GB, free: 212 MB / 0.9323 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001468/5.582, allocations: 0.5683 MB / 3.149 GB, free: 211.6 MB / 0.9323 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0009427/5.583, allocations: 493.3 kB / 3.15 GB, free: 211.1 MB / 0.9323 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001602/5.585, allocations: 0.7389 MB / 3.151 GB, free: 210.5 MB / 0.9323 GB Notification: Performance of pre-optimization done (n=128): time 3.927e-06/5.585, allocations: 0 / 3.151 GB, free: 210.5 MB / 0.9323 GB Notification: Performance of matching and sorting (n=128): time 0.004099/5.589, allocations: 1.223 MB / 3.152 GB, free: 209.6 MB / 0.9323 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.844e-05/5.589, allocations: 362.9 kB / 3.152 GB, free: 209.2 MB / 0.9323 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001298/5.59, allocations: 0.674 MB / 3.153 GB, free: 208.7 MB / 0.9323 GB Notification: Performance of collectPreVariables (initialization): time 0.000166/5.59, allocations: 25.7 kB / 3.153 GB, free: 208.7 MB / 0.9323 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003863/5.591, allocations: 491.3 kB / 3.153 GB, free: 208.2 MB / 0.9323 GB Notification: Performance of collectInitialBindings (initialization): time 0.0003889/5.591, allocations: 406.3 kB / 3.154 GB, free: 207.9 MB / 0.9323 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001352/5.591, allocations: 0 / 3.154 GB, free: 207.9 MB / 0.9323 GB Notification: Performance of setup shared object (initialization): time 9.286e-05/5.591, allocations: 352.7 kB / 3.154 GB, free: 207.6 MB / 0.9323 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001195/5.593, allocations: 441 kB / 3.154 GB, free: 207.3 MB / 0.9323 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00136/5.594, allocations: 0.6301 MB / 3.155 GB, free: 206.8 MB / 0.9323 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001833/5.596, allocations: 0.5661 MB / 3.156 GB, free: 206.5 MB / 0.9323 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.74e-06/5.596, allocations: 0 / 3.156 GB, free: 206.5 MB / 0.9323 GB Notification: Performance of matching and sorting (n=148) (initialization): time 0.003995/5.6, allocations: 1.32 MB / 3.157 GB, free: 205.5 MB / 0.9323 GB Notification: Performance of prepare postOptimizeDAE: time 0.000204/5.6, allocations: 1.053 MB / 3.158 GB, free: 204.3 MB / 0.9323 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.385e-05/5.6, allocations: 4 kB / 3.158 GB, free: 204.3 MB / 0.9323 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002207/5.6, allocations: 36.75 kB / 3.158 GB, free: 204.3 MB / 0.9323 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003398/5.604, allocations: 327.5 kB / 3.158 GB, free: 204 MB / 0.9323 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0003791/5.604, allocations: 0.5523 MB / 3.159 GB, free: 203.4 MB / 0.9323 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002689/5.607, allocations: 163 kB / 3.159 GB, free: 203.2 MB / 0.9323 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001959/5.607, allocations: 55.95 kB / 3.159 GB, free: 203.2 MB / 0.9323 GB Notification: Performance of prepare postOptimizeDAE: time 9.678e-06/5.607, allocations: 5.562 kB / 3.159 GB, free: 203.2 MB / 0.9323 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.003626/5.611, allocations: 1.164 MB / 3.16 GB, free: 202 MB / 0.9323 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.089e-05/5.611, allocations: 4.812 kB / 3.16 GB, free: 202 MB / 0.9323 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.852e-05/5.611, allocations: 8 kB / 3.16 GB, free: 202 MB / 0.9323 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003293/5.614, allocations: 343.8 kB / 3.161 GB, free: 201.6 MB / 0.9323 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.123e-05/5.614, allocations: 8 kB / 3.161 GB, free: 201.6 MB / 0.9323 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002492/5.617, allocations: 147 kB / 3.161 GB, free: 201.5 MB / 0.9323 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001701/5.617, allocations: 55.95 kB / 3.161 GB, free: 201.4 MB / 0.9323 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 12 * Number of states: 0 () * Number of discrete variables: 6 ($whenCondition2,$whenCondition1,$PRE.weaDat.conTimMin.tNext,weaDat.conTimMin.tNext,$PRE.weaDat.conTim.tNext,weaDat.conTim.tNext) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (147): * Single equations (assignments): 146 * 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 0.0003822/5.617, allocations: 144.3 kB / 3.161 GB, free: 201.3 MB / 0.9323 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003089/5.618, allocations: 111.8 kB / 3.161 GB, free: 201.2 MB / 0.9323 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005934/5.624, allocations: 1.648 MB / 3.163 GB, free: 199.6 MB / 0.9323 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.495e-05/5.624, allocations: 12 kB / 3.163 GB, free: 199.5 MB / 0.9323 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.869e-06/5.624, allocations: 4 kB / 3.163 GB, free: 199.5 MB / 0.9323 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.715e-05/5.624, allocations: 3.984 kB / 3.163 GB, free: 199.5 MB / 0.9323 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008045/5.632, allocations: 3.284 MB / 3.166 GB, free: 196.2 MB / 0.9323 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.104e-05/5.632, allocations: 0.6875 kB / 3.166 GB, free: 196.2 MB / 0.9323 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003237/5.635, allocations: 307.7 kB / 3.166 GB, free: 195.9 MB / 0.9323 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001804/5.635, allocations: 32.84 kB / 3.166 GB, free: 195.8 MB / 0.9323 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001713/5.635, allocations: 23.97 kB / 3.166 GB, free: 195.8 MB / 0.9323 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009267/5.636, allocations: 1.226 MB / 3.167 GB, free: 194.5 MB / 0.9323 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.126e-06/5.636, allocations: 0 / 3.167 GB, free: 194.5 MB / 0.9323 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.004104/5.64, allocations: 1.489 MB / 3.169 GB, free: 192.9 MB / 0.9323 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.004094/5.645, allocations: 1.888 MB / 3.171 GB, free: 191 MB / 0.9323 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0008939/5.646, allocations: 411 kB / 3.171 GB, free: 190.6 MB / 0.9323 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003458/5.646, allocations: 8.547 kB / 3.171 GB, free: 190.5 MB / 0.9323 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002584/5.648, allocations: 115.9 kB / 3.171 GB, free: 190.4 MB / 0.9323 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002174/5.649, allocations: 89.08 kB / 3.171 GB, free: 190.3 MB / 0.9323 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001797/5.649, allocations: 52.41 kB / 3.171 GB, free: 190.3 MB / 0.9323 GB Notification: Performance of sort global known variables: time 0.001016/5.65, allocations: 0.5382 MB / 3.172 GB, free: 189.8 MB / 0.9323 GB Notification: Performance of remove unused functions: time 0.004325/5.654, allocations: 0.7122 MB / 3.173 GB, free: 189 MB / 0.9323 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 0 () * Number of discrete variables: 4 ($whenCondition2,$whenCondition1,weaDat.conTimMin.tNext,weaDat.conTim.tNext) * Number of discrete states: 2 (weaDat.conTimMin.tNext,weaDat.conTim.tNext) * Top-level inputs: 0 Notification: Strong component statistics for simulation (142): * Single equations (assignments): 139 * 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: 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.001374/5.656, allocations: 0.5078 MB / 3.173 GB, free: 188.7 MB / 0.9323 GB Notification: Performance of simCode: created initialization part: time 0.004604/5.66, allocations: 1.848 MB / 3.175 GB, free: 186.8 MB / 0.9323 GB Notification: Performance of simCode: created event and clocks part: time 4.278e-06/5.66, allocations: 0 / 3.175 GB, free: 186.8 MB / 0.9323 GB Notification: Performance of simCode: created simulation system equations: time 0.001551/5.662, allocations: 0.7527 MB / 3.176 GB, free: 186.1 MB / 0.9323 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002153/5.664, allocations: 255.6 kB / 3.176 GB, free: 185.8 MB / 0.9323 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006299/5.67, allocations: 2.002 MB / 3.178 GB, free: 183.8 MB / 0.9323 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001997/5.672, allocations: 1.433 MB / 3.179 GB, free: 182.3 MB / 0.9323 GB Notification: Performance of SimCode: time 9.02e-07/5.672, allocations: 0 / 3.179 GB, free: 182.3 MB / 0.9323 GB (rm -f Buildings_8.0.0_Buildings.Electrical.DC.Sources.Examples.PVSimple.pipe ; mkfifo Buildings_8.0.0_Buildings.Electrical.DC.Sources.Examples.PVSimple.pipe ; head -c 1048576 < Buildings_8.0.0_Buildings.Electrical.DC.Sources.Examples.PVSimple.pipe >> ../files/Buildings_8.0.0_Buildings.Electrical.DC.Sources.Examples.PVSimple.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_Buildings_8_0_0_Buildings_Electrical_DC_Sources_Examples_PVSimple_fmu --startTime=0 --stopTime=172800 --timeout=50 --tolerance=1e-06 Buildings_8_0_0_Buildings_Electrical_DC_Sources_Examples_PVSimple.fmu > Buildings_8.0.0_Buildings.Electrical.DC.Sources.Examples.PVSimple.pipe 2>&1)