Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_8_Buildings.Electrical.DC.Lines.Examples.DCLinesLinearized.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.Lines.Examples.DCLinesLinearized,fileNamePrefix="Buildings_8_Buildings_Electrical_DC_Lines_Examples_DCLinesLinearized",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Electrical.DC.Lines.Examples.DCLinesLinearized,fileNamePrefix="Buildings_8_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.1.4-maint.8.1.x/package.mo): time 1.372/1.372, allocations: 289.8 MB / 297.1 MB, free: 6.691 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.0009437/0.0009437, allocations: 193.3 kB / 366.3 MB, free: 2 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.063/1.063, allocations: 205.1 MB / 0.6256 GB, free: 5.836 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.0008502/0.00085, allocations: 92.11 kB / 0.7396 GB, free: 39.7 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.1989/0.1998, allocations: 122.4 MB / 0.8591 GB, free: 13.29 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4315/0.6312, allocations: 116.3 MB / 0.9727 GB, free: 68.07 MB / 0.6511 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.1863/0.8176, allocations: 189.9 MB / 1.158 GB, free: 6.465 MB / 0.7605 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000256/0.8179, allocations: 95.92 kB / 1.158 GB, free: 6.371 MB / 0.7605 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/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.6376/1.455, allocations: 151.9 MB / 1.307 GB, free: 191.1 MB / 0.8386 GB Notification: Performance of prepare preOptimizeDAE: time 3.535e-05/1.456, allocations: 9.219 kB / 1.307 GB, free: 191.1 MB / 0.8386 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01684/1.472, allocations: 3.195 MB / 1.31 GB, free: 190.6 MB / 0.8386 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007216/1.48, allocations: 2.576 MB / 1.312 GB, free: 189.2 MB / 0.8386 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002853/1.48, allocations: 394.2 kB / 1.313 GB, free: 188.8 MB / 0.8386 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0009759/1.481, allocations: 138.7 kB / 1.313 GB, free: 188.8 MB / 0.8386 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.006256/1.487, allocations: 3.582 MB / 1.316 GB, free: 187.1 MB / 0.8386 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005589/1.493, allocations: 3.688 MB / 1.32 GB, free: 185 MB / 0.8386 GB Notification: Performance of preOpt findStateOrder (simulation): time 4.47e-05/1.493, allocations: 6.219 kB / 1.32 GB, free: 185 MB / 0.8386 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002899/1.493, allocations: 2.844 kB / 1.32 GB, free: 185 MB / 0.8386 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001028/1.493, allocations: 153.7 kB / 1.32 GB, free: 185 MB / 0.8386 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01807/1.511, allocations: 14.54 MB / 1.334 GB, free: 172.8 MB / 0.8386 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001247/1.513, allocations: 1.136 MB / 1.335 GB, free: 171.7 MB / 0.8386 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001134/1.514, allocations: 1.105 MB / 1.336 GB, free: 170.6 MB / 0.8386 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001129/1.514, allocations: 22.16 kB / 1.336 GB, free: 170.6 MB / 0.8386 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001437/1.515, allocations: 1.37 MB / 1.338 GB, free: 169.1 MB / 0.8386 GB Notification: Performance of pre-optimization done (n=163): time 3.206e-06/1.515, allocations: 0 / 1.338 GB, free: 169.1 MB / 0.8386 GB Notification: Performance of matching and sorting (n=250): time 0.01974/1.535, allocations: 8.684 MB / 1.346 GB, free: 160.5 MB / 0.8386 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001486/1.535, allocations: 0.8983 MB / 1.347 GB, free: 159.4 MB / 0.8386 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001761/1.537, allocations: 1.568 MB / 1.349 GB, free: 157.8 MB / 0.8386 GB Notification: Performance of collectPreVariables (initialization): time 0.0002007/1.537, allocations: 33.7 kB / 1.349 GB, free: 157.7 MB / 0.8386 GB Notification: Performance of collectInitialEqns (initialization): time 0.0005337/1.538, allocations: 0.9588 MB / 1.35 GB, free: 156.8 MB / 0.8386 GB Notification: Performance of collectInitialBindings (initialization): time 0.000484/1.538, allocations: 0.7811 MB / 1.35 GB, free: 156 MB / 0.8386 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001974/1.538, allocations: 4 kB / 1.35 GB, free: 156 MB / 0.8386 GB Notification: Performance of setup shared object (initialization): time 8.51e-05/1.539, allocations: 402.6 kB / 1.351 GB, free: 155.6 MB / 0.8386 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001646/1.54, allocations: 1.41 MB / 1.352 GB, free: 154.2 MB / 0.8386 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001789/1.542, allocations: 1.773 MB / 1.354 GB, free: 152.2 MB / 0.8386 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001659/1.544, allocations: 1.476 MB / 1.355 GB, free: 150.8 MB / 0.8386 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.598e-06/1.544, allocations: 4 kB / 1.355 GB, free: 150.8 MB / 0.8386 GB Notification: Performance of matching and sorting (n=299) (initialization): time 0.009757/1.553, allocations: 5.134 MB / 1.36 GB, free: 145.6 MB / 0.8386 GB Notification: Performance of prepare postOptimizeDAE: time 1.163e-05/1.553, allocations: 9.25 kB / 1.36 GB, free: 145.6 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.256e-05/1.553, allocations: 8 kB / 1.36 GB, free: 145.6 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.008434/1.562, allocations: 2.772 MB / 1.363 GB, free: 142.8 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002936/1.565, allocations: 0.6242 MB / 1.364 GB, free: 142.2 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02819/1.593, allocations: 15.48 MB / 1.379 GB, free: 126.5 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004262/1.597, allocations: 431.5 kB / 1.379 GB, free: 126.1 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003101/1.598, allocations: 91.91 kB / 1.379 GB, free: 126 MB / 0.8386 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.0004896/1.598, allocations: 151 kB / 1.379 GB, free: 125.8 MB / 0.8386 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004242/1.599, allocations: 308.4 kB / 1.38 GB, free: 125.5 MB / 0.8386 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006733/1.599, allocations: 321.2 kB / 1.38 GB, free: 125.2 MB / 0.8386 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.634e-05/1.599, allocations: 24 kB / 1.38 GB, free: 125.2 MB / 0.8386 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.68e-05/1.599, allocations: 8 kB / 1.38 GB, free: 125.2 MB / 0.8386 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.682e-05/1.599, allocations: 12.33 kB / 1.38 GB, free: 125.1 MB / 0.8386 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003476/1.603, allocations: 3.33 MB / 1.383 GB, free: 121.8 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.811e-06/1.603, allocations: 0 / 1.383 GB, free: 121.8 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00256/1.605, allocations: 0.554 MB / 1.384 GB, free: 121.2 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.008305/1.614, allocations: 2.745 MB / 1.387 GB, free: 118.5 MB / 0.8386 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002446/1.614, allocations: 15.97 kB / 1.387 GB, free: 118.5 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02797/1.642, allocations: 15.48 MB / 1.402 GB, free: 102.8 MB / 0.8386 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.907e-06/1.642, allocations: 0 / 1.402 GB, free: 102.8 MB / 0.8386 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.009941/1.652, allocations: 4.963 MB / 1.407 GB, free: 97.82 MB / 0.8386 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.01024/1.662, allocations: 5.395 MB / 1.412 GB, free: 92.4 MB / 0.8386 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001465/1.664, allocations: 0.6808 MB / 1.412 GB, free: 91.7 MB / 0.8386 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005717/1.664, allocations: 4 kB / 1.412 GB, free: 91.69 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00327/1.668, allocations: 435.5 kB / 1.413 GB, free: 91.27 MB / 0.8386 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006288/1.668, allocations: 265.5 kB / 1.413 GB, free: 91 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002089/1.668, allocations: 67.97 kB / 1.413 GB, free: 90.94 MB / 0.8386 GB Notification: Performance of sort global known variables: time 0.001335/1.67, allocations: 1.161 MB / 1.414 GB, free: 89.77 MB / 0.8386 GB Notification: Performance of remove unused functions: time 0.00271/1.672, allocations: 0.8945 MB / 1.415 GB, free: 88.88 MB / 0.8386 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.0003225/1.673, allocations: 143 kB / 1.415 GB, free: 88.73 MB / 0.8386 GB Notification: Performance of simCode: created initialization part: time 0.0148/1.688, allocations: 4.934 MB / 1.42 GB, free: 83.73 MB / 0.8386 GB Notification: Performance of simCode: created event and clocks part: time 3.606e-06/1.688, allocations: 7.938 kB / 1.42 GB, free: 83.73 MB / 0.8386 GB Notification: Performance of simCode: created simulation system equations: time 0.01286/1.7, allocations: 3.178 MB / 1.423 GB, free: 80.53 MB / 0.8386 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0034/1.704, allocations: 0.8276 MB / 1.424 GB, free: 79.71 MB / 0.8386 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009379/1.713, allocations: 5.214 MB / 1.429 GB, free: 74.43 MB / 0.8386 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002054/1.715, allocations: 2.401 MB / 1.431 GB, free: 72 MB / 0.8386 GB Notification: Performance of SimCode: time 5.72e-07/1.715, allocations: 0 / 1.431 GB, free: 72 MB / 0.8386 GB (rm -f Buildings_8_Buildings.Electrical.DC.Lines.Examples.DCLinesLinearized.pipe ; mkfifo Buildings_8_Buildings.Electrical.DC.Lines.Examples.DCLinesLinearized.pipe ; head -c 1048576 < Buildings_8_Buildings.Electrical.DC.Lines.Examples.DCLinesLinearized.pipe >> ../files/Buildings_8_Buildings.Electrical.DC.Lines.Examples.DCLinesLinearized.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_Buildings_8_Buildings_Electrical_DC_Lines_Examples_DCLinesLinearized_fmu --startTime=0 --stopTime=4000 --timeout=50 --tolerance=1e-06 Buildings_8_Buildings_Electrical_DC_Lines_Examples_DCLinesLinearized.fmu > Buildings_8_Buildings.Electrical.DC.Lines.Examples.DCLinesLinearized.pipe 2>&1)