Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_latest_Buildings.Electrical.DC.Lines.Examples.DCLine.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package Buildings with version 10.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/package.mo) Running command: translateModel(Buildings.Electrical.DC.Lines.Examples.DCLine,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|line1.R|line.R|line2.R|load1.i.1.|load2.i.1.|load3.i.1.|E.S.1.",fileNamePrefix="Buildings_latest_Buildings.Electrical.DC.Lines.Examples.DCLine") translateModel(Buildings.Electrical.DC.Lines.Examples.DCLine,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|line1.R|line.R|line2.R|load1.i.1.|load2.i.1.|load3.i.1.|E.S.1.",fileNamePrefix="Buildings_latest_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 10.0.0-master/package.mo): time 1.714/1.714, allocations: 390.4 MB / 397.7 MB, free: 11.23 MB / 314.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0008946/0.0008946, allocations: 185.2 kB / 490.8 MB, free: 1.953 MB / 394.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.059/1.059, allocations: 221.4 MB / 0.7863 GB, free: 13.66 MB / 0.5573 GB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008032/0.0008032, allocations: 79.36 kB / 0.9264 GB, free: 14.21 MB / 0.698 GB Notification: Performance of FrontEnd - loaded program: time 4.919e-06/4.939e-06, allocations: 0 / 1.072 GB, free: 182.6 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1632/0.1632, allocations: 143 MB / 1.212 GB, free: 40.12 MB / 0.7605 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.4766/0.6398, allocations: 192 MB / 1.399 GB, free: 9.852 MB / 0.823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001849/0.6401, allocations: 88.19 kB / 1.399 GB, free: 9.805 MB / 0.823 GB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/Electrical/Transmission/BaseClasses/PartialTwoPortRLC.mo:19:3-19: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 10.0.0-master/Electrical/Interfaces/Source.mo:28:9-28: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 10.0.0-master/Electrical/Transmission/BaseClasses/PartialTwoPortRLC.mo:19:3-19: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.09132/0.7314, allocations: 49.33 MB / 1.447 GB, free: 1.121 MB / 0.8542 GB Notification: Performance of Transformations before backend: time 3.552e-05/0.7314, allocations: 28.12 kB / 1.447 GB, free: 1.094 MB / 0.8542 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.001217/0.7327, allocations: 0.9099 MB / 1.448 GB, free: 188 kB / 0.8542 GB Notification: Performance of prepare preOptimizeDAE: time 2.814e-05/0.7327, allocations: 8.031 kB / 1.448 GB, free: 180 kB / 0.8542 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003101/0.7358, allocations: 0.6247 MB / 1.449 GB, free: 15.56 MB / 0.8698 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008949/0.7367, allocations: 0.5893 MB / 1.449 GB, free: 15.02 MB / 0.8698 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.759e-05/0.7367, allocations: 19.98 kB / 1.449 GB, free: 15 MB / 0.8698 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.529e-05/0.7368, allocations: 28 kB / 1.449 GB, free: 14.98 MB / 0.8698 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0009152/0.7378, allocations: 0.7197 MB / 1.45 GB, free: 14.52 MB / 0.8698 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001021/0.7388, allocations: 0.8084 MB / 1.451 GB, free: 13.89 MB / 0.8698 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.45e-05/0.7388, allocations: 4 kB / 1.451 GB, free: 13.89 MB / 0.8698 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.859e-05/0.7389, allocations: 4 kB / 1.451 GB, free: 13.88 MB / 0.8698 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.866e-05/0.7389, allocations: 41.23 kB / 1.451 GB, free: 13.85 MB / 0.8698 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003474/0.7424, allocations: 3.449 MB / 1.454 GB, free: 10.55 MB / 0.8698 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003916/0.7428, allocations: 274.8 kB / 1.455 GB, free: 10.36 MB / 0.8698 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002089/0.743, allocations: 170.8 kB / 1.455 GB, free: 10.24 MB / 0.8698 GB Notification: Performance of preOpt evalFunc (simulation): time 2.718e-05/0.743, allocations: 0 / 1.455 GB, free: 10.24 MB / 0.8698 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.261e-05/0.7431, allocations: 50.28 kB / 1.455 GB, free: 10.19 MB / 0.8698 GB Notification: Performance of pre-optimization done (n=31): time 1.092e-06/0.7431, allocations: 0 / 1.455 GB, free: 10.19 MB / 0.8698 GB Notification: Performance of matching and sorting (n=43): time 0.002303/0.7454, allocations: 1.134 MB / 1.456 GB, free: 9.254 MB / 0.8698 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.952e-05/0.7454, allocations: 136.5 kB / 1.456 GB, free: 9.09 MB / 0.8698 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00037/0.7458, allocations: 392.2 kB / 1.456 GB, free: 8.789 MB / 0.8698 GB Notification: Performance of collectPreVariables (initialization): time 3.477e-05/0.7459, allocations: 29.7 kB / 1.456 GB, free: 8.754 MB / 0.8698 GB Notification: Performance of collectInitialEqns (initialization): time 0.000118/0.746, allocations: 286.1 kB / 1.457 GB, free: 8.5 MB / 0.8698 GB Notification: Performance of collectInitialBindings (initialization): time 9.666e-05/0.7461, allocations: 146.7 kB / 1.457 GB, free: 8.371 MB / 0.8698 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.457e-05/0.7461, allocations: 0 / 1.457 GB, free: 8.371 MB / 0.8698 GB Notification: Performance of setup shared object (initialization): time 0.0001044/0.7462, allocations: 372.2 kB / 1.457 GB, free: 8.023 MB / 0.8698 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002437/0.7465, allocations: 182.8 kB / 1.457 GB, free: 7.906 MB / 0.8698 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002905/0.7468, allocations: 306.1 kB / 1.458 GB, free: 7.629 MB / 0.8698 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002855/0.7471, allocations: 229.8 kB / 1.458 GB, free: 7.477 MB / 0.8698 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.452e-06/0.7471, allocations: 0 / 1.458 GB, free: 7.477 MB / 0.8698 GB Notification: Performance of matching and sorting (n=59) (initialization): time 0.001325/0.7484, allocations: 0.7385 MB / 1.459 GB, free: 6.871 MB / 0.8698 GB Notification: Performance of prepare postOptimizeDAE: time 0.0003255/0.7487, allocations: 1.217 MB / 1.46 GB, free: 5.582 MB / 0.8698 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.727e-06/0.7488, allocations: 4 kB / 1.46 GB, free: 5.578 MB / 0.8698 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008781/0.7496, allocations: 231.5 kB / 1.46 GB, free: 5.367 MB / 0.8698 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005998/0.7502, allocations: 143 kB / 1.46 GB, free: 5.23 MB / 0.8698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003521/0.7538, allocations: 5.704 MB / 1.466 GB, free: 15.37 MB / 0.8855 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000525/0.7543, allocations: 55.97 kB / 1.466 GB, free: 15.32 MB / 0.8855 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.088e-05/0.7544, allocations: 23.92 kB / 1.466 GB, free: 15.3 MB / 0.8855 GB Notification: Performance of prepare postOptimizeDAE: time 6.192e-06/0.7544, allocations: 4 kB / 1.466 GB, free: 15.29 MB / 0.8855 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001158/0.7555, allocations: 1.028 MB / 1.467 GB, free: 14.27 MB / 0.8855 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.438e-06/0.7556, allocations: 7.938 kB / 1.467 GB, free: 14.27 MB / 0.8855 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003051/0.7559, allocations: 139.7 kB / 1.467 GB, free: 14.13 MB / 0.8855 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006332/0.7565, allocations: 147.1 kB / 1.467 GB, free: 13.99 MB / 0.8855 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004026/0.7605, allocations: 7.468 MB / 1.474 GB, free: 6.094 MB / 0.8855 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004755/0.761, allocations: 55.89 kB / 1.475 GB, free: 6.039 MB / 0.8855 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.541e-05/0.7611, allocations: 19.5 kB / 1.475 GB, free: 6.023 MB / 0.8855 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.0001183/0.7612, allocations: 116.9 kB / 1.475 GB, free: 5.902 MB / 0.8855 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.9e-05/0.7613, allocations: 63.25 kB / 1.475 GB, free: 5.84 MB / 0.8855 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001004/0.7614, allocations: 72.16 kB / 1.475 GB, free: 5.801 MB / 0.8855 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.728e-06/0.7614, allocations: 8 kB / 1.475 GB, free: 5.793 MB / 0.8855 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.651e-06/0.7614, allocations: 0 / 1.475 GB, free: 5.793 MB / 0.8855 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.931e-06/0.7614, allocations: 3.984 kB / 1.475 GB, free: 5.789 MB / 0.8855 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005543/0.762, allocations: 0.5605 MB / 1.475 GB, free: 5.324 MB / 0.8855 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.573e-06/0.762, allocations: 0 / 1.475 GB, free: 5.324 MB / 0.8855 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005124/0.7625, allocations: 111.2 kB / 1.475 GB, free: 5.219 MB / 0.8855 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007716/0.7633, allocations: 236.4 kB / 1.476 GB, free: 5.004 MB / 0.8855 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.508e-05/0.7633, allocations: 11.89 kB / 1.476 GB, free: 4.992 MB / 0.8855 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004868/0.7682, allocations: 7.907 MB / 1.483 GB, free: 12.79 MB / 0.9011 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.264e-06/0.7682, allocations: 0 / 1.483 GB, free: 12.79 MB / 0.9011 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.001208/0.7695, allocations: 0.7604 MB / 1.484 GB, free: 12.14 MB / 0.9011 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001907/0.7697, allocations: 168.4 kB / 1.484 GB, free: 11.98 MB / 0.9011 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.389e-05/0.7697, allocations: 4 kB / 1.484 GB, free: 11.97 MB / 0.9011 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005075/0.7703, allocations: 66.41 kB / 1.484 GB, free: 11.91 MB / 0.9011 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.126e-05/0.7703, allocations: 18.78 kB / 1.484 GB, free: 11.89 MB / 0.9011 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.407e-05/0.7704, allocations: 14.98 kB / 1.484 GB, free: 11.88 MB / 0.9011 GB Notification: Performance of sort global known variables: time 0.000256/0.7706, allocations: 299.7 kB / 1.485 GB, free: 11.66 MB / 0.9011 GB Notification: Performance of remove unused functions: time 0.0007535/0.7714, allocations: 256 kB / 1.485 GB, free: 11.41 MB / 0.9011 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.0001535/0.7715, allocations: 123.3 kB / 1.485 GB, free: 11.29 MB / 0.9011 GB Notification: Performance of simCode: created initialization part: time 0.001895/0.7734, allocations: 1.702 MB / 1.487 GB, free: 9.734 MB / 0.9011 GB Notification: Performance of simCode: created event and clocks part: time 3.116e-06/0.7735, allocations: 7.875 kB / 1.487 GB, free: 9.727 MB / 0.9011 GB Notification: Performance of simCode: created simulation system equations: time 0.0007754/0.7742, allocations: 0.8413 MB / 1.488 GB, free: 8.91 MB / 0.9011 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006492/0.7749, allocations: 174.1 kB / 1.488 GB, free: 8.773 MB / 0.9011 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001646/0.7766, allocations: 0.9256 MB / 1.489 GB, free: 7.93 MB / 0.9011 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005815/0.7772, allocations: 1.022 MB / 1.49 GB, free: 6.902 MB / 0.9011 GB Notification: Performance of SimCode: time 2.41e-07/0.7772, allocations: 0 / 1.49 GB, free: 6.902 MB / 0.9011 GB Notification: Performance of Templates: time 0.01894/0.7961, allocations: 14.05 MB / 1.503 GB, free: 8.98 MB / 0.9167 GB make -j1 -f Buildings_latest_Buildings.Electrical.DC.Lines.Examples.DCLine.makefile (rm -f Buildings_latest_Buildings.Electrical.DC.Lines.Examples.DCLine.pipe ; mkfifo Buildings_latest_Buildings.Electrical.DC.Lines.Examples.DCLine.pipe ; head -c 1048576 < Buildings_latest_Buildings.Electrical.DC.Lines.Examples.DCLine.pipe >> ../files/Buildings_latest_Buildings.Electrical.DC.Lines.Examples.DCLine.sim & ./Buildings_latest_Buildings.Electrical.DC.Lines.Examples.DCLine -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Electrical.DC.Lines.Examples.DCLine.pipe 2>&1)