Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_9_Buildings.Electrical.DC.Lines.Examples.DCLines.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.DCLines,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|Sloads|E.S.1.",fileNamePrefix="Buildings_9_Buildings.Electrical.DC.Lines.Examples.DCLines") translateModel(Buildings.Electrical.DC.Lines.Examples.DCLines,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|Sloads|E.S.1.",fileNamePrefix="Buildings_9_Buildings.Electrical.DC.Lines.Examples.DCLines") [: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.78/1.78, allocations: 387.2 MB / 394.5 MB, free: 13.69 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.0009857/0.0009857, allocations: 169.3 kB / 487 MB, free: 5.371 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.095/1.095, allocations: 221.3 MB / 0.7819 GB, free: 1.363 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.000804/0.0008043, allocations: 91.58 kB / 0.9213 GB, free: 2.613 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 4.699e-06/4.789e-06, allocations: 0 / 1.066 GB, free: 168.2 MB / 0.7448 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1739/0.1739, allocations: 142.3 MB / 1.205 GB, free: 26.2 MB / 0.7448 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.5227/0.6966, allocations: 200.6 MB / 1.401 GB, free: 9.48 MB / 0.8386 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002008/0.6969, allocations: 90.25 kB / 1.401 GB, free: 9.434 MB / 0.8386 GB [/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.427/1.124, allocations: 217.2 MB / 1.613 GB, free: 11.52 MB / 1.042 GB Notification: Performance of Transformations before backend: time 0.0001705/1.124, allocations: 83.92 kB / 1.613 GB, free: 11.44 MB / 1.042 GB 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.006088/1.13, allocations: 3.496 MB / 1.617 GB, free: 7.84 MB / 1.042 GB Notification: Performance of prepare preOptimizeDAE: time 3.271e-05/1.13, allocations: 15.97 kB / 1.617 GB, free: 7.824 MB / 1.042 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01564/1.146, allocations: 3.191 MB / 1.62 GB, free: 4.625 MB / 1.042 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004232/1.15, allocations: 2.319 MB / 1.622 GB, free: 2.234 MB / 1.042 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.745e-05/1.15, allocations: 80 kB / 1.622 GB, free: 2.156 MB / 1.042 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003783/1.151, allocations: 140 kB / 1.622 GB, free: 2.02 MB / 1.042 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.005054/1.156, allocations: 3.508 MB / 1.626 GB, free: 14.5 MB / 1.057 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004926/1.161, allocations: 3.564 MB / 1.629 GB, free: 10.8 MB / 1.057 GB Notification: Performance of preOpt findStateOrder (simulation): time 4.371e-05/1.161, allocations: 7.906 kB / 1.629 GB, free: 10.8 MB / 1.057 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002797/1.161, allocations: 8 kB / 1.629 GB, free: 10.79 MB / 1.057 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001162/1.161, allocations: 152.8 kB / 1.629 GB, free: 10.64 MB / 1.057 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0175/1.179, allocations: 14.02 MB / 1.643 GB, free: 11.46 MB / 1.073 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001304/1.18, allocations: 1.068 MB / 1.644 GB, free: 10.38 MB / 1.073 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001233/1.181, allocations: 1.034 MB / 1.645 GB, free: 9.352 MB / 1.073 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001007/1.181, allocations: 25.28 kB / 1.645 GB, free: 9.324 MB / 1.073 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001543/1.183, allocations: 1.294 MB / 1.646 GB, free: 7.965 MB / 1.073 GB Notification: Performance of pre-optimization done (n=163): time 3.327e-06/1.183, allocations: 0 / 1.646 GB, free: 7.965 MB / 1.073 GB Notification: Performance of matching and sorting (n=250): time 0.01594/1.199, allocations: 7.729 MB / 1.654 GB, free: 192 kB / 1.073 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002717/1.199, allocations: 0.8944 MB / 1.655 GB, free: 15.08 MB / 1.089 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00185/1.201, allocations: 1.564 MB / 1.656 GB, free: 13.51 MB / 1.089 GB Notification: Performance of collectPreVariables (initialization): time 0.0001791/1.201, allocations: 37.69 kB / 1.656 GB, free: 13.46 MB / 1.089 GB Notification: Performance of collectInitialEqns (initialization): time 0.0006276/1.202, allocations: 0.9626 MB / 1.657 GB, free: 12.49 MB / 1.089 GB Notification: Performance of collectInitialBindings (initialization): time 0.0006074/1.202, allocations: 0.7851 MB / 1.658 GB, free: 11.69 MB / 1.089 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001609/1.202, allocations: 0 / 1.658 GB, free: 11.69 MB / 1.089 GB Notification: Performance of setup shared object (initialization): time 0.0001358/1.203, allocations: 394.7 kB / 1.659 GB, free: 11.3 MB / 1.089 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00167/1.204, allocations: 1.246 MB / 1.66 GB, free: 10.05 MB / 1.089 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001909/1.206, allocations: 1.618 MB / 1.661 GB, free: 8.297 MB / 1.089 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001743/1.208, allocations: 1.339 MB / 1.663 GB, free: 6.938 MB / 1.089 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.198e-06/1.208, allocations: 0 / 1.663 GB, free: 6.938 MB / 1.089 GB Notification: Performance of matching and sorting (n=299) (initialization): time 0.007981/1.216, allocations: 4.428 MB / 1.667 GB, free: 2.457 MB / 1.089 GB Notification: Performance of prepare postOptimizeDAE: time 0.0005719/1.217, allocations: 2.271 MB / 1.669 GB, free: 15.99 MB / 1.104 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.428e-05/1.217, allocations: 4 kB / 1.669 GB, free: 15.98 MB / 1.104 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.005336/1.222, allocations: 1.634 MB / 1.671 GB, free: 14.34 MB / 1.104 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002958/1.225, allocations: 0.6358 MB / 1.671 GB, free: 13.71 MB / 1.104 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01213/1.237, allocations: 8.715 MB / 1.68 GB, free: 4.848 MB / 1.104 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003835/1.241, allocations: 411.6 kB / 1.68 GB, free: 4.445 MB / 1.104 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002929/1.241, allocations: 91.95 kB / 1.68 GB, free: 4.355 MB / 1.104 GB Notification: Performance of prepare postOptimizeDAE: time 7.484e-06/1.241, allocations: 4 kB / 1.68 GB, free: 4.352 MB / 1.104 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.006449/1.248, allocations: 3.68 MB / 1.684 GB, free: 0.625 MB / 1.104 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.005e-05/1.248, allocations: 8.375 kB / 1.684 GB, free: 0.6172 MB / 1.104 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.003571/1.251, allocations: 1.437 MB / 1.685 GB, free: 15.17 MB / 1.12 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003035/1.254, allocations: 0.6827 MB / 1.686 GB, free: 14.48 MB / 1.12 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01574/1.27, allocations: 11.13 MB / 1.697 GB, free: 3.121 MB / 1.12 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003681/1.274, allocations: 419.4 kB / 1.697 GB, free: 2.711 MB / 1.12 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002401/1.274, allocations: 87.97 kB / 1.697 GB, free: 2.625 MB / 1.12 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.000523/1.275, allocations: 157.3 kB / 1.698 GB, free: 2.469 MB / 1.12 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004263/1.275, allocations: 308.4 kB / 1.698 GB, free: 2.164 MB / 1.12 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006616/1.276, allocations: 341.2 kB / 1.698 GB, free: 1.82 MB / 1.12 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.672e-05/1.276, allocations: 28 kB / 1.698 GB, free: 1.793 MB / 1.12 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.333e-05/1.276, allocations: 8 kB / 1.698 GB, free: 1.785 MB / 1.12 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.888e-05/1.276, allocations: 15.86 kB / 1.698 GB, free: 1.77 MB / 1.12 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003342/1.279, allocations: 2.853 MB / 1.701 GB, free: 14.88 MB / 1.135 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.382e-06/1.279, allocations: 3.906 kB / 1.701 GB, free: 14.87 MB / 1.135 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002624/1.282, allocations: 0.5696 MB / 1.702 GB, free: 14.3 MB / 1.135 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.005251/1.287, allocations: 1.65 MB / 1.703 GB, free: 12.64 MB / 1.135 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001742/1.287, allocations: 15.97 kB / 1.703 GB, free: 12.62 MB / 1.135 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01738/1.305, allocations: 12.67 MB / 1.716 GB, free: 15.71 MB / 1.151 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.836e-06/1.305, allocations: 0 / 1.716 GB, free: 15.71 MB / 1.151 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.007689/1.312, allocations: 4.237 MB / 1.72 GB, free: 11.45 MB / 1.151 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001191/1.313, allocations: 0.6457 MB / 1.72 GB, free: 10.79 MB / 1.151 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004904/1.314, allocations: 8 kB / 1.72 GB, free: 10.78 MB / 1.151 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003007/1.317, allocations: 423.5 kB / 1.721 GB, free: 10.36 MB / 1.151 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005275/1.318, allocations: 233.5 kB / 1.721 GB, free: 10.14 MB / 1.151 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000191/1.318, allocations: 71.97 kB / 1.721 GB, free: 10.07 MB / 1.151 GB Notification: Performance of sort global known variables: time 0.001438/1.319, allocations: 1.161 MB / 1.722 GB, free: 8.898 MB / 1.151 GB Notification: Performance of remove unused functions: time 0.00296/1.322, allocations: 1.355 MB / 1.724 GB, free: 7.543 MB / 1.151 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.000324/1.322, allocations: 144 kB / 1.724 GB, free: 7.391 MB / 1.151 GB Notification: Performance of simCode: created initialization part: time 0.01169/1.334, allocations: 6.886 MB / 1.73 GB, free: 412 kB / 1.151 GB Notification: Performance of simCode: created event and clocks part: time 4.739e-06/1.334, allocations: 4.75 kB / 1.73 GB, free: 408 kB / 1.151 GB Notification: Performance of simCode: created simulation system equations: time 0.29/1.624, allocations: 2.485 MB / 1.733 GB, free: 421.9 MB / 1.151 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003253/1.627, allocations: 0.8299 MB / 1.734 GB, free: 421.9 MB / 1.151 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008524/1.636, allocations: 5.195 MB / 1.739 GB, free: 420.8 MB / 1.151 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002019/1.638, allocations: 2.409 MB / 1.741 GB, free: 420 MB / 1.151 GB Notification: Performance of SimCode: time 8.92e-07/1.638, allocations: 3.844 kB / 1.741 GB, free: 420 MB / 1.151 GB Notification: Performance of Templates: time 0.09386/1.732, allocations: 85.19 MB / 1.824 GB, free: 417.7 MB / 1.151 GB make -j1 -f Buildings_9_Buildings.Electrical.DC.Lines.Examples.DCLines.makefile (rm -f Buildings_9_Buildings.Electrical.DC.Lines.Examples.DCLines.pipe ; mkfifo Buildings_9_Buildings.Electrical.DC.Lines.Examples.DCLines.pipe ; head -c 1048576 < Buildings_9_Buildings.Electrical.DC.Lines.Examples.DCLines.pipe >> ../files/Buildings_9_Buildings.Electrical.DC.Lines.Examples.DCLines.sim & ./Buildings_9_Buildings.Electrical.DC.Lines.Examples.DCLines -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Electrical.DC.Lines.Examples.DCLines.pipe 2>&1)