Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_8_Buildings.Electrical.DC.Lines.Examples.DCLines.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.DCLines,fileNamePrefix="Buildings_8_Buildings_Electrical_DC_Lines_Examples_DCLines",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Electrical.DC.Lines.Examples.DCLines,fileNamePrefix="Buildings_8_Buildings_Electrical_DC_Lines_Examples_DCLines",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.359/1.359, allocations: 289.8 MB / 297.1 MB, free: 6.699 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.0009767/0.0009766, allocations: 173.3 kB / 366.3 MB, free: 2.035 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.06/1.06, allocations: 205.1 MB / 0.6256 GB, free: 7.484 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.0008004/0.0008004, allocations: 91.2 kB / 0.7395 GB, free: 39.91 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.1969/0.1977, allocations: 122.4 MB / 0.8591 GB, free: 13.52 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.451/0.6487, allocations: 116.3 MB / 0.9726 GB, free: 75.92 MB / 0.6667 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.1809/0.8297, allocations: 189.9 MB / 1.158 GB, free: 8.508 MB / 0.7605 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001822/0.8299, allocations: 89.94 kB / 1.158 GB, free: 8.422 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.6282/1.458, allocations: 150 MB / 1.305 GB, free: 192.4 MB / 0.8542 GB Notification: Performance of prepare preOptimizeDAE: time 2.799e-05/1.458, allocations: 9.656 kB / 1.305 GB, free: 192.4 MB / 0.8542 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01541/1.474, allocations: 3.19 MB / 1.308 GB, free: 192 MB / 0.8542 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004169/1.478, allocations: 2.312 MB / 1.31 GB, free: 191.4 MB / 0.8542 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.567e-05/1.478, allocations: 86.5 kB / 1.31 GB, free: 191.4 MB / 0.8542 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000357/1.478, allocations: 137.8 kB / 1.31 GB, free: 191.4 MB / 0.8542 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.004543/1.483, allocations: 3.513 MB / 1.314 GB, free: 191.4 MB / 0.8542 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004372/1.487, allocations: 3.569 MB / 1.317 GB, free: 190.5 MB / 0.8542 GB Notification: Performance of preOpt findStateOrder (simulation): time 4.251e-05/1.487, allocations: 5.438 kB / 1.317 GB, free: 190.5 MB / 0.8542 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002646/1.487, allocations: 7.906 kB / 1.317 GB, free: 190.5 MB / 0.8542 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.084e-05/1.487, allocations: 152.3 kB / 1.317 GB, free: 190.4 MB / 0.8542 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01731/1.505, allocations: 14.02 MB / 1.331 GB, free: 180.9 MB / 0.8542 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001346/1.506, allocations: 1.064 MB / 1.332 GB, free: 180.5 MB / 0.8542 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001303/1.507, allocations: 1.037 MB / 1.333 GB, free: 180.1 MB / 0.8542 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001025/1.508, allocations: 27.44 kB / 1.333 GB, free: 180.1 MB / 0.8542 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001539/1.509, allocations: 1.291 MB / 1.334 GB, free: 179.5 MB / 0.8542 GB Notification: Performance of pre-optimization done (n=163): time 2.775e-06/1.509, allocations: 0 / 1.334 GB, free: 179.5 MB / 0.8542 GB Notification: Performance of matching and sorting (n=250): time 0.01632/1.525, allocations: 7.734 MB / 1.342 GB, free: 176.7 MB / 0.8542 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001661/1.526, allocations: 0.9041 MB / 1.343 GB, free: 175.7 MB / 0.8542 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001824/1.528, allocations: 1.562 MB / 1.344 GB, free: 175 MB / 0.8542 GB Notification: Performance of collectPreVariables (initialization): time 0.000186/1.528, allocations: 30.95 kB / 1.344 GB, free: 175 MB / 0.8542 GB Notification: Performance of collectInitialEqns (initialization): time 0.0007151/1.528, allocations: 0.9603 MB / 1.345 GB, free: 174.3 MB / 0.8542 GB Notification: Performance of collectInitialBindings (initialization): time 0.0005827/1.529, allocations: 0.784 MB / 1.346 GB, free: 173.7 MB / 0.8542 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001616/1.529, allocations: 0 / 1.346 GB, free: 173.7 MB / 0.8542 GB Notification: Performance of setup shared object (initialization): time 0.0001205/1.529, allocations: 399.7 kB / 1.346 GB, free: 173.4 MB / 0.8542 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001608/1.531, allocations: 1.244 MB / 1.348 GB, free: 172.9 MB / 0.8542 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001674/1.533, allocations: 1.616 MB / 1.349 GB, free: 172 MB / 0.8542 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001553/1.534, allocations: 1.341 MB / 1.351 GB, free: 171.4 MB / 0.8542 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.408e-06/1.534, allocations: 0 / 1.351 GB, free: 171.4 MB / 0.8542 GB Notification: Performance of matching and sorting (n=299) (initialization): time 0.007583/1.542, allocations: 4.428 MB / 1.355 GB, free: 169.9 MB / 0.8542 GB Notification: Performance of prepare postOptimizeDAE: time 0.0002815/1.542, allocations: 2.274 MB / 1.357 GB, free: 167.4 MB / 0.8542 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.169e-05/1.542, allocations: 5.844 kB / 1.357 GB, free: 167.4 MB / 0.8542 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.005274/1.547, allocations: 1.624 MB / 1.359 GB, free: 167.1 MB / 0.8542 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002895/1.55, allocations: 0.6461 MB / 1.359 GB, free: 167 MB / 0.8542 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01102/1.561, allocations: 8.713 MB / 1.368 GB, free: 162.4 MB / 0.8542 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004044/1.565, allocations: 411.5 kB / 1.368 GB, free: 162.4 MB / 0.8542 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002462/1.566, allocations: 91.86 kB / 1.368 GB, free: 162.3 MB / 0.8542 GB Notification: Performance of prepare postOptimizeDAE: time 8.647e-06/1.566, allocations: 5.5 kB / 1.368 GB, free: 162.3 MB / 0.8542 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.006223/1.572, allocations: 3.684 MB / 1.372 GB, free: 161.1 MB / 0.8542 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.161e-05/1.572, allocations: 6.094 kB / 1.372 GB, free: 161.1 MB / 0.8542 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.003609/1.575, allocations: 1.429 MB / 1.373 GB, free: 160.6 MB / 0.8542 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002958/1.578, allocations: 0.6815 MB / 1.374 GB, free: 160.1 MB / 0.8542 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01393/1.592, allocations: 11.14 MB / 1.385 GB, free: 150 MB / 0.8542 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003447/1.596, allocations: 411.6 kB / 1.385 GB, free: 149.7 MB / 0.8542 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002061/1.596, allocations: 86.52 kB / 1.385 GB, free: 149.6 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 (172): * Single equations (assignments): 165 * 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 {10 52} Notification: Performance of prepare postOptimizeDAE: time 0.0005004/1.597, allocations: 168.8 kB / 1.385 GB, free: 149.5 MB / 0.8542 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003618/1.597, allocations: 305.1 kB / 1.386 GB, free: 149.2 MB / 0.8542 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006003/1.598, allocations: 334 kB / 1.386 GB, free: 148.9 MB / 0.8542 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.279e-05/1.598, allocations: 24 kB / 1.386 GB, free: 148.8 MB / 0.8542 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.102e-05/1.598, allocations: 15.89 kB / 1.386 GB, free: 148.8 MB / 0.8542 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.695e-05/1.598, allocations: 10.36 kB / 1.386 GB, free: 148.8 MB / 0.8542 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003112/1.601, allocations: 2.844 MB / 1.389 GB, free: 146.7 MB / 0.8542 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.292e-06/1.601, allocations: 0 / 1.389 GB, free: 146.7 MB / 0.8542 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002554/1.603, allocations: 0.5709 MB / 1.389 GB, free: 146.3 MB / 0.8542 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.00496/1.608, allocations: 1.65 MB / 1.391 GB, free: 145 MB / 0.8542 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001767/1.608, allocations: 16.86 kB / 1.391 GB, free: 145 MB / 0.8542 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01548/1.624, allocations: 12.67 MB / 1.403 GB, free: 132.6 MB / 0.8542 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.555e-06/1.624, allocations: 0 / 1.403 GB, free: 132.6 MB / 0.8542 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.007066/1.631, allocations: 4.229 MB / 1.408 GB, free: 128.4 MB / 0.8542 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.00724/1.638, allocations: 4.668 MB / 1.412 GB, free: 123.7 MB / 0.8542 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001428/1.64, allocations: 0.6462 MB / 1.413 GB, free: 123.1 MB / 0.8542 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005159/1.64, allocations: 7.984 kB / 1.413 GB, free: 123.1 MB / 0.8542 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003055/1.643, allocations: 424.8 kB / 1.413 GB, free: 122.6 MB / 0.8542 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004988/1.644, allocations: 229.6 kB / 1.413 GB, free: 122.4 MB / 0.8542 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001887/1.644, allocations: 67.97 kB / 1.413 GB, free: 122.3 MB / 0.8542 GB Notification: Performance of sort global known variables: time 0.001365/1.645, allocations: 1.161 MB / 1.415 GB, free: 121.2 MB / 0.8542 GB Notification: Performance of remove unused functions: time 0.004401/1.65, allocations: 1.368 MB / 1.416 GB, free: 119.8 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 (128): * Single equations (assignments): 116 * 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 {10 52} Notification: Performance of Backend phase and start with SimCode phase: time 0.0003194/1.65, allocations: 137.9 kB / 1.416 GB, free: 119.7 MB / 0.8542 GB Notification: Performance of simCode: created initialization part: time 0.01106/1.661, allocations: 6.893 MB / 1.423 GB, free: 112.7 MB / 0.8542 GB Notification: Performance of simCode: created event and clocks part: time 5.45e-06/1.661, allocations: 4 kB / 1.423 GB, free: 112.7 MB / 0.8542 GB Notification: Performance of simCode: created simulation system equations: time 0.004211/1.665, allocations: 2.48 MB / 1.425 GB, free: 110.2 MB / 0.8542 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003268/1.669, allocations: 0.8436 MB / 1.426 GB, free: 109.4 MB / 0.8542 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00966/1.678, allocations: 5.187 MB / 1.431 GB, free: 104.2 MB / 0.8542 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002104/1.681, allocations: 2.424 MB / 1.433 GB, free: 101.7 MB / 0.8542 GB Notification: Performance of SimCode: time 6.21e-07/1.681, allocations: 0 / 1.433 GB, free: 101.7 MB / 0.8542 GB (rm -f Buildings_8_Buildings.Electrical.DC.Lines.Examples.DCLines.pipe ; mkfifo Buildings_8_Buildings.Electrical.DC.Lines.Examples.DCLines.pipe ; head -c 1048576 < Buildings_8_Buildings.Electrical.DC.Lines.Examples.DCLines.pipe >> ../files/Buildings_8_Buildings.Electrical.DC.Lines.Examples.DCLines.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_Buildings_8_Buildings_Electrical_DC_Lines_Examples_DCLines_fmu --startTime=0 --stopTime=4000 --timeout=50 --tolerance=1e-06 Buildings_8_Buildings_Electrical_DC_Lines_Examples_DCLines.fmu > Buildings_8_Buildings.Electrical.DC.Lines.Examples.DCLines.pipe 2>&1)