Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_maint.7.0.x_Buildings.Electrical.DC.Sources.Examples.PVSimple.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.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 7.0.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo) Running command: "" <> buildModelFMU(Buildings.Electrical.DC.Sources.Examples.PVSimple,fileNamePrefix="Buildings_maint_7_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_7_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 7.0.3-maint.7.0.x/package.mo): time 1.232/1.232, allocations: 249.4 MB / 256.7 MB, free: 6.93 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.001112/0.001112, allocations: 188.5 kB / 316 MB, free: 3.465 MB / 250.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.243/1.243, allocations: 205.2 MB / 0.5667 GB, free: 15.56 MB / 426.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008074/0.0008076, allocations: 94.39 kB / 0.671 GB, free: 4.691 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.3842/0.3851, allocations: 112.5 MB / 0.7808 GB, free: 102.9 MB / 0.5417 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1866/0.5717, allocations: 106.3 MB / 0.8846 GB, free: 12.5 MB / 0.5573 GB Notification: Performance of FrontEnd - scodeFlatten: time 3.752/4.324, allocations: 2.224 GB / 3.108 GB, free: 178.7 MB / 0.8698 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002364/4.325, allocations: 95.94 kB / 3.109 GB, free: 178.6 MB / 0.8698 GB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.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 7.0.3-maint.7.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 7.0.3-maint.7.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.1487/4.473, allocations: 70.78 MB / 3.178 GB, free: 107.4 MB / 0.8698 GB Notification: Performance of prepare preOptimizeDAE: time 3.302e-05/4.473, allocations: 8 kB / 3.178 GB, free: 107.4 MB / 0.8698 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00506/4.478, allocations: 0.8914 MB / 3.179 GB, free: 106.5 MB / 0.8698 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001201/4.48, allocations: 0.896 MB / 3.179 GB, free: 105.6 MB / 0.8698 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.733e-05/4.48, allocations: 48 kB / 3.179 GB, free: 105.6 MB / 0.8698 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001615/4.48, allocations: 80 kB / 3.18 GB, free: 105.5 MB / 0.8698 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.002421/4.482, allocations: 1.852 MB / 3.181 GB, free: 103.6 MB / 0.8698 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002/4.484, allocations: 1.526 MB / 3.183 GB, free: 102 MB / 0.8698 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.946e-05/4.484, allocations: 3.984 kB / 3.183 GB, free: 102 MB / 0.8698 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001312/4.484, allocations: 4 kB / 3.183 GB, free: 102 MB / 0.8698 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.005e-05/4.484, allocations: 74.59 kB / 3.183 GB, free: 101.9 MB / 0.8698 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008471/4.493, allocations: 6.082 MB / 3.189 GB, free: 95.62 MB / 0.8698 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001503/4.494, allocations: 1.18 MB / 3.19 GB, free: 94.41 MB / 0.8698 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007521/4.495, allocations: 0.5783 MB / 3.191 GB, free: 93.84 MB / 0.8698 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0005597/4.496, allocations: 494.4 kB / 3.191 GB, free: 93.26 MB / 0.8698 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008656/4.497, allocations: 0.7313 MB / 3.192 GB, free: 92.51 MB / 0.8698 GB Notification: Performance of pre-optimization done (n=128): time 2.936e-06/4.497, allocations: 0 / 3.192 GB, free: 92.51 MB / 0.8698 GB Notification: Performance of matching and sorting (n=128): time 0.002139/4.499, allocations: 1.233 MB / 3.193 GB, free: 91.27 MB / 0.8698 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.236e-05/4.499, allocations: 351.1 kB / 3.193 GB, free: 90.84 MB / 0.8698 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006868/4.5, allocations: 0.6763 MB / 3.194 GB, free: 90.15 MB / 0.8698 GB Notification: Performance of collectPreVariables (initialization): time 8.926e-05/4.5, allocations: 25.7 kB / 3.194 GB, free: 90.12 MB / 0.8698 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002386/4.5, allocations: 483.6 kB / 3.194 GB, free: 89.64 MB / 0.8698 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002207/4.5, allocations: 413.7 kB / 3.195 GB, free: 89.23 MB / 0.8698 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.257e-05/4.5, allocations: 0 / 3.195 GB, free: 89.23 MB / 0.8698 GB Notification: Performance of setup shared object (initialization): time 5.494e-05/4.5, allocations: 353.9 kB / 3.195 GB, free: 88.88 MB / 0.8698 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005988/4.501, allocations: 442.5 kB / 3.196 GB, free: 88.44 MB / 0.8698 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006827/4.502, allocations: 0.6272 MB / 3.196 GB, free: 87.75 MB / 0.8698 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009428/4.503, allocations: 0.5645 MB / 3.197 GB, free: 87.19 MB / 0.8698 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.647e-06/4.503, allocations: 0 / 3.197 GB, free: 87.19 MB / 0.8698 GB Notification: Performance of matching and sorting (n=148) (initialization): time 0.002062/4.505, allocations: 1.326 MB / 3.198 GB, free: 85.85 MB / 0.8698 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001486/4.505, allocations: 1.053 MB / 3.199 GB, free: 84.71 MB / 0.8698 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.215e-06/4.505, allocations: 4 kB / 3.199 GB, free: 84.71 MB / 0.8698 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001511/4.505, allocations: 28.78 kB / 3.199 GB, free: 84.68 MB / 0.8698 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001717/4.507, allocations: 335.5 kB / 3.199 GB, free: 84.35 MB / 0.8698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0002437/4.507, allocations: 0.5406 MB / 3.2 GB, free: 83.79 MB / 0.8698 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001357/4.508, allocations: 170.9 kB / 3.2 GB, free: 83.62 MB / 0.8698 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001175/4.508, allocations: 59.95 kB / 3.2 GB, free: 83.56 MB / 0.8698 GB Notification: Performance of prepare postOptimizeDAE: time 8.045e-06/4.508, allocations: 6.344 kB / 3.2 GB, free: 83.55 MB / 0.8698 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001874/4.51, allocations: 1.164 MB / 3.201 GB, free: 82.39 MB / 0.8698 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.949e-06/4.51, allocations: 4 kB / 3.201 GB, free: 82.39 MB / 0.8698 GB Notification: Performance of postOpt tearingSystem (initialization): time 9.278e-06/4.51, allocations: 8 kB / 3.201 GB, free: 82.38 MB / 0.8698 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001661/4.512, allocations: 339.8 kB / 3.202 GB, free: 82.05 MB / 0.8698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.292e-06/4.512, allocations: 4 kB / 3.202 GB, free: 82.04 MB / 0.8698 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001286/4.513, allocations: 155 kB / 3.202 GB, free: 81.89 MB / 0.8698 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001134/4.513, allocations: 59.95 kB / 3.202 GB, free: 81.83 MB / 0.8698 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.0002598/4.514, allocations: 128.7 kB / 3.202 GB, free: 81.7 MB / 0.8698 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001894/4.514, allocations: 110.6 kB / 3.202 GB, free: 81.59 MB / 0.8698 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003243/4.517, allocations: 1.648 MB / 3.204 GB, free: 79.93 MB / 0.8698 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.275e-05/4.517, allocations: 16 kB / 3.204 GB, free: 79.91 MB / 0.8698 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.262e-06/4.517, allocations: 0 / 3.204 GB, free: 79.91 MB / 0.8698 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.349e-05/4.517, allocations: 11.88 kB / 3.204 GB, free: 79.9 MB / 0.8698 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004287/4.522, allocations: 3.271 MB / 3.207 GB, free: 76.56 MB / 0.8698 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.641e-06/4.522, allocations: 11.92 kB / 3.207 GB, free: 76.55 MB / 0.8698 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001586/4.523, allocations: 311.7 kB / 3.207 GB, free: 76.24 MB / 0.8698 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001112/4.523, allocations: 28.84 kB / 3.207 GB, free: 76.21 MB / 0.8698 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.327e-05/4.523, allocations: 27.97 kB / 3.207 GB, free: 76.18 MB / 0.8698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0005746/4.524, allocations: 1.224 MB / 3.208 GB, free: 74.85 MB / 0.8698 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.236e-06/4.524, allocations: 4.031 kB / 3.208 GB, free: 74.84 MB / 0.8698 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.002025/4.526, allocations: 1.486 MB / 3.21 GB, free: 73.3 MB / 0.8698 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.002049/4.528, allocations: 1.892 MB / 3.212 GB, free: 71.34 MB / 0.8698 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0005189/4.529, allocations: 403.1 kB / 3.212 GB, free: 70.93 MB / 0.8698 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002119/4.529, allocations: 7.906 kB / 3.212 GB, free: 70.92 MB / 0.8698 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001337/4.53, allocations: 119.9 kB / 3.212 GB, free: 70.8 MB / 0.8698 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001415/4.53, allocations: 77.19 kB / 3.212 GB, free: 70.73 MB / 0.8698 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001082/4.53, allocations: 51.97 kB / 3.212 GB, free: 70.68 MB / 0.8698 GB Notification: Performance of sort global known variables: time 0.0005941/4.531, allocations: 0.5421 MB / 3.213 GB, free: 70.14 MB / 0.8698 GB Notification: Performance of remove unused functions: time 0.002745/4.534, allocations: 0.7198 MB / 3.214 GB, free: 69.42 MB / 0.8698 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.0008963/4.535, allocations: 0.4953 MB / 3.214 GB, free: 69 MB / 0.8698 GB Notification: Performance of simCode: created initialization part: time 0.002524/4.537, allocations: 1.847 MB / 3.216 GB, free: 67.16 MB / 0.8698 GB Notification: Performance of simCode: created event and clocks part: time 2.565e-06/4.537, allocations: 0 / 3.216 GB, free: 67.16 MB / 0.8698 GB Notification: Performance of simCode: created simulation system equations: time 0.0008626/4.538, allocations: 0.746 MB / 3.217 GB, free: 66.4 MB / 0.8698 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001039/4.539, allocations: 247.6 kB / 3.217 GB, free: 66.17 MB / 0.8698 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003372/4.543, allocations: 1.998 MB / 3.219 GB, free: 64.12 MB / 0.8698 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001111/4.544, allocations: 1.445 MB / 3.22 GB, free: 62.64 MB / 0.8698 GB Notification: Performance of SimCode: time 3.3e-07/4.544, allocations: 0 / 3.22 GB, free: 62.64 MB / 0.8698 GB (rm -f Buildings_maint.7.0.x_Buildings.Electrical.DC.Sources.Examples.PVSimple.pipe ; mkfifo Buildings_maint.7.0.x_Buildings.Electrical.DC.Sources.Examples.PVSimple.pipe ; head -c 1048576 < Buildings_maint.7.0.x_Buildings.Electrical.DC.Sources.Examples.PVSimple.pipe >> ../files/Buildings_maint.7.0.x_Buildings.Electrical.DC.Sources.Examples.PVSimple.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_Buildings_maint_7_0_x_Buildings_Electrical_DC_Sources_Examples_PVSimple_fmu --startTime=0 --stopTime=172800 --timeout=50 --tolerance=1e-06 Buildings_maint_7_0_x_Buildings_Electrical_DC_Sources_Examples_PVSimple.fmu > Buildings_maint.7.0.x_Buildings.Electrical.DC.Sources.Examples.PVSimple.pipe 2>&1)