Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_8_Buildings.Electrical.DC.Sources.Examples.PVSimple.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.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.1.4 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo) Running command: "" <> buildModelFMU(Buildings.Electrical.DC.Sources.Examples.PVSimple,fileNamePrefix="Buildings_8_Buildings_Electrical_DC_Sources_Examples_PVSimple",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Electrical.DC.Sources.Examples.PVSimple,fileNamePrefix="Buildings_8_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.1.4-maint.8.1.x/package.mo): time 1.355/1.355, allocations: 289.8 MB / 297.1 MB, free: 6.676 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.001036/0.001036, allocations: 177.3 kB / 366.3 MB, free: 1.996 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.086/1.086, allocations: 205.1 MB / 0.6256 GB, free: 5.824 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.000811/0.000811, allocations: 85.83 kB / 0.7395 GB, free: 39.69 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.1982/0.199, allocations: 122.4 MB / 0.8591 GB, free: 13.29 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.456/0.655, allocations: 116.3 MB / 0.9727 GB, free: 68.23 MB / 0.6511 GB Notification: Performance of FrontEnd - scodeFlatten: time 3.387/4.042, allocations: 2.106 GB / 3.078 GB, free: 312 MB / 0.948 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002526/4.042, allocations: 97.55 kB / 3.078 GB, free: 312 MB / 0.948 GB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.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.1.4-maint.8.1.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.1.4-maint.8.1.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: 372 * Number of variables: 372 Notification: Performance of Generate backend data structure: time 0.1526/4.195, allocations: 70.78 MB / 3.148 GB, free: 269 MB / 0.948 GB Notification: Performance of prepare preOptimizeDAE: time 3.374e-05/4.195, allocations: 12 kB / 3.148 GB, free: 269 MB / 0.948 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005362/4.2, allocations: 0.8952 MB / 3.148 GB, free: 268.1 MB / 0.948 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001587/4.202, allocations: 0.8844 MB / 3.149 GB, free: 267.2 MB / 0.948 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.299e-05/4.202, allocations: 48 kB / 3.149 GB, free: 267.1 MB / 0.948 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002082/4.202, allocations: 83.91 kB / 3.149 GB, free: 267 MB / 0.948 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.002518/4.205, allocations: 1.86 MB / 3.151 GB, free: 265.2 MB / 0.948 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002038/4.207, allocations: 1.518 MB / 3.153 GB, free: 263.6 MB / 0.948 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.992e-05/4.207, allocations: 0 / 3.153 GB, free: 263.6 MB / 0.948 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001348/4.207, allocations: 7.984 kB / 3.153 GB, free: 263.6 MB / 0.948 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.144e-05/4.207, allocations: 62.75 kB / 3.153 GB, free: 263.5 MB / 0.948 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008161/4.215, allocations: 6.078 MB / 3.159 GB, free: 257.2 MB / 0.948 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001483/4.217, allocations: 1.189 MB / 3.16 GB, free: 256 MB / 0.948 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000756/4.218, allocations: 0.5744 MB / 3.16 GB, free: 255.4 MB / 0.948 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0005838/4.218, allocations: 486.4 kB / 3.161 GB, free: 254.9 MB / 0.948 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008714/4.219, allocations: 0.7352 MB / 3.162 GB, free: 254.1 MB / 0.948 GB Notification: Performance of pre-optimization done (n=128): time 2.885e-06/4.219, allocations: 4 kB / 3.162 GB, free: 254.1 MB / 0.948 GB Notification: Performance of matching and sorting (n=128): time 0.00212/4.221, allocations: 1.233 MB / 3.163 GB, free: 252.8 MB / 0.948 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.885e-05/4.221, allocations: 351.1 kB / 3.163 GB, free: 252.4 MB / 0.948 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007162/4.222, allocations: 0.6684 MB / 3.164 GB, free: 251.7 MB / 0.948 GB Notification: Performance of collectPreVariables (initialization): time 9.402e-05/4.222, allocations: 37.64 kB / 3.164 GB, free: 251.7 MB / 0.948 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002065/4.222, allocations: 479.7 kB / 3.164 GB, free: 251.2 MB / 0.948 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002215/4.222, allocations: 417.8 kB / 3.165 GB, free: 250.8 MB / 0.948 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.544e-05/4.223, allocations: 0 / 3.165 GB, free: 250.8 MB / 0.948 GB Notification: Performance of setup shared object (initialization): time 5.511e-05/4.223, allocations: 349.8 kB / 3.165 GB, free: 250.5 MB / 0.948 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005911/4.223, allocations: 446.5 kB / 3.165 GB, free: 250 MB / 0.948 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006787/4.224, allocations: 0.6272 MB / 3.166 GB, free: 249.3 MB / 0.948 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009461/4.225, allocations: 0.5645 MB / 3.167 GB, free: 248.8 MB / 0.948 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.606e-06/4.225, allocations: 4 kB / 3.167 GB, free: 248.8 MB / 0.948 GB Notification: Performance of matching and sorting (n=148) (initialization): time 0.002067/4.227, allocations: 1.314 MB / 3.168 GB, free: 247.4 MB / 0.948 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001536/4.227, allocations: 1.057 MB / 3.169 GB, free: 246.3 MB / 0.948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.196e-06/4.227, allocations: 0 / 3.169 GB, free: 246.3 MB / 0.948 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001511/4.227, allocations: 36.75 kB / 3.169 GB, free: 246.3 MB / 0.948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001684/4.229, allocations: 327.5 kB / 3.169 GB, free: 245.9 MB / 0.948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0002398/4.229, allocations: 0.5485 MB / 3.17 GB, free: 245.4 MB / 0.948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001349/4.231, allocations: 163 kB / 3.17 GB, free: 245.2 MB / 0.948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001216/4.231, allocations: 55.89 kB / 3.17 GB, free: 245.1 MB / 0.948 GB Notification: Performance of prepare postOptimizeDAE: time 5.59e-06/4.231, allocations: 4 kB / 3.17 GB, free: 245.1 MB / 0.948 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.00187/4.233, allocations: 1.172 MB / 3.171 GB, free: 244 MB / 0.948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.488e-06/4.233, allocations: 4 kB / 3.171 GB, free: 244 MB / 0.948 GB Notification: Performance of postOpt tearingSystem (initialization): time 8.987e-06/4.233, allocations: 8.344 kB / 3.171 GB, free: 244 MB / 0.948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001641/4.234, allocations: 335.5 kB / 3.171 GB, free: 243.6 MB / 0.948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.274e-06/4.234, allocations: 11.98 kB / 3.172 GB, free: 243.6 MB / 0.948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001225/4.236, allocations: 151 kB / 3.172 GB, free: 243.5 MB / 0.948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001171/4.236, allocations: 51.95 kB / 3.172 GB, free: 243.4 MB / 0.948 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.0002326/4.236, allocations: 145.5 kB / 3.172 GB, free: 243.3 MB / 0.948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001701/4.236, allocations: 110.7 kB / 3.172 GB, free: 243.2 MB / 0.948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003146/4.239, allocations: 1.648 MB / 3.174 GB, free: 241.5 MB / 0.948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.041e-05/4.239, allocations: 15.94 kB / 3.174 GB, free: 241.5 MB / 0.948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.221e-06/4.239, allocations: 4 kB / 3.174 GB, free: 241.5 MB / 0.948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.198e-05/4.239, allocations: 3.984 kB / 3.174 GB, free: 241.5 MB / 0.948 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004048/4.243, allocations: 3.289 MB / 3.177 GB, free: 238.1 MB / 0.948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.897e-06/4.243, allocations: 0 / 3.177 GB, free: 238.1 MB / 0.948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001568/4.245, allocations: 311.7 kB / 3.177 GB, free: 237.8 MB / 0.948 GB Notification: Performance of postOpt tearingSystem (simulation): time 9.222e-05/4.245, allocations: 28.84 kB / 3.177 GB, free: 237.8 MB / 0.948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001006/4.245, allocations: 27.95 kB / 3.177 GB, free: 237.7 MB / 0.948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0005539/4.246, allocations: 1.224 MB / 3.178 GB, free: 236.4 MB / 0.948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.094e-06/4.246, allocations: 0 / 3.178 GB, free: 236.4 MB / 0.948 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.001958/4.248, allocations: 1.49 MB / 3.18 GB, free: 234.9 MB / 0.948 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.002028/4.25, allocations: 1.885 MB / 3.182 GB, free: 232.9 MB / 0.948 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0004772/4.25, allocations: 411 kB / 3.182 GB, free: 232.5 MB / 0.948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002166/4.25, allocations: 8 kB / 3.182 GB, free: 232.5 MB / 0.948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001345/4.252, allocations: 119.9 kB / 3.182 GB, free: 232.4 MB / 0.948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001323/4.252, allocations: 81.09 kB / 3.182 GB, free: 232.3 MB / 0.948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001108/4.252, allocations: 55.95 kB / 3.182 GB, free: 232.2 MB / 0.948 GB Notification: Performance of sort global known variables: time 0.0005244/4.253, allocations: 0.5459 MB / 3.183 GB, free: 231.7 MB / 0.948 GB Notification: Performance of remove unused functions: time 0.002777/4.255, allocations: 0.7121 MB / 3.184 GB, free: 231 MB / 0.948 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.0009332/4.256, allocations: 0.4984 MB / 3.184 GB, free: 230.5 MB / 0.948 GB Notification: Performance of simCode: created initialization part: time 0.002369/4.259, allocations: 1.847 MB / 3.186 GB, free: 228.7 MB / 0.948 GB Notification: Performance of simCode: created event and clocks part: time 3.637e-06/4.259, allocations: 0.5 kB / 3.186 GB, free: 228.7 MB / 0.948 GB Notification: Performance of simCode: created simulation system equations: time 0.0008443/4.26, allocations: 0.7484 MB / 3.187 GB, free: 227.9 MB / 0.948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001036/4.261, allocations: 252.7 kB / 3.187 GB, free: 227.7 MB / 0.948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003427/4.264, allocations: 2.002 MB / 3.189 GB, free: 225.6 MB / 0.948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001156/4.265, allocations: 1.429 MB / 3.19 GB, free: 224.2 MB / 0.948 GB Notification: Performance of SimCode: time 3.11e-07/4.265, allocations: 0 / 3.19 GB, free: 224.2 MB / 0.948 GB (rm -f Buildings_8_Buildings.Electrical.DC.Sources.Examples.PVSimple.pipe ; mkfifo Buildings_8_Buildings.Electrical.DC.Sources.Examples.PVSimple.pipe ; head -c 1048576 < Buildings_8_Buildings.Electrical.DC.Sources.Examples.PVSimple.pipe >> ../files/Buildings_8_Buildings.Electrical.DC.Sources.Examples.PVSimple.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_Buildings_8_Buildings_Electrical_DC_Sources_Examples_PVSimple_fmu --startTime=0 --stopTime=172800 --timeout=50 --tolerance=1e-06 Buildings_8_Buildings_Electrical_DC_Sources_Examples_PVSimple.fmu > Buildings_8_Buildings.Electrical.DC.Sources.Examples.PVSimple.pipe 2>&1)