Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_8_Buildings.Electrical.DC.Lines.Examples.DCLine.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: translateModel(Buildings.Electrical.DC.Lines.Examples.DCLine,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_8_Buildings.Electrical.DC.Lines.Examples.DCLine") translateModel(Buildings.Electrical.DC.Lines.Examples.DCLine,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_8_Buildings.Electrical.DC.Lines.Examples.DCLine") [: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.344/1.344, allocations: 289.8 MB / 297.1 MB, free: 6.734 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.0009251/0.0009251, allocations: 177.3 kB / 366.3 MB, free: 2.016 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.013/1.013, allocations: 205.2 MB / 0.6256 GB, free: 5.848 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.000746/0.0007461, allocations: 94.45 kB / 0.7395 GB, free: 39.71 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 4.959e-06/4.99e-06, allocations: 0 / 0.859 GB, free: 13.4 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.387/0.387, allocations: 116.3 MB / 0.9726 GB, free: 68.73 MB / 0.6511 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.1629/0.5499, allocations: 180.6 MB / 1.149 GB, free: 15.86 MB / 0.7605 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002179/0.5502, allocations: 91.89 kB / 1.149 GB, free: 15.77 MB / 0.7605 GB [/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);. [/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: Performance of FrontEnd: time 0.08148/0.6317, allocations: 36.24 MB / 1.184 GB, free: 11.12 MB / 0.7917 GB Notification: Performance of Transformations before backend: time 4.071e-05/0.6317, allocations: 23.94 kB / 1.184 GB, free: 11.09 MB / 0.7917 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 142 * Number of variables: 142 Notification: Performance of Generate backend data structure: time 0.001418/0.6331, allocations: 0.9114 MB / 1.185 GB, free: 10.13 MB / 0.7917 GB Notification: Performance of prepare preOptimizeDAE: time 3.026e-05/0.6332, allocations: 8.031 kB / 1.185 GB, free: 10.12 MB / 0.7917 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003272/0.6365, allocations: 0.6233 MB / 1.186 GB, free: 9.5 MB / 0.7917 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001016/0.6375, allocations: 0.5895 MB / 1.186 GB, free: 8.867 MB / 0.7917 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.826e-05/0.6375, allocations: 16 kB / 1.187 GB, free: 8.852 MB / 0.7917 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.026e-05/0.6376, allocations: 32 kB / 1.187 GB, free: 8.82 MB / 0.7917 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001082/0.6387, allocations: 0.721 MB / 1.187 GB, free: 8.098 MB / 0.7917 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001128/0.6398, allocations: 0.8084 MB / 1.188 GB, free: 7.246 MB / 0.7917 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.502e-05/0.6399, allocations: 0 / 1.188 GB, free: 7.246 MB / 0.7917 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.25e-05/0.6399, allocations: 4 kB / 1.188 GB, free: 7.242 MB / 0.7917 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.432e-05/0.64, allocations: 49.27 kB / 1.188 GB, free: 7.195 MB / 0.7917 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003915/0.6439, allocations: 3.449 MB / 1.191 GB, free: 3.453 MB / 0.7917 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004145/0.6443, allocations: 262.1 kB / 1.192 GB, free: 3.191 MB / 0.7917 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002399/0.6446, allocations: 180.7 kB / 1.192 GB, free: 3.012 MB / 0.7917 GB Notification: Performance of preOpt evalFunc (simulation): time 2.823e-05/0.6446, allocations: 0 / 1.192 GB, free: 3.012 MB / 0.7917 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.191e-05/0.6446, allocations: 38.56 kB / 1.192 GB, free: 2.965 MB / 0.7917 GB Notification: Performance of pre-optimization done (n=31): time 2.394e-06/0.6446, allocations: 0 / 1.192 GB, free: 2.965 MB / 0.7917 GB Notification: Performance of matching and sorting (n=43): time 0.002525/0.6472, allocations: 1.15 MB / 1.193 GB, free: 1.785 MB / 0.7917 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.851e-05/0.6472, allocations: 136.5 kB / 1.193 GB, free: 1.621 MB / 0.7917 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004201/0.6477, allocations: 390.1 kB / 1.194 GB, free: 1.234 MB / 0.7917 GB Notification: Performance of collectPreVariables (initialization): time 3.708e-05/0.6477, allocations: 29.7 kB / 1.194 GB, free: 1.199 MB / 0.7917 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001395/0.6479, allocations: 291.7 kB / 1.194 GB, free: 0.9062 MB / 0.7917 GB Notification: Performance of collectInitialBindings (initialization): time 0.000129/0.648, allocations: 142 kB / 1.194 GB, free: 0.7656 MB / 0.7917 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.638e-05/0.648, allocations: 4 kB / 1.194 GB, free: 0.7617 MB / 0.7917 GB Notification: Performance of setup shared object (initialization): time 0.0001232/0.6482, allocations: 362.7 kB / 1.194 GB, free: 408 kB / 0.7917 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002714/0.6484, allocations: 184.9 kB / 1.194 GB, free: 224 kB / 0.7917 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003362/0.6488, allocations: 310.9 kB / 1.195 GB, free: 15.86 MB / 0.8073 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003155/0.6491, allocations: 229.5 kB / 1.195 GB, free: 15.64 MB / 0.8073 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.483e-06/0.6491, allocations: 0 / 1.195 GB, free: 15.64 MB / 0.8073 GB Notification: Performance of matching and sorting (n=59) (initialization): time 0.001439/0.6506, allocations: 0.7371 MB / 1.196 GB, free: 14.88 MB / 0.8073 GB Notification: Performance of prepare postOptimizeDAE: time 0.0004098/0.651, allocations: 1.22 MB / 1.197 GB, free: 13.56 MB / 0.8073 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.514e-06/0.651, allocations: 4 kB / 1.197 GB, free: 13.55 MB / 0.8073 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009548/0.6519, allocations: 233 kB / 1.197 GB, free: 13.31 MB / 0.8073 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006309/0.6526, allocations: 135.8 kB / 1.197 GB, free: 13.18 MB / 0.8073 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003964/0.6566, allocations: 5.706 MB / 1.203 GB, free: 7.047 MB / 0.8073 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005465/0.6571, allocations: 59.95 kB / 1.203 GB, free: 6.988 MB / 0.8073 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.177e-05/0.6572, allocations: 16 kB / 1.203 GB, free: 6.973 MB / 0.8073 GB Notification: Performance of prepare postOptimizeDAE: time 5.861e-06/0.6572, allocations: 8 kB / 1.203 GB, free: 6.965 MB / 0.8073 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001256/0.6584, allocations: 1.026 MB / 1.204 GB, free: 5.809 MB / 0.8073 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.979e-06/0.6585, allocations: 4.344 kB / 1.204 GB, free: 5.805 MB / 0.8073 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003237/0.6588, allocations: 137 kB / 1.204 GB, free: 5.652 MB / 0.8073 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006618/0.6595, allocations: 147.8 kB / 1.204 GB, free: 5.508 MB / 0.8073 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004532/0.664, allocations: 7.476 MB / 1.212 GB, free: 13.34 MB / 0.823 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005477/0.6646, allocations: 48.05 kB / 1.212 GB, free: 13.3 MB / 0.823 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.061e-05/0.6646, allocations: 20 kB / 1.212 GB, free: 13.28 MB / 0.823 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 14 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (47): * Single equations (assignments): 41 * 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: 6 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 3 {(1,100.0%) 2,(1,100.0%) 2,(1,100.0%) 2} * Non-linear torn systems: 3 {1 2,1 2,1 2} Notification: Performance of prepare postOptimizeDAE: time 0.0001604/0.6648, allocations: 124.8 kB / 1.212 GB, free: 13.15 MB / 0.823 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001059/0.6649, allocations: 63.25 kB / 1.212 GB, free: 13.09 MB / 0.823 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001329/0.665, allocations: 65.41 kB / 1.212 GB, free: 13.02 MB / 0.823 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.879e-06/0.6651, allocations: 8 kB / 1.212 GB, free: 13.02 MB / 0.823 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.957e-06/0.6651, allocations: 0 / 1.212 GB, free: 13.02 MB / 0.823 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.518e-06/0.6651, allocations: 0 / 1.212 GB, free: 13.02 MB / 0.823 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006881/0.6658, allocations: 0.5679 MB / 1.212 GB, free: 12.41 MB / 0.823 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.014e-06/0.6658, allocations: 0 / 1.212 GB, free: 12.41 MB / 0.823 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005224/0.6663, allocations: 111.8 kB / 1.212 GB, free: 12.3 MB / 0.823 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008185/0.6671, allocations: 237 kB / 1.213 GB, free: 12.05 MB / 0.823 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.402e-05/0.6672, allocations: 7.938 kB / 1.213 GB, free: 12.05 MB / 0.823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005467/0.6727, allocations: 7.922 MB / 1.22 GB, free: 3.434 MB / 0.823 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.844e-06/0.6727, allocations: 0 / 1.22 GB, free: 3.434 MB / 0.823 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.001284/0.674, allocations: 0.7533 MB / 1.221 GB, free: 2.645 MB / 0.823 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002339/0.6742, allocations: 168.4 kB / 1.221 GB, free: 2.461 MB / 0.823 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.984e-05/0.6743, allocations: 11.91 kB / 1.221 GB, free: 2.449 MB / 0.823 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005156/0.6748, allocations: 51.95 kB / 1.221 GB, free: 2.398 MB / 0.823 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.406e-05/0.6749, allocations: 19.95 kB / 1.221 GB, free: 2.379 MB / 0.823 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.346e-05/0.6749, allocations: 12 kB / 1.221 GB, free: 2.367 MB / 0.823 GB Notification: Performance of sort global known variables: time 0.0003115/0.6753, allocations: 299 kB / 1.222 GB, free: 2.078 MB / 0.823 GB Notification: Performance of remove unused functions: time 0.0008513/0.6761, allocations: 256 kB / 1.222 GB, free: 1.828 MB / 0.823 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (31): * Single equations (assignments): 25 * 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: 6 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 3 {(1,100.0%) 2,(1,100.0%) 2,(1,100.0%) 2} * Non-linear torn systems: 3 {1 2,1 2,1 2} Notification: Performance of Backend phase and start with SimCode phase: time 0.0001704/0.6763, allocations: 119.2 kB / 1.222 GB, free: 1.703 MB / 0.823 GB Notification: Performance of simCode: created initialization part: time 0.002115/0.6784, allocations: 1.696 MB / 1.224 GB, free: 15.92 MB / 0.8386 GB Notification: Performance of simCode: created event and clocks part: time 2.335e-06/0.6784, allocations: 0 / 1.224 GB, free: 15.92 MB / 0.8386 GB Notification: Performance of simCode: created simulation system equations: time 0.0008782/0.6793, allocations: 0.8618 MB / 1.225 GB, free: 15 MB / 0.8386 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006943/0.68, allocations: 168.3 kB / 1.225 GB, free: 14.83 MB / 0.8386 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001834/0.6819, allocations: 0.9203 MB / 1.226 GB, free: 13.88 MB / 0.8386 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006494/0.6825, allocations: 1.025 MB / 1.227 GB, free: 12.82 MB / 0.8386 GB Notification: Performance of SimCode: time 2.6e-07/0.6825, allocations: 0 / 1.227 GB, free: 12.82 MB / 0.8386 GB Notification: Performance of Templates: time 0.3132/0.9957, allocations: 14.06 MB / 1.24 GB, free: 131.6 MB / 0.8386 GB make -j1 -f Buildings_8_Buildings.Electrical.DC.Lines.Examples.DCLine.makefile (rm -f Buildings_8_Buildings.Electrical.DC.Lines.Examples.DCLine.pipe ; mkfifo Buildings_8_Buildings.Electrical.DC.Lines.Examples.DCLine.pipe ; head -c 1048576 < Buildings_8_Buildings.Electrical.DC.Lines.Examples.DCLine.pipe >> ../files/Buildings_8_Buildings.Electrical.DC.Lines.Examples.DCLine.sim & ./Buildings_8_Buildings.Electrical.DC.Lines.Examples.DCLine -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_8_Buildings.Electrical.DC.Lines.Examples.DCLine.pipe 2>&1)