Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_latest_Buildings.Electrical.DC.Lines.Examples.DCLines.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.DCLines,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|Sloads|E.S.1.",fileNamePrefix="Buildings_latest_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_latest_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 10.0.0-master/package.mo): time 1.705/1.705, allocations: 390.4 MB / 397.7 MB, free: 11.2 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.0009158/0.0009158, allocations: 193.2 kB / 490.8 MB, free: 1.902 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.053/1.053, allocations: 221.4 MB / 0.7863 GB, free: 13.64 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.0008289/0.0008289, allocations: 92.66 kB / 0.9264 GB, free: 14.18 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.1609/0.1609, allocations: 143 MB / 1.212 GB, free: 40.12 MB / 0.7605 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.4723/0.6332, allocations: 201.4 MB / 1.408 GB, free: 0.582 MB / 0.823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001852/0.6334, allocations: 85.02 kB / 1.408 GB, free: 0.5391 MB / 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.4164/1.05, allocations: 217.3 MB / 1.62 GB, free: 3.297 MB / 1.026 GB Notification: Performance of Transformations before backend: time 0.0002312/1.05, allocations: 83.92 kB / 1.621 GB, free: 3.215 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.007025/1.057, allocations: 3.5 MB / 1.624 GB, free: 15.61 MB / 1.042 GB Notification: Performance of prepare preOptimizeDAE: time 3.084e-05/1.057, allocations: 8.031 kB / 1.624 GB, free: 15.6 MB / 1.042 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01559/1.073, allocations: 3.179 MB / 1.627 GB, free: 12.41 MB / 1.042 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00444/1.077, allocations: 2.319 MB / 1.629 GB, free: 10.03 MB / 1.042 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.193e-05/1.077, allocations: 79.98 kB / 1.629 GB, free: 9.949 MB / 1.042 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004313/1.078, allocations: 136 kB / 1.63 GB, free: 9.816 MB / 1.042 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.005148/1.083, allocations: 3.512 MB / 1.633 GB, free: 6.297 MB / 1.042 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005132/1.088, allocations: 3.571 MB / 1.636 GB, free: 2.586 MB / 1.042 GB Notification: Performance of preOpt findStateOrder (simulation): time 4.33e-05/1.088, allocations: 3.938 kB / 1.636 GB, free: 2.582 MB / 1.042 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002724/1.088, allocations: 4 kB / 1.636 GB, free: 2.578 MB / 1.042 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001187/1.088, allocations: 156.7 kB / 1.637 GB, free: 2.422 MB / 1.042 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01746/1.106, allocations: 14.03 MB / 1.65 GB, free: 3.238 MB / 1.057 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001352/1.107, allocations: 1.064 MB / 1.651 GB, free: 2.168 MB / 1.057 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0012/1.108, allocations: 1.034 MB / 1.652 GB, free: 1.129 MB / 1.057 GB Notification: Performance of preOpt evalFunc (simulation): time 8.939e-05/1.109, allocations: 25.3 kB / 1.652 GB, free: 1.102 MB / 1.057 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001522/1.11, allocations: 1.294 MB / 1.654 GB, free: 15.75 MB / 1.073 GB Notification: Performance of pre-optimization done (n=163): time 2.325e-06/1.11, allocations: 0 / 1.654 GB, free: 15.75 MB / 1.073 GB Notification: Performance of matching and sorting (n=250): time 0.0149/1.125, allocations: 7.717 MB / 1.661 GB, free: 7.992 MB / 1.073 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002634/1.125, allocations: 0.9022 MB / 1.662 GB, free: 6.879 MB / 1.073 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001741/1.127, allocations: 1.564 MB / 1.664 GB, free: 5.305 MB / 1.073 GB Notification: Performance of collectPreVariables (initialization): time 0.0001689/1.127, allocations: 37.7 kB / 1.664 GB, free: 5.262 MB / 1.073 GB Notification: Performance of collectInitialEqns (initialization): time 0.0005337/1.128, allocations: 0.9587 MB / 1.665 GB, free: 4.289 MB / 1.073 GB Notification: Performance of collectInitialBindings (initialization): time 0.0005897/1.128, allocations: 0.7851 MB / 1.665 GB, free: 3.492 MB / 1.073 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001469/1.129, allocations: 4 kB / 1.665 GB, free: 3.488 MB / 1.073 GB Notification: Performance of setup shared object (initialization): time 0.0001311/1.129, allocations: 398.7 kB / 1.666 GB, free: 3.094 MB / 1.073 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001606/1.13, allocations: 1.242 MB / 1.667 GB, free: 1.848 MB / 1.073 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001827/1.132, allocations: 1.617 MB / 1.668 GB, free: 100 kB / 1.073 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001679/1.134, allocations: 1.339 MB / 1.67 GB, free: 14.73 MB / 1.089 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.199e-06/1.134, allocations: 4 kB / 1.67 GB, free: 14.73 MB / 1.089 GB Notification: Performance of matching and sorting (n=299) (initialization): time 0.007636/1.141, allocations: 4.42 MB / 1.674 GB, free: 10.25 MB / 1.089 GB Notification: Performance of prepare postOptimizeDAE: time 0.0005893/1.142, allocations: 2.271 MB / 1.676 GB, free: 7.793 MB / 1.089 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.164e-05/1.142, allocations: 4 kB / 1.676 GB, free: 7.789 MB / 1.089 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.005054/1.147, allocations: 1.626 MB / 1.678 GB, free: 6.156 MB / 1.089 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002722/1.15, allocations: 0.6476 MB / 1.679 GB, free: 5.508 MB / 1.089 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01124/1.161, allocations: 8.719 MB / 1.687 GB, free: 12.63 MB / 1.104 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003039/1.164, allocations: 407.6 kB / 1.687 GB, free: 12.23 MB / 1.104 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002243/1.164, allocations: 92.33 kB / 1.688 GB, free: 12.14 MB / 1.104 GB Notification: Performance of prepare postOptimizeDAE: time 5.901e-06/1.164, allocations: 4 kB / 1.688 GB, free: 12.14 MB / 1.104 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.006064/1.17, allocations: 3.688 MB / 1.691 GB, free: 8.406 MB / 1.104 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.07e-05/1.17, allocations: 4 kB / 1.691 GB, free: 8.402 MB / 1.104 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.00343/1.174, allocations: 1.43 MB / 1.693 GB, free: 6.965 MB / 1.104 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002806/1.177, allocations: 0.6905 MB / 1.693 GB, free: 6.273 MB / 1.104 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01508/1.192, allocations: 11.14 MB / 1.704 GB, free: 10.89 MB / 1.12 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002888/1.195, allocations: 415.4 kB / 1.705 GB, free: 10.48 MB / 1.12 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002117/1.195, allocations: 83.98 kB / 1.705 GB, free: 10.4 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.0004083/1.195, allocations: 163 kB / 1.705 GB, free: 10.23 MB / 1.12 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003746/1.196, allocations: 304.4 kB / 1.705 GB, free: 9.934 MB / 1.12 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000504/1.196, allocations: 333.2 kB / 1.705 GB, free: 9.598 MB / 1.12 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.546e-05/1.196, allocations: 24 kB / 1.705 GB, free: 9.574 MB / 1.12 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.744e-05/1.196, allocations: 12 kB / 1.705 GB, free: 9.562 MB / 1.12 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.934e-05/1.196, allocations: 11.95 kB / 1.705 GB, free: 9.551 MB / 1.12 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002929/1.199, allocations: 2.845 MB / 1.708 GB, free: 6.664 MB / 1.12 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.549e-06/1.199, allocations: 0 / 1.708 GB, free: 6.664 MB / 1.12 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002512/1.202, allocations: 0.5735 MB / 1.709 GB, free: 6.09 MB / 1.12 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.004903/1.207, allocations: 1.657 MB / 1.71 GB, free: 4.426 MB / 1.12 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001681/1.207, allocations: 11.97 kB / 1.71 GB, free: 4.414 MB / 1.12 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01677/1.224, allocations: 12.68 MB / 1.723 GB, free: 7.504 MB / 1.135 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.783e-06/1.224, allocations: 0 / 1.723 GB, free: 7.504 MB / 1.135 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.007126/1.231, allocations: 4.24 MB / 1.727 GB, free: 3.238 MB / 1.135 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001007/1.232, allocations: 0.6379 MB / 1.728 GB, free: 2.578 MB / 1.135 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004687/1.232, allocations: 8 kB / 1.728 GB, free: 2.57 MB / 1.135 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00277/1.235, allocations: 415.6 kB / 1.728 GB, free: 2.164 MB / 1.135 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004874/1.236, allocations: 233.6 kB / 1.728 GB, free: 1.938 MB / 1.135 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000179/1.236, allocations: 71.97 kB / 1.728 GB, free: 1.867 MB / 1.135 GB Notification: Performance of sort global known variables: time 0.001249/1.237, allocations: 1.168 MB / 1.729 GB, free: 0.6914 MB / 1.135 GB Notification: Performance of remove unused functions: time 0.002553/1.24, allocations: 1.352 MB / 1.731 GB, free: 15.34 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.0003069/1.24, allocations: 139 kB / 1.731 GB, free: 15.19 MB / 1.151 GB Notification: Performance of simCode: created initialization part: time 0.01088/1.251, allocations: 6.898 MB / 1.738 GB, free: 8.191 MB / 1.151 GB Notification: Performance of simCode: created event and clocks part: time 4.478e-06/1.251, allocations: 8.062 kB / 1.738 GB, free: 8.184 MB / 1.151 GB Notification: Performance of simCode: created simulation system equations: time 0.004223/1.255, allocations: 2.479 MB / 1.74 GB, free: 5.684 MB / 1.151 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002731/1.258, allocations: 0.8222 MB / 1.741 GB, free: 4.867 MB / 1.151 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2693/1.527, allocations: 5.193 MB / 1.746 GB, free: 417.7 MB / 1.151 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002304/1.529, allocations: 2.415 MB / 1.748 GB, free: 417 MB / 1.151 GB Notification: Performance of SimCode: time 4.71e-07/1.529, allocations: 0 / 1.748 GB, free: 417 MB / 1.151 GB Notification: Performance of Templates: time 0.08755/1.617, allocations: 85.17 MB / 1.831 GB, free: 414.9 MB / 1.151 GB make -j1 -f Buildings_latest_Buildings.Electrical.DC.Lines.Examples.DCLines.makefile (rm -f Buildings_latest_Buildings.Electrical.DC.Lines.Examples.DCLines.pipe ; mkfifo Buildings_latest_Buildings.Electrical.DC.Lines.Examples.DCLines.pipe ; head -c 1048576 < Buildings_latest_Buildings.Electrical.DC.Lines.Examples.DCLines.pipe >> ../files/Buildings_latest_Buildings.Electrical.DC.Lines.Examples.DCLines.sim & ./Buildings_latest_Buildings.Electrical.DC.Lines.Examples.DCLines -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Electrical.DC.Lines.Examples.DCLines.pipe 2>&1)