Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_7.0.0_Buildings.Electrical.DC.Sources.Examples.PVSimple.conf.json 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.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.1/package.mo) Running command: "" <> buildModelFMU(Buildings.Electrical.DC.Sources.Examples.PVSimple,fileNamePrefix="Buildings_7_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 7.0.1/package.mo): time 2.182/2.182, allocations: 248.6 MB / 255.9 MB, free: 7.168 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.001627/0.001627, allocations: 184 kB / 315.1 MB, free: 4.234 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.92/1.92, allocations: 205.2 MB / 0.5658 GB, free: 332 kB / 410.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001288/0.001288, allocations: 83.33 kB / 0.67 GB, free: 5.539 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.4672/0.4685, allocations: 112.4 MB / 0.7797 GB, free: 103.7 MB / 0.5417 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2098/0.6784, allocations: 106.2 MB / 0.8835 GB, free: 13.32 MB / 0.5573 GB Notification: Performance of FrontEnd - scodeFlatten: time 5.935/6.613, allocations: 2.224 GB / 3.107 GB, free: 145 MB / 0.8698 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003018/6.613, allocations: 94.64 kB / 3.107 GB, free: 145 MB / 0.8698 GB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.1/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.1/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.1/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.3144/6.928, allocations: 70.8 MB / 3.176 GB, free: 79.85 MB / 0.8698 GB Notification: Performance of prepare preOptimizeDAE: time 4.455e-05/6.928, allocations: 8 kB / 3.176 GB, free: 79.84 MB / 0.8698 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01115/6.939, allocations: 0.8875 MB / 3.177 GB, free: 78.95 MB / 0.8698 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003334/6.942, allocations: 0.896 MB / 3.178 GB, free: 78.01 MB / 0.8698 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002039/6.943, allocations: 44 kB / 3.178 GB, free: 77.96 MB / 0.8698 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006812/6.943, allocations: 84 kB / 3.178 GB, free: 77.88 MB / 0.8698 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.006426/6.95, allocations: 1.852 MB / 3.18 GB, free: 76.03 MB / 0.8698 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005615/6.956, allocations: 1.522 MB / 3.181 GB, free: 74.43 MB / 0.8698 GB Notification: Performance of preOpt findStateOrder (simulation): time 4.614e-05/6.956, allocations: 3.938 kB / 3.181 GB, free: 74.43 MB / 0.8698 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002881/6.956, allocations: 4 kB / 3.181 GB, free: 74.43 MB / 0.8698 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.524e-05/6.956, allocations: 66.73 kB / 3.182 GB, free: 74.36 MB / 0.8698 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01931/6.975, allocations: 6.079 MB / 3.187 GB, free: 68.04 MB / 0.8698 GB Notification: Performance of preOpt comSubExp (simulation): time 0.003476/6.979, allocations: 1.192 MB / 3.189 GB, free: 66.82 MB / 0.8698 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.002637/6.982, allocations: 0.5705 MB / 3.189 GB, free: 66.25 MB / 0.8698 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001429/6.983, allocations: 494.5 kB / 3.19 GB, free: 65.68 MB / 0.8698 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.003283/6.986, allocations: 0.7314 MB / 3.19 GB, free: 64.92 MB / 0.8698 GB Notification: Performance of pre-optimization done (n=128): time 9.698e-06/6.987, allocations: 4 kB / 3.19 GB, free: 64.91 MB / 0.8698 GB Notification: Performance of matching and sorting (n=128): time 0.007474/6.994, allocations: 1.221 MB / 3.192 GB, free: 63.68 MB / 0.8698 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001481/6.994, allocations: 359.1 kB / 3.192 GB, free: 63.25 MB / 0.8698 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002326/6.997, allocations: 0.6723 MB / 3.193 GB, free: 62.57 MB / 0.8698 GB Notification: Performance of collectPreVariables (initialization): time 0.000525/6.997, allocations: 25.7 kB / 3.193 GB, free: 62.54 MB / 0.8698 GB Notification: Performance of collectInitialEqns (initialization): time 0.0007094/6.998, allocations: 487.7 kB / 3.193 GB, free: 62.05 MB / 0.8698 GB Notification: Performance of collectInitialBindings (initialization): time 0.001021/6.999, allocations: 413.7 kB / 3.193 GB, free: 61.64 MB / 0.8698 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003069/6.999, allocations: 0 / 3.193 GB, free: 61.64 MB / 0.8698 GB Notification: Performance of setup shared object (initialization): time 0.0002027/6.999, allocations: 353.9 kB / 3.194 GB, free: 61.29 MB / 0.8698 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002235/7.002, allocations: 442.5 kB / 3.194 GB, free: 60.85 MB / 0.8698 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002721/7.005, allocations: 0.6272 MB / 3.195 GB, free: 60.16 MB / 0.8698 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.003374/7.008, allocations: 0.5684 MB / 3.195 GB, free: 59.59 MB / 0.8698 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.536e-05/7.008, allocations: 4 kB / 3.195 GB, free: 59.59 MB / 0.8698 GB Notification: Performance of matching and sorting (n=148) (initialization): time 0.007445/7.016, allocations: 1.322 MB / 3.197 GB, free: 58.26 MB / 0.8698 GB Notification: Performance of prepare postOptimizeDAE: time 0.0003407/7.016, allocations: 1.053 MB / 3.198 GB, free: 57.12 MB / 0.8698 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.214e-05/7.016, allocations: 4 kB / 3.198 GB, free: 57.12 MB / 0.8698 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.000336/7.016, allocations: 32.84 kB / 3.198 GB, free: 57.09 MB / 0.8698 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005212/7.022, allocations: 327.5 kB / 3.198 GB, free: 56.77 MB / 0.8698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0006016/7.022, allocations: 0.5522 MB / 3.199 GB, free: 56.19 MB / 0.8698 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004223/7.026, allocations: 159.1 kB / 3.199 GB, free: 56.03 MB / 0.8698 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006026/7.027, allocations: 59.86 kB / 3.199 GB, free: 55.97 MB / 0.8698 GB Notification: Performance of prepare postOptimizeDAE: time 1.857e-05/7.027, allocations: 5.25 kB / 3.199 GB, free: 55.97 MB / 0.8698 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.006456/7.034, allocations: 1.164 MB / 3.2 GB, free: 54.8 MB / 0.8698 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.388e-05/7.034, allocations: 4 kB / 3.2 GB, free: 54.8 MB / 0.8698 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.723e-05/7.034, allocations: 8.438 kB / 3.2 GB, free: 54.79 MB / 0.8698 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005199/7.039, allocations: 343.4 kB / 3.2 GB, free: 54.46 MB / 0.8698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.78e-05/7.039, allocations: 8 kB / 3.2 GB, free: 54.45 MB / 0.8698 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004105/7.043, allocations: 155 kB / 3.2 GB, free: 54.3 MB / 0.8698 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006404/7.044, allocations: 55.95 kB / 3.201 GB, free: 54.24 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.0008359/7.045, allocations: 130.5 kB / 3.201 GB, free: 54.11 MB / 0.8698 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007295/7.046, allocations: 122.6 kB / 3.201 GB, free: 53.99 MB / 0.8698 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01094/7.057, allocations: 1.632 MB / 3.202 GB, free: 52.34 MB / 0.8698 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.063e-05/7.057, allocations: 12 kB / 3.202 GB, free: 52.33 MB / 0.8698 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.683e-05/7.057, allocations: 3.984 kB / 3.202 GB, free: 52.32 MB / 0.8698 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.274e-05/7.057, allocations: 7.984 kB / 3.202 GB, free: 52.32 MB / 0.8698 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01469/7.071, allocations: 3.286 MB / 3.206 GB, free: 48.96 MB / 0.8698 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.61e-05/7.071, allocations: 0 / 3.206 GB, free: 48.96 MB / 0.8698 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.004881/7.076, allocations: 315.7 kB / 3.206 GB, free: 48.65 MB / 0.8698 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002714/7.077, allocations: 28.84 kB / 3.206 GB, free: 48.62 MB / 0.8698 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004766/7.077, allocations: 27.95 kB / 3.206 GB, free: 48.59 MB / 0.8698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001456/7.079, allocations: 1.221 MB / 3.207 GB, free: 47.26 MB / 0.8698 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.463e-06/7.079, allocations: 0 / 3.207 GB, free: 47.26 MB / 0.8698 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.006039/7.085, allocations: 1.49 MB / 3.209 GB, free: 45.71 MB / 0.8698 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.004347/7.089, allocations: 1.888 MB / 3.21 GB, free: 43.76 MB / 0.8698 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001083/7.09, allocations: 407.1 kB / 3.211 GB, free: 43.34 MB / 0.8698 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003878/7.091, allocations: 11.89 kB / 3.211 GB, free: 43.33 MB / 0.8698 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002758/7.093, allocations: 119.9 kB / 3.211 GB, free: 43.21 MB / 0.8698 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000299/7.094, allocations: 81.19 kB / 3.211 GB, free: 43.14 MB / 0.8698 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002045/7.094, allocations: 51.95 kB / 3.211 GB, free: 43.09 MB / 0.8698 GB Notification: Performance of sort global known variables: time 0.001091/7.095, allocations: 0.5382 MB / 3.212 GB, free: 42.55 MB / 0.8698 GB Notification: Performance of remove unused functions: time 0.005236/7.1, allocations: 0.7198 MB / 3.212 GB, free: 41.83 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.001743/7.102, allocations: 0.4915 MB / 3.213 GB, free: 41.43 MB / 0.8698 GB Notification: Performance of simCode: created initialization part: time 0.005425/7.108, allocations: 1.851 MB / 3.215 GB, free: 39.58 MB / 0.8698 GB Notification: Performance of simCode: created event and clocks part: time 9.427e-06/7.108, allocations: 384 / 3.215 GB, free: 39.58 MB / 0.8698 GB Notification: Performance of simCode: created simulation system equations: time 0.003034/7.111, allocations: 0.7486 MB / 3.215 GB, free: 38.82 MB / 0.8698 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003642/7.114, allocations: 259.7 kB / 3.216 GB, free: 38.58 MB / 0.8698 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01117/7.126, allocations: 1.994 MB / 3.218 GB, free: 36.53 MB / 0.8698 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002384/7.128, allocations: 1.437 MB / 3.219 GB, free: 35.06 MB / 0.8698 GB Notification: Performance of SimCode: time 2.535e-06/7.128, allocations: 0 / 3.219 GB, free: 35.06 MB / 0.8698 GB