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/ModelicaServices 4.0.0+maint.om/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/Buildings 11.0.0-master/package.mo", uses=false) Using package Buildings with version 11.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/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 ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.005954/0.005954, allocations: 101.1 kB / 15.88 MB, free: 5.867 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001277/0.001278, allocations: 193.8 kB / 16.79 MB, free: 5.809 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.436/1.436, allocations: 222.9 MB / 240.5 MB, free: 4.543 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.901/2.901, allocations: 461.9 MB / 0.7348 GB, free: 14.16 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001335/0.001335, allocations: 68.55 kB / 0.899 GB, free: 37.02 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.334/0.3354, allocations: 157.4 MB / 1.053 GB, free: 8.293 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.DC.Lines.Examples.DCLinesLinearized): time 0.02539/0.3608, allocations: 22.44 MB / 1.075 GB, free: 1.773 MB / 0.8262 GB Notification: Performance of NFInst.instExpressions: time 0.02532/0.3862, allocations: 17.59 MB / 1.092 GB, free: 132 kB / 0.8419 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.003448/0.3897, allocations: 107.4 kB / 1.092 GB, free: 24 kB / 0.8419 GB Notification: Performance of NFTyping.typeComponents: time 0.01013/0.3998, allocations: 3.908 MB / 1.096 GB, free: 12.11 MB / 0.8575 GB Notification: Performance of NFTyping.typeBindings: time 0.01054/0.4104, allocations: 3.205 MB / 1.099 GB, free: 8.902 MB / 0.8575 GB Notification: Performance of NFTyping.typeClassSections: time 0.003513/0.4139, allocations: 1.181 MB / 1.1 GB, free: 7.723 MB / 0.8575 GB Notification: Performance of NFFlatten.flatten: time 0.008969/0.4229, allocations: 7.055 MB / 1.107 GB, free: 0.6484 MB / 0.8575 GB Notification: Performance of NFFlatten.resolveConnections: time 0.004359/0.4273, allocations: 2.499 MB / 1.109 GB, free: 14.07 MB / 0.8731 GB Notification: Performance of NFEvalConstants.evaluate: time 0.003908/0.4312, allocations: 2.183 MB / 1.111 GB, free: 11.88 MB / 0.8731 GB Notification: Performance of NFSimplifyModel.simplify: time 0.004546/0.4358, allocations: 2.451 MB / 1.114 GB, free: 9.422 MB / 0.8731 GB Notification: Performance of NFPackage.collectConstants: time 0.001471/0.4373, allocations: 228 kB / 1.114 GB, free: 9.199 MB / 0.8731 GB Notification: Performance of NFFlatten.collectFunctions: time 0.003279/0.4406, allocations: 1.111 MB / 1.115 GB, free: 8.086 MB / 0.8731 GB Notification: Performance of NFScalarize.scalarize: time 0.001717/0.4423, allocations: 1.055 MB / 1.116 GB, free: 7.027 MB / 0.8731 GB Notification: Performance of NFVerifyModel.verify: time 0.003312/0.4457, allocations: 1.854 MB / 1.118 GB, free: 5.164 MB / 0.8731 GB Notification: Performance of NFConvertDAE.convert: time 0.004296/0.45, allocations: 4.045 MB / 1.122 GB, free: 1.109 MB / 0.8731 GB Notification: Performance of FrontEnd - DAE generated: time 6.432e-06/0.45, allocations: 4 kB / 1.122 GB, free: 1.105 MB / 0.8731 GB Notification: Performance of FrontEnd: time 1.353e-06/0.45, allocations: 4 kB / 1.122 GB, free: 1.102 MB / 0.8731 GB Notification: Performance of Transformations before backend: time 0.0001452/0.4502, allocations: 0 / 1.122 GB, free: 1.102 MB / 0.8731 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.01094/0.4611, allocations: 4.605 MB / 1.126 GB, free: 12.38 MB / 0.8887 GB Notification: Performance of prepare preOptimizeDAE: time 4.127e-05/0.4612, allocations: 8.031 kB / 1.126 GB, free: 12.38 MB / 0.8887 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01611/0.4773, allocations: 3.269 MB / 1.13 GB, free: 9.098 MB / 0.8887 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004289/0.4816, allocations: 2.084 MB / 1.132 GB, free: 6.945 MB / 0.8887 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003586/0.482, allocations: 466.3 kB / 1.132 GB, free: 6.426 MB / 0.8887 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006195/0.4826, allocations: 235.9 kB / 1.132 GB, free: 6.195 MB / 0.8887 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01056/0.4932, allocations: 4.81 MB / 1.137 GB, free: 1.238 MB / 0.8887 GB Notification: Performance of preOpt findStateOrder (simulation): time 4.278e-05/0.4933, allocations: 8 kB / 1.137 GB, free: 1.23 MB / 0.8887 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003305/0.4936, allocations: 99.98 kB / 1.137 GB, free: 1.133 MB / 0.8887 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001876/0.4938, allocations: 168.8 kB / 1.137 GB, free: 0.9648 MB / 0.8887 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01327/0.5071, allocations: 5.198 MB / 1.142 GB, free: 11.75 MB / 0.9044 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02267/0.5298, allocations: 14.48 MB / 1.157 GB, free: 12.09 MB / 0.92 GB Notification: Performance of preOpt comSubExp (simulation): time 0.009536/0.5393, allocations: 3.389 MB / 1.16 GB, free: 8.695 MB / 0.92 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.003702/0.5431, allocations: 1.471 MB / 1.161 GB, free: 7.227 MB / 0.92 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001563/0.5433, allocations: 21.3 kB / 1.161 GB, free: 7.203 MB / 0.92 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00418/0.5474, allocations: 1.794 MB / 1.163 GB, free: 5.344 MB / 0.92 GB Notification: Performance of pre-optimization done (n=163): time 3.186e-06/0.5475, allocations: 4 kB / 1.163 GB, free: 5.34 MB / 0.92 GB Notification: Performance of matching and sorting (n=250): time 0.1232/0.6707, allocations: 28.22 MB / 1.191 GB, free: 8.891 MB / 0.9512 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002532/0.671, allocations: 0.4889 MB / 1.191 GB, free: 8.289 MB / 0.9512 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003556/0.6746, allocations: 2.3 MB / 1.193 GB, free: 5.977 MB / 0.9512 GB Notification: Performance of collectPreVariables (initialization): time 0.000564/0.6752, allocations: 77.7 kB / 1.193 GB, free: 5.895 MB / 0.9512 GB Notification: Performance of collectInitialEqns (initialization): time 0.001241/0.6764, allocations: 1.43 MB / 1.195 GB, free: 4.449 MB / 0.9512 GB Notification: Performance of collectInitialBindings (initialization): time 0.0009939/0.6774, allocations: 0.8279 MB / 1.196 GB, free: 3.609 MB / 0.9512 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0008549/0.6783, allocations: 416.5 kB / 1.196 GB, free: 3.195 MB / 0.9512 GB Notification: Performance of setup shared object (initialization): time 0.0001036/0.6784, allocations: 305.1 kB / 1.196 GB, free: 2.895 MB / 0.9512 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004975/0.6834, allocations: 1.925 MB / 1.198 GB, free: 0.9648 MB / 0.9512 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005328/0.6887, allocations: 2.235 MB / 1.2 GB, free: 14.64 MB / 0.9669 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01013/0.6989, allocations: 4.154 MB / 1.204 GB, free: 10.35 MB / 0.9669 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.325e-05/0.6989, allocations: 0 / 1.204 GB, free: 10.35 MB / 0.9669 GB Notification: Performance of matching and sorting (n=299) (initialization): time 0.01827/0.7172, allocations: 6.547 MB / 1.211 GB, free: 3.711 MB / 0.9669 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001039/0.7173, allocations: 144.5 kB / 1.211 GB, free: 3.539 MB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.863e-05/0.7174, allocations: 8 kB / 1.211 GB, free: 3.531 MB / 0.9669 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01014/0.7275, allocations: 2.926 MB / 1.214 GB, free: 0.6016 MB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002856/0.7304, allocations: 491.2 kB / 1.214 GB, free: 124 kB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.03673/0.7671, allocations: 17.33 MB / 1.231 GB, free: 14.55 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003983/0.7711, allocations: 323.6 kB / 1.232 GB, free: 14.23 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003554/0.7715, allocations: 91.98 kB / 1.232 GB, free: 14.14 MB / 0.9981 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 (varLoad5.count,$PRE.varLoad5.count,varLoad5.T_start,$PRE.varLoad5.T_start,varLoad4.count,$PRE.varLoad4.count,varLoad4.T_start,$PRE.varLoad4.T_start,varLoad3.count,$PRE.varLoad3.count,varLoad3.T_start,$PRE.varLoad3.T_start,varLoad2.count,$PRE.varLoad2.count,varLoad2.T_start,$PRE.varLoad2.T_start,varLoad1.count,$PRE.varLoad1.count,varLoad1.T_start,$PRE.varLoad1.T_start,$whenCondition1,$whenCondition2,$whenCondition3,$whenCondition4,$whenCondition5) * Number of discrete states: 0 () * Number of clocked 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 (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(10,52,45.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(8,64)} Notification: Performance of prepare postOptimizeDAE: time 0.001518/0.7731, allocations: 0.7027 MB / 1.232 GB, free: 13.43 MB / 0.9981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007089/0.7738, allocations: 332.1 kB / 1.233 GB, free: 13.11 MB / 0.9981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007465/0.7745, allocations: 388 kB / 1.233 GB, free: 12.72 MB / 0.9981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.101e-05/0.7746, allocations: 24 kB / 1.233 GB, free: 12.7 MB / 0.9981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.311e-05/0.7746, allocations: 8 kB / 1.233 GB, free: 12.69 MB / 0.9981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.676e-05/0.7746, allocations: 15.95 kB / 1.233 GB, free: 12.67 MB / 0.9981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004577/0.7792, allocations: 3.632 MB / 1.237 GB, free: 8.984 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.195e-06/0.7792, allocations: 0 / 1.237 GB, free: 8.984 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002474/0.7817, allocations: 423.3 kB / 1.237 GB, free: 8.57 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.009779/0.7915, allocations: 2.865 MB / 1.24 GB, free: 5.703 MB / 0.9981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004222/0.792, allocations: 51.91 kB / 1.24 GB, free: 5.652 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.663/1.455, allocations: 17.1 MB / 1.257 GB, free: 173.3 MB / 0.9981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.574e-06/1.455, allocations: 3.094 kB / 1.257 GB, free: 173.3 MB / 0.9981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01909/1.474, allocations: 6.18 MB / 1.263 GB, free: 173 MB / 0.9981 GB Notification: Performance of postOpt removeConstants (simulation): time 0.00202/1.476, allocations: 0.694 MB / 1.263 GB, free: 172.9 MB / 0.9981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0009681/1.477, allocations: 46.16 kB / 1.263 GB, free: 172.9 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003685/1.481, allocations: 316.7 kB / 1.264 GB, free: 172.9 MB / 0.9981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001634/1.483, allocations: 354.4 kB / 1.264 GB, free: 172.9 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003716/1.483, allocations: 71.94 kB / 1.264 GB, free: 172.9 MB / 0.9981 GB Notification: Performance of sorting global known variables: time 0.00392/1.487, allocations: 1.535 MB / 1.266 GB, free: 172.8 MB / 0.9981 GB Notification: Performance of sort global known variables: time 1.814e-06/1.487, allocations: 0.5312 kB / 1.266 GB, free: 172.8 MB / 0.9981 GB Notification: Performance of remove unused functions: time 0.004273/1.491, allocations: 1.046 MB / 1.267 GB, free: 172.8 MB / 0.9981 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) * Number of clocked states: 0 () * 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 (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(10,52,60.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(10,62)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0005501/1.492, allocations: 163.9 kB / 1.267 GB, free: 172.7 MB / 0.9981 GB Notification: Performance of simCode: created initialization part: time 0.02308/1.515, allocations: 6.447 MB / 1.273 GB, free: 171.6 MB / 0.9981 GB Notification: Performance of simCode: created event and clocks part: time 9.237e-06/1.515, allocations: 2.594 kB / 1.273 GB, free: 171.6 MB / 0.9981 GB Notification: Performance of simCode: created simulation system equations: time 0.01704/1.532, allocations: 4.03 MB / 1.277 GB, free: 170.3 MB / 0.9981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005559/1.538, allocations: 1.049 MB / 1.278 GB, free: 170 MB / 0.9981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01559/1.553, allocations: 8.234 MB / 1.286 GB, free: 165.8 MB / 0.9981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002122/1.555, allocations: 2.243 MB / 1.288 GB, free: 164.9 MB / 0.9981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001257/1.557, allocations: 189.6 kB / 1.288 GB, free: 164.9 MB / 0.9981 GB Notification: Performance of SimCode: time 9.91e-07/1.557, allocations: 0 / 1.288 GB, free: 164.9 MB / 0.9981 GB Notification: Performance of Templates: time 0.07892/1.636, allocations: 79.94 MB / 1.366 GB, free: 94.82 MB / 0.9981 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)