Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_maint.8.0.x_Buildings.Electrical.DC.Sources.Examples.PVSimple.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.Sources.Examples.PVSimple,fileNamePrefix="Buildings_maint_8_0_x_Buildings_Electrical_DC_Sources_Examples_PVSimple",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Electrical.DC.Sources.Examples.PVSimple,fileNamePrefix="Buildings_maint_8_0_x_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.1-maint.8.0.x/package.mo): time 1.298/1.298, allocations: 285.5 MB / 292.8 MB, free: 10.45 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.0009033/0.0009033, allocations: 177.3 kB / 361.1 MB, free: 7.078 MB / 298.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 0.9951/0.9951, allocations: 205.1 MB / 0.6195 GB, free: 10.29 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.0007609/0.000761, allocations: 96.55 kB / 0.7326 GB, free: 44.22 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.165/0.1658, allocations: 121.4 MB / 0.8511 GB, free: 2.867 MB / 0.5886 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.378/0.5438, allocations: 115.3 MB / 0.9638 GB, free: 78.04 MB / 0.6667 GB Notification: Performance of FrontEnd - scodeFlatten: time 2.846/3.39, allocations: 2.105 GB / 3.068 GB, free: 327.1 MB / 0.9323 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002383/3.39, allocations: 92.33 kB / 3.069 GB, free: 327.1 MB / 0.9323 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: 372 * Number of variables: 372 Notification: Performance of Generate backend data structure: time 0.1451/3.535, allocations: 70.78 MB / 3.138 GB, free: 260.5 MB / 0.9323 GB Notification: Performance of prepare preOptimizeDAE: time 3.221e-05/3.535, allocations: 8.5 kB / 3.138 GB, free: 260.4 MB / 0.9323 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005219/3.541, allocations: 0.8952 MB / 3.139 GB, free: 259.5 MB / 0.9323 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001428/3.542, allocations: 0.8961 MB / 3.139 GB, free: 258.6 MB / 0.9323 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.417e-05/3.542, allocations: 44 kB / 3.139 GB, free: 258.6 MB / 0.9323 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002159/3.542, allocations: 87.91 kB / 3.14 GB, free: 258.5 MB / 0.9323 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.002539/3.545, allocations: 1.853 MB / 3.141 GB, free: 256.6 MB / 0.9323 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002096/3.547, allocations: 1.514 MB / 3.143 GB, free: 255 MB / 0.9323 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.949e-05/3.547, allocations: 4 kB / 3.143 GB, free: 255 MB / 0.9323 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001421/3.547, allocations: 4 kB / 3.143 GB, free: 255 MB / 0.9323 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.89e-05/3.547, allocations: 70.73 kB / 3.143 GB, free: 255 MB / 0.9323 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008156/3.555, allocations: 6.072 MB / 3.149 GB, free: 248.7 MB / 0.9323 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001448/3.557, allocations: 1.189 MB / 3.15 GB, free: 247.4 MB / 0.9323 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007355/3.558, allocations: 0.5708 MB / 3.151 GB, free: 246.9 MB / 0.9323 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0005192/3.558, allocations: 498.9 kB / 3.151 GB, free: 246.3 MB / 0.9323 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008373/3.559, allocations: 0.736 MB / 3.152 GB, free: 245.5 MB / 0.9323 GB Notification: Performance of pre-optimization done (n=128): time 3.566e-06/3.559, allocations: 0 / 3.152 GB, free: 245.5 MB / 0.9323 GB Notification: Performance of matching and sorting (n=128): time 0.002015/3.561, allocations: 1.225 MB / 3.153 GB, free: 244.3 MB / 0.9323 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.592e-05/3.561, allocations: 351.2 kB / 3.153 GB, free: 243.9 MB / 0.9323 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006725/3.562, allocations: 0.684 MB / 3.154 GB, free: 243.2 MB / 0.9323 GB Notification: Performance of collectPreVariables (initialization): time 9.096e-05/3.562, allocations: 26.64 kB / 3.154 GB, free: 243.2 MB / 0.9323 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001837/3.562, allocations: 487.7 kB / 3.154 GB, free: 242.7 MB / 0.9323 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002202/3.562, allocations: 405.8 kB / 3.155 GB, free: 242.3 MB / 0.9323 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.482e-05/3.562, allocations: 0 / 3.155 GB, free: 242.3 MB / 0.9323 GB Notification: Performance of setup shared object (initialization): time 5.706e-05/3.562, allocations: 357.8 kB / 3.155 GB, free: 241.9 MB / 0.9323 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005896/3.563, allocations: 438.5 kB / 3.156 GB, free: 241.5 MB / 0.9323 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006784/3.564, allocations: 0.6279 MB / 3.156 GB, free: 240.8 MB / 0.9323 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009262/3.565, allocations: 0.5684 MB / 3.157 GB, free: 240.2 MB / 0.9323 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.106e-06/3.565, allocations: 0 / 3.157 GB, free: 240.2 MB / 0.9323 GB Notification: Performance of matching and sorting (n=148) (initialization): time 0.002032/3.567, allocations: 1.322 MB / 3.158 GB, free: 238.9 MB / 0.9323 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001296/3.567, allocations: 1.053 MB / 3.159 GB, free: 237.8 MB / 0.9323 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.845e-06/3.567, allocations: 4 kB / 3.159 GB, free: 237.8 MB / 0.9323 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001528/3.567, allocations: 28.75 kB / 3.159 GB, free: 237.7 MB / 0.9323 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001653/3.569, allocations: 335.5 kB / 3.159 GB, free: 237.4 MB / 0.9323 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0002304/3.569, allocations: 0.5446 MB / 3.16 GB, free: 236.8 MB / 0.9323 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001319/3.57, allocations: 163.5 kB / 3.16 GB, free: 236.7 MB / 0.9323 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001257/3.57, allocations: 60.52 kB / 3.16 GB, free: 236.6 MB / 0.9323 GB Notification: Performance of prepare postOptimizeDAE: time 6.652e-06/3.57, allocations: 6.656 kB / 3.16 GB, free: 236.6 MB / 0.9323 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001845/3.572, allocations: 1.169 MB / 3.161 GB, free: 235.4 MB / 0.9323 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.591e-06/3.572, allocations: 4 kB / 3.161 GB, free: 235.4 MB / 0.9323 GB Notification: Performance of postOpt tearingSystem (initialization): time 9.178e-06/3.572, allocations: 8 kB / 3.161 GB, free: 235.4 MB / 0.9323 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001645/3.574, allocations: 337.3 kB / 3.162 GB, free: 235.1 MB / 0.9323 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.22e-05/3.574, allocations: 8 kB / 3.162 GB, free: 235.1 MB / 0.9323 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00126/3.575, allocations: 151 kB / 3.162 GB, free: 234.9 MB / 0.9323 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001161/3.575, allocations: 59.95 kB / 3.162 GB, free: 234.9 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.0002225/3.576, allocations: 135.2 kB / 3.162 GB, free: 234.7 MB / 0.9323 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001751/3.576, allocations: 114.7 kB / 3.162 GB, free: 234.6 MB / 0.9323 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003072/3.579, allocations: 1.644 MB / 3.164 GB, free: 233 MB / 0.9323 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.056e-05/3.579, allocations: 15.98 kB / 3.164 GB, free: 233 MB / 0.9323 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.512e-06/3.579, allocations: 4.828 kB / 3.164 GB, free: 233 MB / 0.9323 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.186e-05/3.579, allocations: 7.984 kB / 3.164 GB, free: 233 MB / 0.9323 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003898/3.583, allocations: 3.282 MB / 3.167 GB, free: 229.6 MB / 0.9323 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.837e-06/3.583, allocations: 0 / 3.167 GB, free: 229.6 MB / 0.9323 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001564/3.584, allocations: 307.7 kB / 3.167 GB, free: 229.3 MB / 0.9323 GB Notification: Performance of postOpt tearingSystem (simulation): time 9.091e-05/3.585, allocations: 28.84 kB / 3.167 GB, free: 229.3 MB / 0.9323 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001009/3.585, allocations: 31.95 kB / 3.167 GB, free: 229.2 MB / 0.9323 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0005319/3.585, allocations: 1.222 MB / 3.168 GB, free: 227.9 MB / 0.9323 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.304e-06/3.585, allocations: 0.875 kB / 3.168 GB, free: 227.9 MB / 0.9323 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.001952/3.587, allocations: 1.486 MB / 3.17 GB, free: 226.4 MB / 0.9323 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.001985/3.589, allocations: 1.888 MB / 3.172 GB, free: 224.4 MB / 0.9323 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0004584/3.59, allocations: 411 kB / 3.172 GB, free: 224 MB / 0.9323 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002141/3.59, allocations: 4 kB / 3.172 GB, free: 224 MB / 0.9323 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001285/3.591, allocations: 119.9 kB / 3.172 GB, free: 223.9 MB / 0.9323 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001278/3.591, allocations: 81.09 kB / 3.172 GB, free: 223.8 MB / 0.9323 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001087/3.591, allocations: 61.58 kB / 3.172 GB, free: 223.7 MB / 0.9323 GB Notification: Performance of sort global known variables: time 0.0004879/3.592, allocations: 0.5382 MB / 3.173 GB, free: 223.2 MB / 0.9323 GB Notification: Performance of remove unused functions: time 0.00252/3.594, allocations: 0.7161 MB / 3.174 GB, free: 222.5 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.0009045/3.595, allocations: 0.5076 MB / 3.174 GB, free: 222.1 MB / 0.9323 GB Notification: Performance of simCode: created initialization part: time 0.002309/3.598, allocations: 1.843 MB / 3.176 GB, free: 220.2 MB / 0.9323 GB Notification: Performance of simCode: created event and clocks part: time 3.226e-06/3.598, allocations: 5.375 kB / 3.176 GB, free: 220.2 MB / 0.9323 GB Notification: Performance of simCode: created simulation system equations: time 0.0008374/3.598, allocations: 0.7526 MB / 3.177 GB, free: 219.5 MB / 0.9323 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001032/3.6, allocations: 246.7 kB / 3.177 GB, free: 219.2 MB / 0.9323 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003277/3.603, allocations: 2.006 MB / 3.179 GB, free: 217.2 MB / 0.9323 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001149/3.604, allocations: 1.433 MB / 3.18 GB, free: 215.7 MB / 0.9323 GB Notification: Performance of SimCode: time 2.71e-07/3.604, allocations: 0 / 3.18 GB, free: 215.7 MB / 0.9323 GB (rm -f Buildings_maint.8.0.x_Buildings.Electrical.DC.Sources.Examples.PVSimple.pipe ; mkfifo Buildings_maint.8.0.x_Buildings.Electrical.DC.Sources.Examples.PVSimple.pipe ; head -c 1048576 < Buildings_maint.8.0.x_Buildings.Electrical.DC.Sources.Examples.PVSimple.pipe >> ../files/Buildings_maint.8.0.x_Buildings.Electrical.DC.Sources.Examples.PVSimple.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_Buildings_maint_8_0_x_Buildings_Electrical_DC_Sources_Examples_PVSimple_fmu --startTime=0 --stopTime=172800 --timeout=50 --tolerance=1e-06 Buildings_maint_8_0_x_Buildings_Electrical_DC_Sources_Examples_PVSimple.fmu > Buildings_maint.8.0.x_Buildings.Electrical.DC.Sources.Examples.PVSimple.pipe 2>&1)