Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_11_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 11.1.0-maint.11.x/package.mo", uses=false) Using package Buildings with version 11.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-maint.11.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_11_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_11_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.001326/0.001326, allocations: 107.2 kB / 16.27 MB, free: 5.988 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.001325/0.001325, allocations: 192.3 kB / 17.2 MB, free: 5.609 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.48/1.48, allocations: 222.9 MB / 240.9 MB, free: 15.24 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-maint.11.x/package.mo): time 2.835/2.835, allocations: 469.8 MB / 0.743 GB, free: 3.398 MB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.002941/0.002941, allocations: 71.31 kB / 0.9092 GB, free: 13.89 MB / 0.6856 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3545/0.3574, allocations: 159.1 MB / 1.065 GB, free: 14.77 MB / 0.8419 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.DC.Lines.Examples.DCLines): time 0.5823/0.9397, allocations: 22.6 MB / 1.087 GB, free: 11.55 MB / 0.8419 GB Notification: Performance of NFInst.instExpressions: time 0.02537/0.9651, allocations: 17.62 MB / 1.104 GB, free: 236 kB / 0.8419 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.004502/0.9697, allocations: 110 kB / 1.104 GB, free: 200 kB / 0.8419 GB Notification: Performance of NFTyping.typeComponents: time 0.01238/0.9821, allocations: 4.175 MB / 1.108 GB, free: 13.68 MB / 0.8575 GB Notification: Performance of NFTyping.typeBindings: time 0.01398/0.9961, allocations: 3.505 MB / 1.112 GB, free: 11.58 MB / 0.8575 GB Notification: Performance of NFTyping.typeClassSections: time 0.004999/1.001, allocations: 1.313 MB / 1.113 GB, free: 10.89 MB / 0.8575 GB Notification: Performance of NFFlatten.flatten: time 0.01211/1.013, allocations: 5.568 MB / 1.118 GB, free: 8.25 MB / 0.8575 GB Notification: Performance of NFFlatten.resolveConnections: time 0.006456/1.02, allocations: 3.543 MB / 1.122 GB, free: 6.586 MB / 0.8575 GB Notification: Performance of NFEvalConstants.evaluate: time 0.005726/1.026, allocations: 2.297 MB / 1.124 GB, free: 5.586 MB / 0.8575 GB Notification: Performance of NFSimplifyModel.simplify: time 0.006107/1.032, allocations: 2.394 MB / 1.126 GB, free: 4.539 MB / 0.8575 GB Notification: Performance of NFPackage.collectConstants: time 0.001431/1.033, allocations: 351.5 kB / 1.127 GB, free: 4.539 MB / 0.8575 GB Notification: Performance of NFFlatten.collectFunctions: time 0.003582/1.037, allocations: 1.021 MB / 1.128 GB, free: 4.266 MB / 0.8575 GB Notification: Performance of NFScalarize.scalarize: time 0.001738/1.038, allocations: 1.153 MB / 1.129 GB, free: 3.688 MB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 0.004236/1.043, allocations: 1.959 MB / 1.131 GB, free: 2.492 MB / 0.8575 GB Notification: Performance of NFConvertDAE.convert: time 0.009001/1.052, allocations: 4.996 MB / 1.136 GB, free: 0.6328 MB / 0.8575 GB Notification: Performance of FrontEnd - DAE generated: time 9.027e-06/1.052, allocations: 4 kB / 1.136 GB, free: 0.6289 MB / 0.8575 GB Notification: Performance of FrontEnd: time 2.074e-06/1.052, allocations: 4 kB / 1.136 GB, free: 0.625 MB / 0.8575 GB Notification: Performance of Transformations before backend: time 0.000193/1.052, allocations: 0 / 1.136 GB, free: 0.625 MB / 0.8575 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.01236/1.064, allocations: 4.383 MB / 1.14 GB, free: 14.07 MB / 0.8731 GB Notification: Performance of prepare preOptimizeDAE: time 4.26e-05/1.064, allocations: 12.06 kB / 1.14 GB, free: 14.07 MB / 0.8731 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01679/1.081, allocations: 3.262 MB / 1.143 GB, free: 13.13 MB / 0.8731 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005159/1.086, allocations: 2.061 MB / 1.145 GB, free: 11.63 MB / 0.8731 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001904/1.087, allocations: 180.8 kB / 1.145 GB, free: 11.55 MB / 0.8731 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006578/1.087, allocations: 231.9 kB / 1.145 GB, free: 11.47 MB / 0.8731 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0125/1.1, allocations: 4.691 MB / 1.15 GB, free: 8.695 MB / 0.8731 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.469e-05/1.1, allocations: 0 / 1.15 GB, free: 8.695 MB / 0.8731 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003975/1.1, allocations: 105.7 kB / 1.15 GB, free: 8.617 MB / 0.8731 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002286/1.101, allocations: 176.8 kB / 1.15 GB, free: 8.57 MB / 0.8731 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01458/1.115, allocations: 5.114 MB / 1.155 GB, free: 6.004 MB / 0.8731 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02525/1.14, allocations: 14.01 MB / 1.169 GB, free: 9.793 MB / 0.8887 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0112/1.152, allocations: 3.565 MB / 1.172 GB, free: 8 MB / 0.8887 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.003624/1.155, allocations: 1.382 MB / 1.174 GB, free: 7.309 MB / 0.8887 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001125/1.155, allocations: 34.59 kB / 1.174 GB, free: 7.293 MB / 0.8887 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.004227/1.16, allocations: 1.695 MB / 1.175 GB, free: 6.074 MB / 0.8887 GB Notification: Performance of pre-optimization done (n=163): time 4.849e-06/1.16, allocations: 4 kB / 1.175 GB, free: 6.07 MB / 0.8887 GB Notification: Performance of matching and sorting (n=250): time 0.1245/1.284, allocations: 27.41 MB / 1.202 GB, free: 10.43 MB / 0.92 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0003483/1.285, allocations: 0.4889 MB / 1.203 GB, free: 9.832 MB / 0.92 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00402/1.289, allocations: 2.3 MB / 1.205 GB, free: 7.52 MB / 0.92 GB Notification: Performance of collectPreVariables (initialization): time 0.0006006/1.289, allocations: 77.7 kB / 1.205 GB, free: 7.438 MB / 0.92 GB Notification: Performance of collectInitialEqns (initialization): time 0.001709/1.291, allocations: 1.434 MB / 1.206 GB, free: 5.988 MB / 0.92 GB Notification: Performance of collectInitialBindings (initialization): time 0.001201/1.292, allocations: 0.8163 MB / 1.207 GB, free: 5.16 MB / 0.92 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0009358/1.293, allocations: 412.5 kB / 1.208 GB, free: 4.75 MB / 0.92 GB Notification: Performance of setup shared object (initialization): time 0.000158/1.293, allocations: 309.1 kB / 1.208 GB, free: 4.445 MB / 0.92 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005005/1.298, allocations: 1.755 MB / 1.21 GB, free: 2.68 MB / 0.92 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005276/1.304, allocations: 2.044 MB / 1.212 GB, free: 0.5508 MB / 0.92 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01052/1.314, allocations: 3.845 MB / 1.215 GB, free: 12.57 MB / 0.9356 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.287e-06/1.314, allocations: 0.875 kB / 1.215 GB, free: 12.57 MB / 0.9356 GB Notification: Performance of matching and sorting (n=299) (initialization): time 0.01704/1.331, allocations: 5.805 MB / 1.221 GB, free: 6.668 MB / 0.9356 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001452/1.331, allocations: 151 kB / 1.221 GB, free: 6.492 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.505e-05/1.331, allocations: 8 kB / 1.221 GB, free: 6.484 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.006565/1.338, allocations: 1.852 MB / 1.223 GB, free: 4.629 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003098/1.341, allocations: 0.4992 MB / 1.223 GB, free: 4.129 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02592/1.367, allocations: 15.44 MB / 1.239 GB, free: 4.461 MB / 0.9512 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004392/1.371, allocations: 299.6 kB / 1.239 GB, free: 4.168 MB / 0.9512 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004672/1.372, allocations: 91.97 kB / 1.239 GB, free: 4.078 MB / 0.9512 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.006532/1.379, allocations: 2.312 MB / 1.241 GB, free: 1.758 MB / 0.9512 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.005475/1.384, allocations: 2.028 MB / 1.243 GB, free: 15.64 MB / 0.9669 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.01047/1.395, allocations: 3.802 MB / 1.247 GB, free: 11.71 MB / 0.9669 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 1.746e-05/1.395, allocations: 4 kB / 1.247 GB, free: 11.7 MB / 0.9669 GB Notification: Performance of matching and sorting (n=299) (initialization_lambda0): time 0.0168/1.411, allocations: 5.634 MB / 1.252 GB, free: 5.977 MB / 0.9669 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001333/1.412, allocations: 148.5 kB / 1.253 GB, free: 5.801 MB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.123e-05/1.412, allocations: 11.94 kB / 1.253 GB, free: 5.789 MB / 0.9669 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.005848/1.417, allocations: 1.701 MB / 1.254 GB, free: 4.078 MB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003163/1.421, allocations: 0.5109 MB / 1.255 GB, free: 3.566 MB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02438/1.445, allocations: 14.63 MB / 1.269 GB, free: 4.648 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004446/1.45, allocations: 303.6 kB / 1.269 GB, free: 4.352 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004718/1.45, allocations: 91.97 kB / 1.269 GB, free: 4.262 MB / 0.9825 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.0007968/1.451, allocations: 316.8 kB / 1.27 GB, free: 3.949 MB / 0.9825 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008567/1.452, allocations: 340 kB / 1.27 GB, free: 3.613 MB / 0.9825 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00101/1.453, allocations: 392.1 kB / 1.27 GB, free: 3.223 MB / 0.9825 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.963e-05/1.453, allocations: 24 kB / 1.27 GB, free: 3.199 MB / 0.9825 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.284e-05/1.453, allocations: 12 kB / 1.27 GB, free: 3.188 MB / 0.9825 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.533e-05/1.453, allocations: 11.95 kB / 1.27 GB, free: 3.176 MB / 0.9825 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005407/1.458, allocations: 3.168 MB / 1.274 GB, free: 15.96 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.476e-05/1.458, allocations: 3.984 kB / 1.274 GB, free: 15.95 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002703/1.461, allocations: 431.9 kB / 1.274 GB, free: 15.53 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.006124/1.467, allocations: 1.719 MB / 1.276 GB, free: 13.8 MB / 0.9981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003623/1.468, allocations: 51.97 kB / 1.276 GB, free: 13.75 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02493/1.493, allocations: 15.22 MB / 1.291 GB, free: 14.23 MB / 1.014 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.445e-06/1.493, allocations: 192 / 1.291 GB, free: 14.23 MB / 1.014 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01638/1.509, allocations: 5.408 MB / 1.296 GB, free: 8.785 MB / 1.014 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002231/1.511, allocations: 0.6687 MB / 1.296 GB, free: 8.094 MB / 1.014 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008675/1.512, allocations: 47.94 kB / 1.297 GB, free: 8.047 MB / 1.014 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003487/1.516, allocations: 303.6 kB / 1.297 GB, free: 7.75 MB / 1.014 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001024/1.517, allocations: 290.7 kB / 1.297 GB, free: 7.469 MB / 1.014 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000238/1.517, allocations: 67.97 kB / 1.297 GB, free: 7.402 MB / 1.014 GB Notification: Performance of sorting global known variables: time 0.002613/1.52, allocations: 1.536 MB / 1.299 GB, free: 5.867 MB / 1.014 GB Notification: Performance of sort global known variables: time 1.4e-07/1.52, allocations: 4 kB / 1.299 GB, free: 5.863 MB / 1.014 GB Notification: Performance of remove unused functions: time 0.005707/1.525, allocations: 1.637 MB / 1.3 GB, free: 4.227 MB / 1.014 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.0005116/1.526, allocations: 176.2 kB / 1.3 GB, free: 4.047 MB / 1.014 GB Notification: Performance of simCode: created initialization part: time 0.02883/1.555, allocations: 10.19 MB / 1.31 GB, free: 9.668 MB / 1.029 GB Notification: Performance of simCode: created event and clocks part: time 2.646e-05/1.555, allocations: 8.75 kB / 1.31 GB, free: 9.66 MB / 1.029 GB Notification: Performance of simCode: created simulation system equations: time 0.009227/1.564, allocations: 3.325 MB / 1.314 GB, free: 6.305 MB / 1.029 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006065/1.57, allocations: 1.136 MB / 1.315 GB, free: 5.207 MB / 1.029 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01638/1.586, allocations: 6.779 MB / 1.321 GB, free: 14.4 MB / 1.045 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002598/1.589, allocations: 2.305 MB / 1.324 GB, free: 12.06 MB / 1.045 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00127/1.59, allocations: 203.4 kB / 1.324 GB, free: 11.86 MB / 1.045 GB Notification: Performance of SimCode: time 7.82e-07/1.59, allocations: 0 / 1.324 GB, free: 11.86 MB / 1.045 GB Notification: Performance of Templates: time 0.1132/1.704, allocations: 79.56 MB / 1.401 GB, free: 12.62 MB / 1.123 GB make -j1 -f Buildings_11_Buildings.Electrical.DC.Lines.Examples.DCLines.makefile (rm -f Buildings_11_Buildings.Electrical.DC.Lines.Examples.DCLines.pipe ; mkfifo Buildings_11_Buildings.Electrical.DC.Lines.Examples.DCLines.pipe ; head -c 1048576 < Buildings_11_Buildings.Electrical.DC.Lines.Examples.DCLines.pipe >> ../files/Buildings_11_Buildings.Electrical.DC.Lines.Examples.DCLines.sim & ./Buildings_11_Buildings.Electrical.DC.Lines.Examples.DCLines -abortSlowSimulation -alarm=400 -emit_protected -lv LOG_STATS > Buildings_11_Buildings.Electrical.DC.Lines.Examples.DCLines.pipe 2>&1)