Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_Buildings.Electrical.DC.Lines.Examples.DCLines.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 9.1.3-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/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.DCLines,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|Sloads|E.S.1.",fileNamePrefix="Buildings_9_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_9_Buildings.Electrical.DC.Lines.Examples.DCLines") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001412/0.001412, allocations: 102.1 kB / 16.41 MB, free: 6.5 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.001335/0.001335, allocations: 192.2 kB / 17.34 MB, free: 5.742 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.397/1.397, allocations: 222.9 MB / 241 MB, free: 15.08 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/package.mo): time 2.357/2.357, allocations: 390.3 MB / 0.6655 GB, free: 0.6133 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.001372/0.001372, allocations: 59.91 kB / 0.9515 GB, free: 7.648 MB / 0.7325 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8617/0.8631, allocations: 140.4 MB / 1.089 GB, free: 5.781 MB / 0.8575 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.DC.Lines.Examples.DCLines): time 0.02558/0.8887, allocations: 22.62 MB / 1.111 GB, free: 6.242 MB / 0.8731 GB Notification: Performance of NFInst.instExpressions: time 0.02862/0.9174, allocations: 17.62 MB / 1.128 GB, free: 9.996 MB / 0.8887 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.004861/0.9223, allocations: 115 kB / 1.128 GB, free: 9.957 MB / 0.8887 GB Notification: Performance of NFTyping.typeComponents: time 0.01178/0.9341, allocations: 4.169 MB / 1.132 GB, free: 7.449 MB / 0.8887 GB Notification: Performance of NFTyping.typeBindings: time 0.0125/0.9466, allocations: 3.511 MB / 1.136 GB, free: 5.336 MB / 0.8887 GB Notification: Performance of NFTyping.typeClassSections: time 0.004308/0.9509, allocations: 1.321 MB / 1.137 GB, free: 4.641 MB / 0.8887 GB Notification: Performance of NFFlatten.flatten: time 0.009502/0.9604, allocations: 5.572 MB / 1.142 GB, free: 2.012 MB / 0.8887 GB Notification: Performance of NFFlatten.resolveConnections: time 0.005709/0.9662, allocations: 3.538 MB / 1.146 GB, free: 344 kB / 0.8887 GB Notification: Performance of NFEvalConstants.evaluate: time 0.005246/0.9714, allocations: 2.367 MB / 1.148 GB, free: 15.32 MB / 0.9044 GB Notification: Performance of NFSimplifyModel.simplify: time 0.005487/0.977, allocations: 2.409 MB / 1.15 GB, free: 14.27 MB / 0.9044 GB Notification: Performance of NFPackage.collectConstants: time 0.001142/0.9781, allocations: 351.1 kB / 1.151 GB, free: 14.27 MB / 0.9044 GB Notification: Performance of NFFlatten.collectFunctions: time 0.003134/0.9813, allocations: 1.024 MB / 1.152 GB, free: 13.99 MB / 0.9044 GB Notification: Performance of NFScalarize.scalarize: time 0.001438/0.9827, allocations: 1.154 MB / 1.153 GB, free: 13.41 MB / 0.9044 GB Notification: Performance of NFVerifyModel.verify: time 0.003839/0.9866, allocations: 1.964 MB / 1.155 GB, free: 12.21 MB / 0.9044 GB Notification: Performance of NFConvertDAE.convert: time 0.008883/0.9955, allocations: 5.067 MB / 1.16 GB, free: 9.738 MB / 0.9044 GB Notification: Performance of FrontEnd - DAE generated: time 5.25e-06/0.9955, allocations: 0 / 1.16 GB, free: 9.738 MB / 0.9044 GB Notification: Performance of FrontEnd: time 1.473e-06/0.9955, allocations: 0 / 1.16 GB, free: 9.738 MB / 0.9044 GB Notification: Performance of Transformations before backend: time 0.0001525/0.9957, allocations: 1.062 kB / 1.16 GB, free: 9.738 MB / 0.9044 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.01194/1.008, allocations: 4.393 MB / 1.164 GB, free: 6.648 MB / 0.9044 GB Notification: Performance of prepare preOptimizeDAE: time 4.074e-05/1.008, allocations: 8.969 kB / 1.164 GB, free: 6.648 MB / 0.9044 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01711/1.025, allocations: 3.252 MB / 1.167 GB, free: 5.16 MB / 0.9044 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005564/1.03, allocations: 2.201 MB / 1.169 GB, free: 3.594 MB / 0.9044 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002294/1.031, allocations: 191 kB / 1.17 GB, free: 3.5 MB / 0.9044 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0009024/1.032, allocations: 235.6 kB / 1.17 GB, free: 3.422 MB / 0.9044 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01321/1.045, allocations: 4.673 MB / 1.174 GB, free: 0.6602 MB / 0.9044 GB Notification: Performance of preOpt findStateOrder (simulation): time 5.042e-05/1.045, allocations: 5.438 kB / 1.174 GB, free: 0.6562 MB / 0.9044 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003614/1.045, allocations: 109.3 kB / 1.174 GB, free: 0.5742 MB / 0.9044 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000211/1.045, allocations: 169.3 kB / 1.175 GB, free: 0.5352 MB / 0.9044 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01427/1.06, allocations: 5.118 MB / 1.18 GB, free: 13.96 MB / 0.92 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02287/1.083, allocations: 13.92 MB / 1.193 GB, free: 1.672 MB / 0.92 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01143/1.094, allocations: 3.564 MB / 1.197 GB, free: 14.1 MB / 0.9356 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.003747/1.098, allocations: 1.389 MB / 1.198 GB, free: 12.7 MB / 0.9356 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001079/1.098, allocations: 33.22 kB / 1.198 GB, free: 12.67 MB / 0.9356 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.004169/1.102, allocations: 1.696 MB / 1.2 GB, free: 10.91 MB / 0.9356 GB Notification: Performance of pre-optimization done (n=163): time 3.437e-06/1.102, allocations: 0 / 1.2 GB, free: 10.91 MB / 0.9356 GB Notification: Performance of matching and sorting (n=250): time 0.1249/1.227, allocations: 27.42 MB / 1.226 GB, free: 15.27 MB / 0.9669 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002858/1.227, allocations: 0.4928 MB / 1.227 GB, free: 14.66 MB / 0.9669 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003339/1.231, allocations: 2.304 MB / 1.229 GB, free: 12.34 MB / 0.9669 GB Notification: Performance of collectPreVariables (initialization): time 0.0004396/1.231, allocations: 77.7 kB / 1.229 GB, free: 12.26 MB / 0.9669 GB Notification: Performance of collectInitialEqns (initialization): time 0.001227/1.232, allocations: 1.426 MB / 1.231 GB, free: 10.82 MB / 0.9669 GB Notification: Performance of collectInitialBindings (initialization): time 0.000922/1.233, allocations: 0.824 MB / 1.231 GB, free: 9.984 MB / 0.9669 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0007823/1.234, allocations: 416.4 kB / 1.232 GB, free: 9.57 MB / 0.9669 GB Notification: Performance of setup shared object (initialization): time 9.811e-05/1.234, allocations: 309.1 kB / 1.232 GB, free: 9.266 MB / 0.9669 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004735/1.239, allocations: 1.759 MB / 1.234 GB, free: 7.496 MB / 0.9669 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005055/1.244, allocations: 2.04 MB / 1.236 GB, free: 5.371 MB / 0.9669 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.009854/1.254, allocations: 3.845 MB / 1.24 GB, free: 1.391 MB / 0.9669 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.426e-06/1.254, allocations: 0 / 1.24 GB, free: 1.391 MB / 0.9669 GB Notification: Performance of matching and sorting (n=299) (initialization): time 0.01595/1.27, allocations: 5.81 MB / 1.245 GB, free: 11.49 MB / 0.9825 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001153/1.27, allocations: 144.5 kB / 1.245 GB, free: 11.32 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.849e-05/1.27, allocations: 8 kB / 1.245 GB, free: 11.31 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.006347/1.277, allocations: 1.84 MB / 1.247 GB, free: 9.461 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003083/1.28, allocations: 0.4914 MB / 1.248 GB, free: 8.969 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02359/1.303, allocations: 15.4 MB / 1.263 GB, free: 9.32 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004235/1.307, allocations: 303.6 kB / 1.263 GB, free: 9.023 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003292/1.308, allocations: 91.97 kB / 1.263 GB, free: 8.934 MB / 0.9981 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.005976/1.314, allocations: 2.316 MB / 1.265 GB, free: 6.609 MB / 0.9981 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.004942/1.319, allocations: 2.028 MB / 1.267 GB, free: 4.496 MB / 0.9981 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.009581/1.328, allocations: 3.798 MB / 1.271 GB, free: 0.5625 MB / 0.9981 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 1.42e-05/1.328, allocations: 4 kB / 1.271 GB, free: 0.5586 MB / 0.9981 GB Notification: Performance of matching and sorting (n=299) (initialization_lambda0): time 0.01572/1.344, allocations: 5.634 MB / 1.277 GB, free: 10.83 MB / 1.014 GB Notification: Performance of prepare postOptimizeDAE: time 0.000121/1.344, allocations: 160.4 kB / 1.277 GB, free: 10.64 MB / 1.014 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.59e-05/1.344, allocations: 8 kB / 1.277 GB, free: 10.63 MB / 1.014 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.00548/1.35, allocations: 1.673 MB / 1.278 GB, free: 8.957 MB / 1.014 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003081/1.353, allocations: 0.5187 MB / 1.279 GB, free: 8.438 MB / 1.014 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02112/1.374, allocations: 14.59 MB / 1.293 GB, free: 9.555 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004318/1.378, allocations: 307.6 kB / 1.293 GB, free: 9.254 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004116/1.379, allocations: 91.97 kB / 1.294 GB, free: 9.164 MB / 1.029 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 (172): * Single equations (assignments): 165 * 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 {(10,52)} Notification: Performance of prepare postOptimizeDAE: time 0.0006922/1.38, allocations: 326.3 kB / 1.294 GB, free: 8.836 MB / 1.029 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007063/1.38, allocations: 332 kB / 1.294 GB, free: 8.508 MB / 1.029 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009091/1.381, allocations: 396.1 kB / 1.295 GB, free: 8.113 MB / 1.029 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.839e-05/1.381, allocations: 24 kB / 1.295 GB, free: 8.09 MB / 1.029 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.555e-05/1.381, allocations: 12 kB / 1.295 GB, free: 8.078 MB / 1.029 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.876e-05/1.381, allocations: 11.95 kB / 1.295 GB, free: 8.066 MB / 1.029 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004565/1.386, allocations: 3.172 MB / 1.298 GB, free: 4.844 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.213e-05/1.386, allocations: 0 / 1.298 GB, free: 4.844 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002628/1.389, allocations: 435.3 kB / 1.298 GB, free: 4.418 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.005823/1.394, allocations: 1.696 MB / 1.3 GB, free: 2.715 MB / 1.029 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004284/1.395, allocations: 51.97 kB / 1.3 GB, free: 2.664 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02235/1.417, allocations: 15.19 MB / 1.315 GB, free: 3.172 MB / 1.045 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.054e-06/1.417, allocations: 0 / 1.315 GB, free: 3.172 MB / 1.045 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01522/1.432, allocations: 5.424 MB / 1.32 GB, free: 13.71 MB / 1.061 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002011/1.434, allocations: 0.6609 MB / 1.321 GB, free: 13.03 MB / 1.061 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007718/1.435, allocations: 51.98 kB / 1.321 GB, free: 12.98 MB / 1.061 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003313/1.439, allocations: 295.6 kB / 1.321 GB, free: 12.69 MB / 1.061 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0009196/1.44, allocations: 290.7 kB / 1.321 GB, free: 12.41 MB / 1.061 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002073/1.44, allocations: 71.91 kB / 1.321 GB, free: 12.34 MB / 1.061 GB Notification: Performance of sorting global known variables: time 0.002287/1.442, allocations: 1.536 MB / 1.323 GB, free: 10.8 MB / 1.061 GB Notification: Performance of sort global known variables: time 1.3e-07/1.442, allocations: 0 / 1.323 GB, free: 10.8 MB / 1.061 GB Notification: Performance of remove unused functions: time 0.004996/1.447, allocations: 1.648 MB / 1.324 GB, free: 9.152 MB / 1.061 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 (128): * Single equations (assignments): 116 * 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,52)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0003919/1.447, allocations: 168.7 kB / 1.325 GB, free: 8.98 MB / 1.061 GB Notification: Performance of simCode: created initialization part: time 0.02288/1.47, allocations: 9.3 MB / 1.334 GB, free: 15.5 MB / 1.076 GB Notification: Performance of simCode: created event and clocks part: time 7.755e-06/1.47, allocations: 0 / 1.334 GB, free: 15.5 MB / 1.076 GB Notification: Performance of simCode: created simulation system equations: time 0.008422/1.479, allocations: 3.319 MB / 1.337 GB, free: 12.15 MB / 1.076 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005302/1.484, allocations: 1.13 MB / 1.338 GB, free: 11.06 MB / 1.076 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01428/1.498, allocations: 6.706 MB / 1.344 GB, free: 4.332 MB / 1.076 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002013/1.501, allocations: 2.308 MB / 1.347 GB, free: 1.984 MB / 1.076 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001262/1.502, allocations: 199.4 kB / 1.347 GB, free: 1.789 MB / 1.076 GB Notification: Performance of SimCode: time 9.42e-07/1.502, allocations: 0 / 1.347 GB, free: 1.789 MB / 1.076 GB Notification: Performance of Templates: time 0.09204/1.594, allocations: 79.86 MB / 1.425 GB, free: 2.25 MB / 1.154 GB make -j1 -f Buildings_9_Buildings.Electrical.DC.Lines.Examples.DCLines.makefile (rm -f Buildings_9_Buildings.Electrical.DC.Lines.Examples.DCLines.pipe ; mkfifo Buildings_9_Buildings.Electrical.DC.Lines.Examples.DCLines.pipe ; head -c 1048576 < Buildings_9_Buildings.Electrical.DC.Lines.Examples.DCLines.pipe >> ../files/Buildings_9_Buildings.Electrical.DC.Lines.Examples.DCLines.sim & ./Buildings_9_Buildings.Electrical.DC.Lines.Examples.DCLines -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Electrical.DC.Lines.Examples.DCLines.pipe 2>&1)