Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_9_Buildings.Electrical.DC.Lines.Examples.DCLinesLinearized.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.DCLinesLinearized,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|Sloads|E.S.1.",fileNamePrefix="Buildings_9_Buildings.Electrical.DC.Lines.Examples.DCLinesLinearized") translateModel(Buildings.Electrical.DC.Lines.Examples.DCLinesLinearized,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|Sloads|E.S.1.",fileNamePrefix="Buildings_9_Buildings.Electrical.DC.Lines.Examples.DCLinesLinearized") [: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.734/1.734, allocations: 387.2 MB / 394.5 MB, free: 13.7 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.0009496/0.0009496, allocations: 176.3 kB / 487 MB, free: 5.391 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.094/1.094, allocations: 221.3 MB / 0.7819 GB, free: 1.367 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.0008859/0.0008861, allocations: 90.44 kB / 0.9213 GB, free: 2.629 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 7.975e-06/7.985e-06, allocations: 4 kB / 1.066 GB, free: 168.3 MB / 0.7448 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1914/0.1914, allocations: 142.3 MB / 1.205 GB, free: 26.26 MB / 0.7448 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.5256/0.717, allocations: 200.6 MB / 1.401 GB, free: 9.352 MB / 0.8386 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001935/0.7172, allocations: 83.64 kB / 1.401 GB, free: 9.309 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.4346/1.152, allocations: 218.9 MB / 1.615 GB, free: 9.855 MB / 1.042 GB Notification: Performance of Transformations before backend: time 0.0001714/1.152, allocations: 83.92 kB / 1.615 GB, free: 9.773 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.007196/1.159, allocations: 3.785 MB / 1.619 GB, free: 5.887 MB / 1.042 GB Notification: Performance of prepare preOptimizeDAE: time 3.023e-05/1.159, allocations: 8.031 kB / 1.619 GB, free: 5.879 MB / 1.042 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01634/1.176, allocations: 3.195 MB / 1.622 GB, free: 2.676 MB / 1.042 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005736/1.181, allocations: 2.572 MB / 1.624 GB, free: 32 kB / 1.042 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000294/1.182, allocations: 385.8 kB / 1.625 GB, free: 15.59 MB / 1.057 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003863/1.182, allocations: 140 kB / 1.625 GB, free: 15.45 MB / 1.057 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.005423/1.187, allocations: 3.586 MB / 1.628 GB, free: 11.86 MB / 1.057 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005306/1.193, allocations: 3.688 MB / 1.632 GB, free: 8.035 MB / 1.057 GB Notification: Performance of preOpt findStateOrder (simulation): time 4.469e-05/1.193, allocations: 7.922 kB / 1.632 GB, free: 8.027 MB / 1.057 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002755/1.193, allocations: 4 kB / 1.632 GB, free: 8.023 MB / 1.057 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001208/1.193, allocations: 156.8 kB / 1.632 GB, free: 7.867 MB / 1.057 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01971/1.213, allocations: 14.52 MB / 1.646 GB, free: 8.184 MB / 1.073 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001486/1.214, allocations: 1.131 MB / 1.647 GB, free: 7.039 MB / 1.073 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001409/1.216, allocations: 1.101 MB / 1.648 GB, free: 5.941 MB / 1.073 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001205/1.216, allocations: 30.22 kB / 1.649 GB, free: 5.914 MB / 1.073 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001728/1.218, allocations: 1.366 MB / 1.65 GB, free: 4.48 MB / 1.073 GB Notification: Performance of pre-optimization done (n=163): time 3.436e-06/1.218, allocations: 0 / 1.65 GB, free: 4.48 MB / 1.073 GB Notification: Performance of matching and sorting (n=250): time 0.02038/1.238, allocations: 8.682 MB / 1.658 GB, free: 11.76 MB / 1.089 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002838/1.238, allocations: 0.9022 MB / 1.659 GB, free: 10.64 MB / 1.089 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001794/1.24, allocations: 1.564 MB / 1.661 GB, free: 9.07 MB / 1.089 GB Notification: Performance of collectPreVariables (initialization): time 0.0001909/1.24, allocations: 37.7 kB / 1.661 GB, free: 9.027 MB / 1.089 GB Notification: Performance of collectInitialEqns (initialization): time 0.0006095/1.241, allocations: 0.951 MB / 1.662 GB, free: 8.062 MB / 1.089 GB Notification: Performance of collectInitialBindings (initialization): time 0.0006391/1.242, allocations: 0.7889 MB / 1.662 GB, free: 7.262 MB / 1.089 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001768/1.242, allocations: 0 / 1.662 GB, free: 7.262 MB / 1.089 GB Notification: Performance of setup shared object (initialization): time 0.0001463/1.242, allocations: 398.7 kB / 1.663 GB, free: 6.867 MB / 1.089 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00189/1.244, allocations: 1.406 MB / 1.664 GB, free: 5.457 MB / 1.089 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002165/1.246, allocations: 1.778 MB / 1.666 GB, free: 3.547 MB / 1.089 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001956/1.248, allocations: 1.479 MB / 1.667 GB, free: 2.047 MB / 1.089 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.218e-06/1.248, allocations: 0 / 1.667 GB, free: 2.047 MB / 1.089 GB Notification: Performance of matching and sorting (n=299) (initialization): time 0.01076/1.259, allocations: 5.143 MB / 1.672 GB, free: 12.84 MB / 1.104 GB Notification: Performance of prepare postOptimizeDAE: time 1.475e-05/1.259, allocations: 8 kB / 1.672 GB, free: 12.84 MB / 1.104 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.451e-05/1.259, allocations: 4 kB / 1.672 GB, free: 12.83 MB / 1.104 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.008671/1.268, allocations: 2.773 MB / 1.675 GB, free: 10.05 MB / 1.104 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002893/1.27, allocations: 0.6203 MB / 1.676 GB, free: 9.43 MB / 1.104 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02995/1.3, allocations: 15.47 MB / 1.691 GB, free: 9.715 MB / 1.12 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003921/1.304, allocations: 435.5 kB / 1.691 GB, free: 9.289 MB / 1.12 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002713/1.305, allocations: 87.97 kB / 1.691 GB, free: 9.203 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 (162): * Single equations (assignments): 155 * 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 {9 63} Notification: Performance of prepare postOptimizeDAE: time 0.000488/1.305, allocations: 151 kB / 1.692 GB, free: 9.047 MB / 1.12 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000448/1.306, allocations: 308.4 kB / 1.692 GB, free: 8.742 MB / 1.12 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006226/1.306, allocations: 321.2 kB / 1.692 GB, free: 8.418 MB / 1.12 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.742e-05/1.306, allocations: 24.38 kB / 1.692 GB, free: 8.395 MB / 1.12 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.571e-05/1.306, allocations: 12 kB / 1.692 GB, free: 8.383 MB / 1.12 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.788e-05/1.306, allocations: 19.94 kB / 1.692 GB, free: 8.363 MB / 1.12 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003927/1.31, allocations: 3.34 MB / 1.695 GB, free: 4.977 MB / 1.12 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.314e-06/1.31, allocations: 7.922 kB / 1.695 GB, free: 4.969 MB / 1.12 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002519/1.313, allocations: 0.554 MB / 1.696 GB, free: 4.414 MB / 1.12 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.008353/1.321, allocations: 2.737 MB / 1.699 GB, free: 1.672 MB / 1.12 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002059/1.321, allocations: 11.97 kB / 1.699 GB, free: 1.66 MB / 1.12 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02983/1.351, allocations: 15.47 MB / 1.714 GB, free: 1.945 MB / 1.135 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.076e-06/1.351, allocations: 0 / 1.714 GB, free: 1.945 MB / 1.135 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.01051/1.362, allocations: 4.967 MB / 1.719 GB, free: 12.95 MB / 1.151 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001455/1.363, allocations: 0.673 MB / 1.719 GB, free: 12.26 MB / 1.151 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005343/1.364, allocations: 11.98 kB / 1.719 GB, free: 12.25 MB / 1.151 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00315/1.367, allocations: 427.4 kB / 1.72 GB, free: 11.83 MB / 1.151 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006755/1.368, allocations: 269.5 kB / 1.72 GB, free: 11.57 MB / 1.151 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002199/1.368, allocations: 75.97 kB / 1.72 GB, free: 11.49 MB / 1.151 GB Notification: Performance of sort global known variables: time 0.001482/1.369, allocations: 1.161 MB / 1.721 GB, free: 10.32 MB / 1.151 GB Notification: Performance of remove unused functions: time 0.002239/1.372, allocations: 0.8984 MB / 1.722 GB, free: 9.426 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 (118): * Single equations (assignments): 106 * 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 {8 64} Notification: Performance of Backend phase and start with SimCode phase: time 0.0003466/1.372, allocations: 137.3 kB / 1.722 GB, free: 9.281 MB / 1.151 GB Notification: Performance of simCode: created initialization part: time 0.01496/1.387, allocations: 4.931 MB / 1.727 GB, free: 4.293 MB / 1.151 GB Notification: Performance of simCode: created event and clocks part: time 6.022e-06/1.387, allocations: 8 kB / 1.727 GB, free: 4.285 MB / 1.151 GB Notification: Performance of simCode: created simulation system equations: time 0.01277/1.4, allocations: 3.185 MB / 1.73 GB, free: 1.074 MB / 1.151 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003289/1.403, allocations: 0.8333 MB / 1.731 GB, free: 256 kB / 1.151 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2861/1.689, allocations: 5.203 MB / 1.736 GB, free: 418.6 MB / 1.151 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002/1.691, allocations: 2.399 MB / 1.738 GB, free: 417.8 MB / 1.151 GB Notification: Performance of SimCode: time 7.71e-07/1.691, allocations: 0 / 1.738 GB, free: 417.8 MB / 1.151 GB Notification: Performance of Templates: time 0.07669/1.768, allocations: 71.3 MB / 1.808 GB, free: 416.2 MB / 1.151 GB make -j1 -f Buildings_9_Buildings.Electrical.DC.Lines.Examples.DCLinesLinearized.makefile (rm -f Buildings_9_Buildings.Electrical.DC.Lines.Examples.DCLinesLinearized.pipe ; mkfifo Buildings_9_Buildings.Electrical.DC.Lines.Examples.DCLinesLinearized.pipe ; head -c 1048576 < Buildings_9_Buildings.Electrical.DC.Lines.Examples.DCLinesLinearized.pipe >> ../files/Buildings_9_Buildings.Electrical.DC.Lines.Examples.DCLinesLinearized.sim & ./Buildings_9_Buildings.Electrical.DC.Lines.Examples.DCLinesLinearized -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Electrical.DC.Lines.Examples.DCLinesLinearized.pipe 2>&1)