Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_9_Buildings.Electrical.DC.Lines.Examples.DCLine.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/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 9.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/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_9_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_9_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 9.1.1-maint.9.1.x/package.mo): time 1.757/1.757, allocations: 387.2 MB / 394.5 MB, free: 13.67 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.0009308/0.0009308, allocations: 179.9 kB / 487 MB, free: 5.387 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.09/1.09, allocations: 221.3 MB / 0.7819 GB, free: 1.402 MB / 0.5417 GB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008675/0.0008676, allocations: 105.5 kB / 0.9213 GB, free: 2.652 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 5.711e-06/5.721e-06, allocations: 4 kB / 1.066 GB, free: 168.3 MB / 0.7448 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1788/0.1788, allocations: 142.3 MB / 1.205 GB, free: 26.27 MB / 0.7448 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.5328/0.7116, allocations: 191.2 MB / 1.392 GB, free: 2.391 MB / 0.823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002272/0.7119, allocations: 85.02 kB / 1.392 GB, free: 2.348 MB / 0.823 GB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/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 9.1.1-maint.9.1.x/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 9.1.1-maint.9.1.x/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.09955/0.8114, allocations: 49.34 MB / 1.44 GB, free: 9.668 MB / 0.8698 GB Notification: Performance of Transformations before backend: time 4.63e-05/0.8115, allocations: 20 kB / 1.44 GB, free: 9.648 MB / 0.8698 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.001567/0.8131, allocations: 0.9041 MB / 1.441 GB, free: 8.742 MB / 0.8698 GB Notification: Performance of prepare preOptimizeDAE: time 3.268e-05/0.8131, allocations: 12.03 kB / 1.441 GB, free: 8.73 MB / 0.8698 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003361/0.8165, allocations: 0.6207 MB / 1.442 GB, free: 8.121 MB / 0.8698 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001068/0.8176, allocations: 0.586 MB / 1.442 GB, free: 7.586 MB / 0.8698 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.152e-05/0.8176, allocations: 20 kB / 1.442 GB, free: 7.566 MB / 0.8698 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.823e-05/0.8177, allocations: 28 kB / 1.442 GB, free: 7.539 MB / 0.8698 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.00103/0.8188, allocations: 0.7216 MB / 1.443 GB, free: 7.082 MB / 0.8698 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001154/0.8199, allocations: 0.8181 MB / 1.444 GB, free: 6.438 MB / 0.8698 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.523e-05/0.8199, allocations: 0 / 1.444 GB, free: 6.438 MB / 0.8698 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.08e-05/0.82, allocations: 0 / 1.444 GB, free: 6.438 MB / 0.8698 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.281e-05/0.8201, allocations: 37.3 kB / 1.444 GB, free: 6.402 MB / 0.8698 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003848/0.8239, allocations: 3.457 MB / 1.447 GB, free: 3.094 MB / 0.8698 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004399/0.8244, allocations: 271.7 kB / 1.448 GB, free: 2.902 MB / 0.8698 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.00022/0.8246, allocations: 166.3 kB / 1.448 GB, free: 2.793 MB / 0.8698 GB Notification: Performance of preOpt evalFunc (simulation): time 3.383e-05/0.8246, allocations: 15.03 kB / 1.448 GB, free: 2.781 MB / 0.8698 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.771e-05/0.8247, allocations: 39.03 kB / 1.448 GB, free: 2.738 MB / 0.8698 GB Notification: Performance of pre-optimization done (n=31): time 1.533e-06/0.8247, allocations: 0 / 1.448 GB, free: 2.738 MB / 0.8698 GB Notification: Performance of matching and sorting (n=43): time 0.002441/0.8271, allocations: 1.14 MB / 1.449 GB, free: 1.797 MB / 0.8698 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.475e-05/0.8272, allocations: 136.5 kB / 1.449 GB, free: 1.633 MB / 0.8698 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004001/0.8276, allocations: 392.2 kB / 1.449 GB, free: 1.324 MB / 0.8698 GB Notification: Performance of collectPreVariables (initialization): time 3.659e-05/0.8276, allocations: 25.7 kB / 1.449 GB, free: 1.293 MB / 0.8698 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001338/0.8278, allocations: 294.9 kB / 1.45 GB, free: 1.027 MB / 0.8698 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001041/0.8279, allocations: 144.6 kB / 1.45 GB, free: 0.9023 MB / 0.8698 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.689e-05/0.8279, allocations: 3.938 kB / 1.45 GB, free: 0.8984 MB / 0.8698 GB Notification: Performance of setup shared object (initialization): time 0.0001225/0.828, allocations: 374.2 kB / 1.45 GB, free: 0.5469 MB / 0.8698 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002528/0.8283, allocations: 182.8 kB / 1.45 GB, free: 444 kB / 0.8698 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00031/0.8286, allocations: 305.5 kB / 1.451 GB, free: 156 kB / 0.8698 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000306/0.8289, allocations: 222.3 kB / 1.451 GB, free: 4 kB / 0.8698 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.494e-06/0.8289, allocations: 4 kB / 1.451 GB, free: 0 / 0.8698 GB Notification: Performance of matching and sorting (n=59) (initialization): time 0.001426/0.8304, allocations: 0.7352 MB / 1.452 GB, free: 15.4 MB / 0.8855 GB Notification: Performance of prepare postOptimizeDAE: time 0.0003693/0.8308, allocations: 1.221 MB / 1.453 GB, free: 14.11 MB / 0.8855 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.544e-06/0.8308, allocations: 4 kB / 1.453 GB, free: 14.1 MB / 0.8855 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009111/0.8317, allocations: 233 kB / 1.453 GB, free: 13.89 MB / 0.8855 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006261/0.8323, allocations: 135.2 kB / 1.453 GB, free: 13.76 MB / 0.8855 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003944/0.8363, allocations: 5.709 MB / 1.459 GB, free: 7.902 MB / 0.8855 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005742/0.8369, allocations: 51.97 kB / 1.459 GB, free: 7.852 MB / 0.8855 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.521e-05/0.8369, allocations: 23.61 kB / 1.459 GB, free: 7.832 MB / 0.8855 GB Notification: Performance of prepare postOptimizeDAE: time 5.721e-06/0.8369, allocations: 4 kB / 1.459 GB, free: 7.828 MB / 0.8855 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001217/0.8382, allocations: 1.03 MB / 1.46 GB, free: 6.809 MB / 0.8855 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.861e-06/0.8382, allocations: 4 kB / 1.46 GB, free: 6.805 MB / 0.8855 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003242/0.8385, allocations: 136.4 kB / 1.46 GB, free: 6.672 MB / 0.8855 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006554/0.8392, allocations: 147.8 kB / 1.46 GB, free: 6.531 MB / 0.8855 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004514/0.8437, allocations: 7.477 MB / 1.467 GB, free: 14.62 MB / 0.9011 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005077/0.8442, allocations: 51.95 kB / 1.467 GB, free: 14.57 MB / 0.9011 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.929e-05/0.8443, allocations: 19.94 kB / 1.467 GB, free: 14.56 MB / 0.9011 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.00013/0.8444, allocations: 119.6 kB / 1.468 GB, free: 14.44 MB / 0.9011 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001006/0.8445, allocations: 63.23 kB / 1.468 GB, free: 14.38 MB / 0.9011 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001151/0.8446, allocations: 71.66 kB / 1.468 GB, free: 14.34 MB / 0.9011 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.149e-06/0.8446, allocations: 8 kB / 1.468 GB, free: 14.33 MB / 0.9011 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.374e-06/0.8446, allocations: 4 kB / 1.468 GB, free: 14.33 MB / 0.9011 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.627e-05/0.8447, allocations: 3.984 kB / 1.468 GB, free: 14.32 MB / 0.9011 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000633/0.8453, allocations: 0.56 MB / 1.468 GB, free: 13.86 MB / 0.9011 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.396e-06/0.8453, allocations: 0 / 1.468 GB, free: 13.86 MB / 0.9011 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000529/0.8459, allocations: 111.8 kB / 1.468 GB, free: 13.75 MB / 0.9011 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008104/0.8467, allocations: 235.5 kB / 1.469 GB, free: 13.54 MB / 0.9011 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.38e-05/0.8467, allocations: 11.67 kB / 1.469 GB, free: 13.53 MB / 0.9011 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005511/0.8522, allocations: 7.913 MB / 1.476 GB, free: 5.32 MB / 0.9011 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.034e-06/0.8522, allocations: 192 / 1.476 GB, free: 5.32 MB / 0.9011 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.001282/0.8535, allocations: 0.7426 MB / 1.477 GB, free: 4.688 MB / 0.9011 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002332/0.8538, allocations: 178.7 kB / 1.477 GB, free: 4.516 MB / 0.9011 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.131e-05/0.8539, allocations: 7.906 kB / 1.477 GB, free: 4.508 MB / 0.9011 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005161/0.8544, allocations: 56.69 kB / 1.477 GB, free: 4.453 MB / 0.9011 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.755e-05/0.8545, allocations: 27.23 kB / 1.477 GB, free: 4.43 MB / 0.9011 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.332e-05/0.8545, allocations: 14.3 kB / 1.477 GB, free: 4.418 MB / 0.9011 GB Notification: Performance of sort global known variables: time 0.0003009/0.8548, allocations: 302.2 kB / 1.478 GB, free: 4.199 MB / 0.9011 GB Notification: Performance of remove unused functions: time 0.0008409/0.8557, allocations: 259.9 kB / 1.478 GB, free: 3.945 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.0001689/0.8558, allocations: 119.2 kB / 1.478 GB, free: 3.82 MB / 0.9011 GB Notification: Performance of simCode: created initialization part: time 0.002134/0.858, allocations: 1.696 MB / 1.48 GB, free: 2.27 MB / 0.9011 GB Notification: Performance of simCode: created event and clocks part: time 2.706e-06/0.858, allocations: 0 / 1.48 GB, free: 2.27 MB / 0.9011 GB Notification: Performance of simCode: created simulation system equations: time 0.0008386/0.8588, allocations: 0.8555 MB / 1.48 GB, free: 1.441 MB / 0.9011 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006983/0.8596, allocations: 167.3 kB / 1.481 GB, free: 1.312 MB / 0.9011 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001897/0.8615, allocations: 0.9189 MB / 1.481 GB, free: 484 kB / 0.9011 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006672/0.8621, allocations: 1.02 MB / 1.482 GB, free: 15.45 MB / 0.9167 GB Notification: Performance of SimCode: time 2.5e-07/0.8622, allocations: 0 / 1.482 GB, free: 15.45 MB / 0.9167 GB Notification: Performance of Templates: time 0.0215/0.8837, allocations: 14.06 MB / 1.496 GB, free: 1.512 MB / 0.9167 GB make -j1 -f Buildings_9_Buildings.Electrical.DC.Lines.Examples.DCLine.makefile (rm -f Buildings_9_Buildings.Electrical.DC.Lines.Examples.DCLine.pipe ; mkfifo Buildings_9_Buildings.Electrical.DC.Lines.Examples.DCLine.pipe ; head -c 1048576 < Buildings_9_Buildings.Electrical.DC.Lines.Examples.DCLine.pipe >> ../files/Buildings_9_Buildings.Electrical.DC.Lines.Examples.DCLine.sim & ./Buildings_9_Buildings.Electrical.DC.Lines.Examples.DCLine -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Electrical.DC.Lines.Examples.DCLine.pipe 2>&1)