Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_latest_Buildings.Electrical.DC.Lines.Examples.DCLinesLinearized.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.DCLinesLinearized,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|Sloads|E.S.1.",fileNamePrefix="Buildings_latest_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_latest_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 10.0.0-master/package.mo): time 1.725/1.725, allocations: 390.4 MB / 397.7 MB, free: 11.27 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.0009213/0.0009213, allocations: 177.3 kB / 490.8 MB, free: 1.961 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.058/1.058, allocations: 221.3 MB / 0.7863 GB, free: 13.68 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.0008093/0.0008095, allocations: 87.75 kB / 0.9264 GB, free: 14.2 MB / 0.698 GB Notification: Performance of FrontEnd - loaded program: time 5.971e-06/5.991e-06, allocations: 4 kB / 1.072 GB, free: 182.6 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1645/0.1646, allocations: 143 MB / 1.212 GB, free: 40.12 MB / 0.7605 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.4688/0.6334, allocations: 201.4 MB / 1.408 GB, free: 0.5234 MB / 0.823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001863/0.6337, allocations: 96.84 kB / 1.408 GB, free: 484 kB / 0.823 GB [/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.4256/1.059, allocations: 218.9 MB / 1.622 GB, free: 1.633 MB / 1.026 GB Notification: Performance of Transformations before backend: time 0.0002167/1.059, allocations: 87.86 kB / 1.622 GB, free: 1.547 MB / 1.026 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.008296/1.068, allocations: 3.781 MB / 1.626 GB, free: 13.66 MB / 1.042 GB Notification: Performance of prepare preOptimizeDAE: time 3.095e-05/1.068, allocations: 8.031 kB / 1.626 GB, free: 13.66 MB / 1.042 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01576/1.084, allocations: 3.191 MB / 1.629 GB, free: 10.46 MB / 1.042 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005402/1.089, allocations: 2.572 MB / 1.632 GB, free: 7.812 MB / 1.042 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002533/1.089, allocations: 381.7 kB / 1.632 GB, free: 7.375 MB / 1.042 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003682/1.09, allocations: 144 kB / 1.632 GB, free: 7.234 MB / 1.042 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.005095/1.095, allocations: 3.586 MB / 1.636 GB, free: 3.641 MB / 1.042 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00506/1.1, allocations: 3.688 MB / 1.639 GB, free: 15.82 MB / 1.057 GB Notification: Performance of preOpt findStateOrder (simulation): time 4.173e-05/1.1, allocations: 0 / 1.639 GB, free: 15.82 MB / 1.057 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002815/1.1, allocations: 8 kB / 1.639 GB, free: 15.81 MB / 1.057 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001137/1.1, allocations: 152.8 kB / 1.639 GB, free: 15.66 MB / 1.057 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01788/1.118, allocations: 14.54 MB / 1.653 GB, free: 15.96 MB / 1.073 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001373/1.12, allocations: 1.135 MB / 1.655 GB, free: 14.82 MB / 1.073 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001331/1.121, allocations: 1.101 MB / 1.656 GB, free: 13.71 MB / 1.073 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001091/1.121, allocations: 25.3 kB / 1.656 GB, free: 13.69 MB / 1.073 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001589/1.123, allocations: 1.367 MB / 1.657 GB, free: 12.26 MB / 1.073 GB Notification: Performance of pre-optimization done (n=163): time 2.314e-06/1.123, allocations: 0 / 1.657 GB, free: 12.26 MB / 1.073 GB Notification: Performance of matching and sorting (n=250): time 0.01992/1.143, allocations: 8.681 MB / 1.665 GB, free: 3.543 MB / 1.073 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002615/1.143, allocations: 0.9022 MB / 1.666 GB, free: 2.43 MB / 1.073 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001726/1.145, allocations: 1.568 MB / 1.668 GB, free: 0.8477 MB / 1.073 GB Notification: Performance of collectPreVariables (initialization): time 0.0001842/1.145, allocations: 33.7 kB / 1.668 GB, free: 0.8086 MB / 1.073 GB Notification: Performance of collectInitialEqns (initialization): time 0.0005243/1.145, allocations: 0.951 MB / 1.669 GB, free: 15.84 MB / 1.089 GB Notification: Performance of collectInitialBindings (initialization): time 0.0006221/1.146, allocations: 0.789 MB / 1.67 GB, free: 15.04 MB / 1.089 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001742/1.146, allocations: 0 / 1.67 GB, free: 15.04 MB / 1.089 GB Notification: Performance of setup shared object (initialization): time 0.000133/1.146, allocations: 402.5 kB / 1.67 GB, free: 14.64 MB / 1.089 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001849/1.148, allocations: 1.406 MB / 1.671 GB, free: 13.23 MB / 1.089 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00211/1.15, allocations: 1.778 MB / 1.673 GB, free: 11.32 MB / 1.089 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001893/1.152, allocations: 1.483 MB / 1.675 GB, free: 9.82 MB / 1.089 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.26e-06/1.152, allocations: 4 kB / 1.675 GB, free: 9.816 MB / 1.089 GB Notification: Performance of matching and sorting (n=299) (initialization): time 0.0104/1.162, allocations: 5.139 MB / 1.68 GB, free: 4.617 MB / 1.089 GB Notification: Performance of prepare postOptimizeDAE: time 1.388e-05/1.162, allocations: 8 kB / 1.68 GB, free: 4.609 MB / 1.089 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.054e-05/1.163, allocations: 8.344 kB / 1.68 GB, free: 4.602 MB / 1.089 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.008648/1.171, allocations: 2.761 MB / 1.682 GB, free: 1.832 MB / 1.089 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002851/1.174, allocations: 0.6242 MB / 1.683 GB, free: 1.207 MB / 1.089 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02936/1.203, allocations: 15.48 MB / 1.698 GB, free: 1.477 MB / 1.104 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003445/1.207, allocations: 419.6 kB / 1.698 GB, free: 1.066 MB / 1.104 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002506/1.207, allocations: 91.97 kB / 1.699 GB, free: 0.9766 MB / 1.104 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.000434/1.208, allocations: 158.9 kB / 1.699 GB, free: 0.8164 MB / 1.104 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004209/1.208, allocations: 304.4 kB / 1.699 GB, free: 0.5156 MB / 1.104 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005017/1.209, allocations: 317.2 kB / 1.699 GB, free: 200 kB / 1.104 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.696e-05/1.209, allocations: 31.98 kB / 1.699 GB, free: 168 kB / 1.104 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.667e-05/1.209, allocations: 8 kB / 1.699 GB, free: 160 kB / 1.104 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.726e-05/1.209, allocations: 16.33 kB / 1.699 GB, free: 144 kB / 1.104 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00355/1.212, allocations: 3.328 MB / 1.703 GB, free: 12.77 MB / 1.12 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.819e-06/1.212, allocations: 0 / 1.703 GB, free: 12.77 MB / 1.12 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002557/1.215, allocations: 0.5541 MB / 1.703 GB, free: 12.21 MB / 1.12 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.008471/1.223, allocations: 2.741 MB / 1.706 GB, free: 9.461 MB / 1.12 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001948/1.223, allocations: 15.97 kB / 1.706 GB, free: 9.445 MB / 1.12 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02922/1.253, allocations: 15.48 MB / 1.721 GB, free: 9.73 MB / 1.135 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.134e-06/1.253, allocations: 0 / 1.721 GB, free: 9.73 MB / 1.135 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.009865/1.262, allocations: 4.959 MB / 1.726 GB, free: 4.746 MB / 1.135 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001122/1.264, allocations: 0.6769 MB / 1.726 GB, free: 4.047 MB / 1.135 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005249/1.264, allocations: 7.984 kB / 1.726 GB, free: 4.039 MB / 1.135 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003184/1.267, allocations: 435.4 kB / 1.727 GB, free: 3.613 MB / 1.135 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006682/1.268, allocations: 265.5 kB / 1.727 GB, free: 3.355 MB / 1.135 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002265/1.268, allocations: 71.97 kB / 1.727 GB, free: 3.285 MB / 1.135 GB Notification: Performance of sort global known variables: time 0.001317/1.27, allocations: 1.165 MB / 1.728 GB, free: 2.113 MB / 1.135 GB Notification: Performance of remove unused functions: time 0.001903/1.271, allocations: 0.8984 MB / 1.729 GB, free: 1.215 MB / 1.135 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.0003292/1.272, allocations: 134.6 kB / 1.729 GB, free: 1.074 MB / 1.135 GB Notification: Performance of simCode: created initialization part: time 0.01497/1.287, allocations: 4.931 MB / 1.734 GB, free: 12.09 MB / 1.151 GB Notification: Performance of simCode: created event and clocks part: time 6.743e-06/1.287, allocations: 8.75 kB / 1.734 GB, free: 12.08 MB / 1.151 GB Notification: Performance of simCode: created simulation system equations: time 0.01272/1.3, allocations: 3.177 MB / 1.737 GB, free: 8.875 MB / 1.151 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002869/1.302, allocations: 0.8341 MB / 1.738 GB, free: 8.047 MB / 1.151 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00908/1.312, allocations: 5.218 MB / 1.743 GB, free: 2.77 MB / 1.151 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002359/1.314, allocations: 2.397 MB / 1.745 GB, free: 344 kB / 1.151 GB Notification: Performance of SimCode: time 1.432e-06/1.314, allocations: 0 / 1.745 GB, free: 344 kB / 1.151 GB Notification: Performance of Templates: time 0.3265/1.64, allocations: 71.3 MB / 1.815 GB, free: 414.8 MB / 1.151 GB make -j1 -f Buildings_latest_Buildings.Electrical.DC.Lines.Examples.DCLinesLinearized.makefile (rm -f Buildings_latest_Buildings.Electrical.DC.Lines.Examples.DCLinesLinearized.pipe ; mkfifo Buildings_latest_Buildings.Electrical.DC.Lines.Examples.DCLinesLinearized.pipe ; head -c 1048576 < Buildings_latest_Buildings.Electrical.DC.Lines.Examples.DCLinesLinearized.pipe >> ../files/Buildings_latest_Buildings.Electrical.DC.Lines.Examples.DCLinesLinearized.sim & ./Buildings_latest_Buildings.Electrical.DC.Lines.Examples.DCLinesLinearized -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Electrical.DC.Lines.Examples.DCLinesLinearized.pipe 2>&1)