Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_maint.8.0.x_Buildings.Electrical.DC.Lines.Examples.DCLinesLinearized.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.Lines.Examples.DCLinesLinearized,fileNamePrefix="Buildings_maint_8_0_x_Buildings_Electrical_DC_Lines_Examples_DCLinesLinearized",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Electrical.DC.Lines.Examples.DCLinesLinearized,fileNamePrefix="Buildings_maint_8_0_x_Buildings_Electrical_DC_Lines_Examples_DCLinesLinearized",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.32/1.32, allocations: 285.5 MB / 292.8 MB, free: 10.42 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.0009955/0.0009956, allocations: 181.3 kB / 361.1 MB, free: 7.039 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.9931/0.9931, allocations: 205.1 MB / 0.6195 GB, free: 10.26 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.0007444/0.0007443, allocations: 85.58 kB / 0.7325 GB, free: 44.17 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.1734/0.1742, allocations: 121.4 MB / 0.8511 GB, free: 2.848 MB / 0.5886 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3912/0.5654, allocations: 115.3 MB / 0.9637 GB, free: 78.11 MB / 0.6667 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.1644/0.7298, allocations: 189 MB / 1.148 GB, free: 14.95 MB / 0.7605 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002171/0.7301, allocations: 92.16 kB / 1.148 GB, free: 14.87 MB / 0.7605 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/PartialTwoPortRLC.mo:18:3-18: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: 635 * Number of variables: 635 Notification: Performance of Generate backend data structure: time 0.5853/1.315, allocations: 151.9 MB / 1.297 GB, free: 190.6 MB / 0.8542 GB Notification: Performance of prepare preOptimizeDAE: time 2.916e-05/1.315, allocations: 11.75 kB / 1.297 GB, free: 190.6 MB / 0.8542 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01525/1.331, allocations: 3.189 MB / 1.3 GB, free: 190.2 MB / 0.8542 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00585/1.337, allocations: 2.575 MB / 1.302 GB, free: 189.6 MB / 0.8542 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000249/1.337, allocations: 384.4 kB / 1.303 GB, free: 189.3 MB / 0.8542 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005973/1.337, allocations: 141.1 kB / 1.303 GB, free: 189.3 MB / 0.8542 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.005011/1.343, allocations: 3.583 MB / 1.306 GB, free: 189.3 MB / 0.8542 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004997/1.348, allocations: 3.686 MB / 1.31 GB, free: 188.9 MB / 0.8542 GB Notification: Performance of preOpt findStateOrder (simulation): time 4.055e-05/1.348, allocations: 1.688 kB / 1.31 GB, free: 188.9 MB / 0.8542 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002777/1.348, allocations: 15.62 kB / 1.31 GB, free: 188.9 MB / 0.8542 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.175e-05/1.348, allocations: 151 kB / 1.31 GB, free: 188.9 MB / 0.8542 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01645/1.364, allocations: 14.54 MB / 1.324 GB, free: 179.9 MB / 0.8542 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001222/1.366, allocations: 1.129 MB / 1.325 GB, free: 179.4 MB / 0.8542 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001633/1.367, allocations: 1.097 MB / 1.327 GB, free: 179 MB / 0.8542 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001103/1.367, allocations: 20.44 kB / 1.327 GB, free: 179 MB / 0.8542 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001643/1.369, allocations: 1.373 MB / 1.328 GB, free: 178.4 MB / 0.8542 GB Notification: Performance of pre-optimization done (n=163): time 3.366e-06/1.369, allocations: 1.156 kB / 1.328 GB, free: 178.4 MB / 0.8542 GB Notification: Performance of matching and sorting (n=250): time 0.01965/1.389, allocations: 8.683 MB / 1.336 GB, free: 175.4 MB / 0.8542 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001737/1.389, allocations: 0.8985 MB / 1.337 GB, free: 174.4 MB / 0.8542 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001947/1.391, allocations: 1.562 MB / 1.339 GB, free: 173.7 MB / 0.8542 GB Notification: Performance of collectPreVariables (initialization): time 0.0001943/1.391, allocations: 40.7 kB / 1.339 GB, free: 173.7 MB / 0.8542 GB Notification: Performance of collectInitialEqns (initialization): time 0.000594/1.392, allocations: 0.9584 MB / 1.34 GB, free: 173 MB / 0.8542 GB Notification: Performance of collectInitialBindings (initialization): time 0.0005197/1.392, allocations: 0.7839 MB / 1.341 GB, free: 172.4 MB / 0.8542 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001787/1.392, allocations: 1.438 kB / 1.341 GB, free: 172.4 MB / 0.8542 GB Notification: Performance of setup shared object (initialization): time 8.714e-05/1.393, allocations: 403.2 kB / 1.341 GB, free: 172.1 MB / 0.8542 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001784/1.394, allocations: 1.405 MB / 1.342 GB, free: 171.5 MB / 0.8542 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002008/1.396, allocations: 1.779 MB / 1.344 GB, free: 170.5 MB / 0.8542 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001849/1.398, allocations: 1.474 MB / 1.345 GB, free: 169.9 MB / 0.8542 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.562e-06/1.398, allocations: 5.219 kB / 1.345 GB, free: 169.9 MB / 0.8542 GB Notification: Performance of matching and sorting (n=299) (initialization): time 0.009743/1.408, allocations: 5.152 MB / 1.35 GB, free: 168.2 MB / 0.8542 GB Notification: Performance of prepare postOptimizeDAE: time 1.295e-05/1.408, allocations: 5.812 kB / 1.35 GB, free: 168.2 MB / 0.8542 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.324e-05/1.408, allocations: 5.719 kB / 1.35 GB, free: 168.2 MB / 0.8542 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.008079/1.416, allocations: 2.766 MB / 1.353 GB, free: 167.6 MB / 0.8542 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002766/1.419, allocations: 0.6185 MB / 1.354 GB, free: 167.6 MB / 0.8542 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02788/1.447, allocations: 15.48 MB / 1.369 GB, free: 160.1 MB / 0.8542 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004116/1.451, allocations: 428.2 kB / 1.369 GB, free: 160 MB / 0.8542 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002657/1.451, allocations: 93.27 kB / 1.369 GB, free: 160 MB / 0.8542 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 24 * Number of states: 0 () * Number of discrete variables: 25 ($whenCondition5,$whenCondition4,$whenCondition3,$whenCondition2,$whenCondition1,$PRE.varLoad1.T_start,varLoad1.T_start,$PRE.varLoad1.count,varLoad1.count,$PRE.varLoad2.T_start,varLoad2.T_start,$PRE.varLoad2.count,varLoad2.count,$PRE.varLoad3.T_start,varLoad3.T_start,$PRE.varLoad3.count,varLoad3.count,$PRE.varLoad4.T_start,varLoad4.T_start,$PRE.varLoad4.count,varLoad4.count,$PRE.varLoad5.T_start,varLoad5.T_start,$PRE.varLoad5.count,varLoad5.count) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (162): * Single equations (assignments): 155 * Array equations: 0 * Algorithm blocks: 5 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(10,48.0%) 52} * Non-linear torn systems: 1 {9 63} Notification: Performance of prepare postOptimizeDAE: time 0.0004804/1.452, allocations: 152.3 kB / 1.37 GB, free: 159.9 MB / 0.8542 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00041/1.452, allocations: 301.2 kB / 1.37 GB, free: 159.7 MB / 0.8542 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005604/1.453, allocations: 322.4 kB / 1.37 GB, free: 159.5 MB / 0.8542 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.682e-05/1.453, allocations: 30.42 kB / 1.37 GB, free: 159.5 MB / 0.8542 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.136e-05/1.453, allocations: 13.91 kB / 1.37 GB, free: 159.5 MB / 0.8542 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.552e-05/1.453, allocations: 14.88 kB / 1.37 GB, free: 159.5 MB / 0.8542 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003487/1.456, allocations: 3.321 MB / 1.373 GB, free: 158.2 MB / 0.8542 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.74e-06/1.456, allocations: 0 / 1.373 GB, free: 158.2 MB / 0.8542 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002505/1.459, allocations: 0.554 MB / 1.374 GB, free: 158.1 MB / 0.8542 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.007927/1.467, allocations: 2.745 MB / 1.377 GB, free: 156.3 MB / 0.8542 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002028/1.467, allocations: 14.66 kB / 1.377 GB, free: 156.3 MB / 0.8542 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02647/1.493, allocations: 15.47 MB / 1.392 GB, free: 142.5 MB / 0.8542 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.058e-06/1.493, allocations: 4 kB / 1.392 GB, free: 142.5 MB / 0.8542 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.009543/1.503, allocations: 4.97 MB / 1.397 GB, free: 138.3 MB / 0.8542 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.009321/1.512, allocations: 5.397 MB / 1.402 GB, free: 133.7 MB / 0.8542 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001287/1.514, allocations: 0.6717 MB / 1.403 GB, free: 133.1 MB / 0.8542 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005404/1.514, allocations: 14.34 kB / 1.403 GB, free: 133.1 MB / 0.8542 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003096/1.517, allocations: 429.5 kB / 1.403 GB, free: 132.8 MB / 0.8542 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006151/1.518, allocations: 263 kB / 1.403 GB, free: 132.6 MB / 0.8542 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002041/1.518, allocations: 77.83 kB / 1.403 GB, free: 132.6 MB / 0.8542 GB Notification: Performance of sort global known variables: time 0.001271/1.519, allocations: 1.166 MB / 1.404 GB, free: 131.5 MB / 0.8542 GB Notification: Performance of remove unused functions: time 0.002744/1.522, allocations: 0.8937 MB / 1.405 GB, free: 130.6 MB / 0.8542 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 15 ($whenCondition5,$whenCondition4,$whenCondition3,$whenCondition2,$whenCondition1,varLoad1.T_start,varLoad1.count,varLoad2.T_start,varLoad2.count,varLoad3.T_start,varLoad3.count,varLoad4.T_start,varLoad4.count,varLoad5.T_start,varLoad5.count) * Number of discrete states: 5 (varLoad1.count,varLoad2.count,varLoad3.count,varLoad4.count,varLoad5.count) * Top-level inputs: 0 Notification: Strong component statistics for simulation (118): * Single equations (assignments): 106 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 10 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(10,60.0%) 52} * Non-linear torn systems: 1 {8 64} Notification: Performance of Backend phase and start with SimCode phase: time 0.0003279/1.522, allocations: 137.9 kB / 1.405 GB, free: 130.5 MB / 0.8542 GB Notification: Performance of simCode: created initialization part: time 0.0144/1.537, allocations: 4.927 MB / 1.41 GB, free: 126 MB / 0.8542 GB Notification: Performance of simCode: created event and clocks part: time 4.478e-06/1.537, allocations: 8.531 kB / 1.41 GB, free: 126 MB / 0.8542 GB Notification: Performance of simCode: created simulation system equations: time 0.01223/1.549, allocations: 3.186 MB / 1.413 GB, free: 123.1 MB / 0.8542 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003338/1.552, allocations: 0.833 MB / 1.414 GB, free: 122.5 MB / 0.8542 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009501/1.562, allocations: 5.201 MB / 1.419 GB, free: 117.2 MB / 0.8542 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00198/1.564, allocations: 2.406 MB / 1.422 GB, free: 114.8 MB / 0.8542 GB Notification: Performance of SimCode: time 7.92e-07/1.564, allocations: 0 / 1.422 GB, free: 114.8 MB / 0.8542 GB (rm -f Buildings_maint.8.0.x_Buildings.Electrical.DC.Lines.Examples.DCLinesLinearized.pipe ; mkfifo Buildings_maint.8.0.x_Buildings.Electrical.DC.Lines.Examples.DCLinesLinearized.pipe ; head -c 1048576 < Buildings_maint.8.0.x_Buildings.Electrical.DC.Lines.Examples.DCLinesLinearized.pipe >> ../files/Buildings_maint.8.0.x_Buildings.Electrical.DC.Lines.Examples.DCLinesLinearized.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_Buildings_maint_8_0_x_Buildings_Electrical_DC_Lines_Examples_DCLinesLinearized_fmu --startTime=0 --stopTime=4000 --timeout=50 --tolerance=1e-06 Buildings_maint_8_0_x_Buildings_Electrical_DC_Lines_Examples_DCLinesLinearized.fmu > Buildings_maint.8.0.x_Buildings.Electrical.DC.Lines.Examples.DCLinesLinearized.pipe 2>&1)