Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_maint.7.0.x_Buildings.Electrical.DC.Lines.Examples.DCLinesLinearized.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Using package Buildings with version 7.0.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.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_maint.7.0.x_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_maint.7.0.x_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 7.0.3-maint.7.0.x/package.mo): time 1.169/1.169, allocations: 249.4 MB / 256.7 MB, free: 0.7266 MB / 194.8 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001069/0.001069, allocations: 184.5 kB / 316 MB, free: 8.934 MB / 258.8 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 0.996/0.996, allocations: 205.1 MB / 0.5667 GB, free: 13.46 MB / 434.8 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0007849/0.0007849, allocations: 86.33 kB / 0.671 GB, free: 51.57 MB / 498.8 MB Notification: Performance of FrontEnd - loaded program: time 5.26e-06/5.3e-06, allocations: 0 / 0.7807 GB, free: 10.01 MB / 0.5496 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3881/0.3881, allocations: 106.3 MB / 0.8846 GB, free: 89.41 MB / 0.6433 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.1683/0.5564, allocations: 182.7 MB / 1.063 GB, free: 11.05 MB / 0.7058 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002005/0.5567, allocations: 91.94 kB / 1.063 GB, free: 10.96 MB / 0.7058 GB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/Electrical/Interfaces/Source.mo:30:9-30: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 7.0.3-maint.7.0.x/Electrical/Transmission/BaseClasses/PartialTwoPortRLC.mo:18:3-18: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.5945/1.151, allocations: 148.1 MB / 1.208 GB, free: 167.9 MB / 0.8308 GB Notification: Performance of Transformations before backend: time 0.0001592/1.151, allocations: 81.52 kB / 1.208 GB, free: 167.9 MB / 0.8308 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.006663/1.158, allocations: 3.787 MB / 1.211 GB, free: 166.6 MB / 0.8308 GB Notification: Performance of prepare preOptimizeDAE: time 3.151e-05/1.158, allocations: 7.625 kB / 1.211 GB, free: 166.6 MB / 0.8308 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01494/1.173, allocations: 3.192 MB / 1.215 GB, free: 166.4 MB / 0.8308 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004996/1.178, allocations: 2.569 MB / 1.217 GB, free: 165.8 MB / 0.8308 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002071/1.178, allocations: 386.6 kB / 1.217 GB, free: 165.5 MB / 0.8308 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003568/1.179, allocations: 144 kB / 1.218 GB, free: 165.5 MB / 0.8308 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.004507/1.183, allocations: 3.583 MB / 1.221 GB, free: 165.5 MB / 0.8308 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004569/1.188, allocations: 3.686 MB / 1.225 GB, free: 165.1 MB / 0.8308 GB Notification: Performance of preOpt findStateOrder (simulation): time 4.362e-05/1.188, allocations: 0 / 1.225 GB, free: 165.1 MB / 0.8308 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000286/1.188, allocations: 3.781 kB / 1.225 GB, free: 165.1 MB / 0.8308 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.32e-05/1.188, allocations: 151.7 kB / 1.225 GB, free: 165.1 MB / 0.8308 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01612/1.204, allocations: 14.54 MB / 1.239 GB, free: 157.9 MB / 0.8308 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001233/1.205, allocations: 1.14 MB / 1.24 GB, free: 157.9 MB / 0.8308 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001165/1.207, allocations: 1.098 MB / 1.241 GB, free: 157.9 MB / 0.8308 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001125/1.207, allocations: 24.59 kB / 1.241 GB, free: 157.9 MB / 0.8308 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001432/1.208, allocations: 1.366 MB / 1.243 GB, free: 157.7 MB / 0.8308 GB Notification: Performance of pre-optimization done (n=163): time 2.936e-06/1.208, allocations: 0 / 1.243 GB, free: 157.7 MB / 0.8308 GB Notification: Performance of matching and sorting (n=250): time 0.01926/1.228, allocations: 8.69 MB / 1.251 GB, free: 156.7 MB / 0.8308 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001591/1.228, allocations: 0.9074 MB / 1.252 GB, free: 155.6 MB / 0.8308 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001693/1.229, allocations: 1.562 MB / 1.253 GB, free: 155.4 MB / 0.8308 GB Notification: Performance of collectPreVariables (initialization): time 0.0001978/1.23, allocations: 42.27 kB / 1.253 GB, free: 155.4 MB / 0.8308 GB Notification: Performance of collectInitialEqns (initialization): time 0.0005349/1.23, allocations: 0.9559 MB / 1.254 GB, free: 154.9 MB / 0.8308 GB Notification: Performance of collectInitialBindings (initialization): time 0.000521/1.231, allocations: 0.7865 MB / 1.255 GB, free: 154.4 MB / 0.8308 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001796/1.231, allocations: 0 / 1.255 GB, free: 154.4 MB / 0.8308 GB Notification: Performance of setup shared object (initialization): time 8.982e-05/1.231, allocations: 400 kB / 1.256 GB, free: 154 MB / 0.8308 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001681/1.233, allocations: 1.41 MB / 1.257 GB, free: 154 MB / 0.8308 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001839/1.234, allocations: 1.773 MB / 1.259 GB, free: 153.7 MB / 0.8308 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001692/1.236, allocations: 1.48 MB / 1.26 GB, free: 153.6 MB / 0.8308 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.129e-06/1.236, allocations: 3.625 kB / 1.26 GB, free: 153.6 MB / 0.8308 GB Notification: Performance of matching and sorting (n=299) (initialization): time 0.009796/1.246, allocations: 5.146 MB / 1.265 GB, free: 153.3 MB / 0.8308 GB Notification: Performance of prepare postOptimizeDAE: time 1.225e-05/1.246, allocations: 3.625 kB / 1.265 GB, free: 153.3 MB / 0.8308 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.212e-05/1.246, allocations: 7.562 kB / 1.265 GB, free: 153.3 MB / 0.8308 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.008296/1.254, allocations: 2.767 MB / 1.268 GB, free: 153.1 MB / 0.8308 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002806/1.257, allocations: 0.6223 MB / 1.268 GB, free: 153.1 MB / 0.8308 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02802/1.285, allocations: 15.47 MB / 1.284 GB, free: 150.2 MB / 0.8308 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00386/1.289, allocations: 427.2 kB / 1.284 GB, free: 150.2 MB / 0.8308 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002534/1.289, allocations: 89.06 kB / 1.284 GB, free: 150.2 MB / 0.8308 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.0004878/1.29, allocations: 151.9 kB / 1.284 GB, free: 150 MB / 0.8308 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004087/1.29, allocations: 311.6 kB / 1.284 GB, free: 149.9 MB / 0.8308 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005526/1.291, allocations: 314.3 kB / 1.285 GB, free: 149.9 MB / 0.8308 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.772e-05/1.291, allocations: 23.38 kB / 1.285 GB, free: 149.9 MB / 0.8308 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.75e-05/1.291, allocations: 11 kB / 1.285 GB, free: 149.9 MB / 0.8308 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.638e-05/1.291, allocations: 13.97 kB / 1.285 GB, free: 149.9 MB / 0.8308 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003496/1.294, allocations: 3.326 MB / 1.288 GB, free: 149.5 MB / 0.8308 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.39e-06/1.294, allocations: 3.281 kB / 1.288 GB, free: 149.5 MB / 0.8308 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002583/1.297, allocations: 0.5582 MB / 1.289 GB, free: 149.5 MB / 0.8308 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.008567/1.306, allocations: 2.737 MB / 1.291 GB, free: 149.3 MB / 0.8308 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002076/1.306, allocations: 16.64 kB / 1.291 GB, free: 149.3 MB / 0.8308 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02941/1.335, allocations: 15.47 MB / 1.306 GB, free: 146.5 MB / 0.8308 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.978e-06/1.335, allocations: 4 kB / 1.306 GB, free: 146.5 MB / 0.8308 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.01018/1.345, allocations: 4.964 MB / 1.311 GB, free: 146.1 MB / 0.8308 GB Notification: Performance of postOpt removeConstants (simulation): time 0.00126/1.347, allocations: 0.6792 MB / 1.312 GB, free: 145.8 MB / 0.8308 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005356/1.347, allocations: 5.75 kB / 1.312 GB, free: 145.8 MB / 0.8308 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003272/1.351, allocations: 429.3 kB / 1.312 GB, free: 145.8 MB / 0.8308 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006736/1.351, allocations: 268.4 kB / 1.313 GB, free: 145.8 MB / 0.8308 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002297/1.351, allocations: 73 kB / 1.313 GB, free: 145.8 MB / 0.8308 GB Notification: Performance of sort global known variables: time 0.001571/1.353, allocations: 1.161 MB / 1.314 GB, free: 145.7 MB / 0.8308 GB Notification: Performance of remove unused functions: time 0.00259/1.356, allocations: 0.89 MB / 1.315 GB, free: 145.6 MB / 0.8308 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.0003348/1.356, allocations: 150.7 kB / 1.315 GB, free: 145.4 MB / 0.8308 GB Notification: Performance of simCode: created initialization part: time 0.01471/1.371, allocations: 4.936 MB / 1.32 GB, free: 142.3 MB / 0.8308 GB Notification: Performance of simCode: created event and clocks part: time 4.118e-06/1.371, allocations: 7.781 kB / 1.32 GB, free: 142.3 MB / 0.8308 GB Notification: Performance of simCode: created simulation system equations: time 0.01309/1.384, allocations: 3.176 MB / 1.323 GB, free: 140 MB / 0.8308 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003702/1.388, allocations: 0.8438 MB / 1.324 GB, free: 139.4 MB / 0.8308 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009761/1.397, allocations: 5.209 MB / 1.329 GB, free: 134.7 MB / 0.8308 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002059/1.399, allocations: 2.403 MB / 1.331 GB, free: 132.8 MB / 0.8308 GB Notification: Performance of SimCode: time 1.533e-06/1.399, allocations: 0 / 1.331 GB, free: 132.8 MB / 0.8308 GB Notification: Performance of Templates: time 0.08094/1.48, allocations: 71.32 MB / 1.401 GB, free: 70.57 MB / 0.8308 GB make -j1 -f Buildings_maint.7.0.x_Buildings.Electrical.DC.Lines.Examples.DCLinesLinearized.makefile (rm -f Buildings_maint.7.0.x_Buildings.Electrical.DC.Lines.Examples.DCLinesLinearized.pipe ; mkfifo Buildings_maint.7.0.x_Buildings.Electrical.DC.Lines.Examples.DCLinesLinearized.pipe ; head -c 1048576 < Buildings_maint.7.0.x_Buildings.Electrical.DC.Lines.Examples.DCLinesLinearized.pipe >> ../files/Buildings_maint.7.0.x_Buildings.Electrical.DC.Lines.Examples.DCLinesLinearized.sim & ./Buildings_maint.7.0.x_Buildings.Electrical.DC.Lines.Examples.DCLinesLinearized -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_maint.7.0.x_Buildings.Electrical.DC.Lines.Examples.DCLinesLinearized.pipe 2>&1)