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.001289/0.001289, allocations: 110.7 kB / 16.41 MB, free: 6.488 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.001262/0.001262, allocations: 187 kB / 17.34 MB, free: 5.762 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.355/1.355, allocations: 222.9 MB / 241 MB, free: 15.17 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.277/2.277, allocations: 390.3 MB / 0.6655 GB, free: 0.625 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.0015/0.0015, allocations: 63.91 kB / 0.9515 GB, free: 7.652 MB / 0.7325 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8481/0.8496, allocations: 140.4 MB / 1.089 GB, free: 5.523 MB / 0.8575 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.DC.Lines.Examples.DCLines): time 0.02588/0.8755, allocations: 22.61 MB / 1.111 GB, free: 6 MB / 0.8731 GB Notification: Performance of NFInst.instExpressions: time 0.02916/0.9047, allocations: 17.63 MB / 1.128 GB, free: 9.75 MB / 0.8887 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.004888/0.9097, allocations: 110.5 kB / 1.128 GB, free: 9.715 MB / 0.8887 GB Notification: Performance of NFTyping.typeComponents: time 0.01211/0.9218, allocations: 4.176 MB / 1.132 GB, free: 7.199 MB / 0.8887 GB Notification: Performance of NFTyping.typeBindings: time 0.01368/0.9355, allocations: 3.579 MB / 1.136 GB, free: 5.043 MB / 0.8887 GB Notification: Performance of NFTyping.typeClassSections: time 0.004715/0.9402, allocations: 1.317 MB / 1.137 GB, free: 4.348 MB / 0.8887 GB Notification: Performance of NFFlatten.flatten: time 0.011/0.9512, allocations: 5.597 MB / 1.142 GB, free: 1.711 MB / 0.8887 GB Notification: Performance of NFFlatten.resolveConnections: time 0.005804/0.9571, allocations: 3.526 MB / 1.146 GB, free: 48 kB / 0.8887 GB Notification: Performance of NFEvalConstants.evaluate: time 0.005355/0.9625, allocations: 2.367 MB / 1.148 GB, free: 15.04 MB / 0.9044 GB Notification: Performance of NFSimplifyModel.simplify: time 0.005356/0.9679, allocations: 2.405 MB / 1.15 GB, free: 13.98 MB / 0.9044 GB Notification: Performance of NFPackage.collectConstants: time 0.001335/0.9692, allocations: 354.9 kB / 1.151 GB, free: 13.98 MB / 0.9044 GB Notification: Performance of NFFlatten.collectFunctions: time 0.003517/0.9727, allocations: 1.021 MB / 1.152 GB, free: 13.71 MB / 0.9044 GB Notification: Performance of NFScalarize.scalarize: time 0.001921/0.9747, allocations: 1.158 MB / 1.153 GB, free: 13.12 MB / 0.9044 GB Notification: Performance of NFVerifyModel.verify: time 0.003704/0.9784, allocations: 1.963 MB / 1.155 GB, free: 11.93 MB / 0.9044 GB Notification: Performance of NFConvertDAE.convert: time 0.00917/0.9876, allocations: 5.063 MB / 1.16 GB, free: 9.484 MB / 0.9044 GB Notification: Performance of FrontEnd - DAE generated: time 9.117e-06/0.9876, allocations: 4 kB / 1.16 GB, free: 9.48 MB / 0.9044 GB Notification: Performance of FrontEnd: time 1.934e-06/0.9876, allocations: 0 / 1.16 GB, free: 9.48 MB / 0.9044 GB Notification: Performance of Transformations before backend: time 0.000161/0.9878, allocations: 0 / 1.16 GB, free: 9.48 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.01149/0.9993, allocations: 4.388 MB / 1.164 GB, free: 6.395 MB / 0.9044 GB Notification: Performance of prepare preOptimizeDAE: time 4.474e-05/0.9993, allocations: 13.39 kB / 1.164 GB, free: 6.391 MB / 0.9044 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01652/1.016, allocations: 3.249 MB / 1.167 GB, free: 4.906 MB / 0.9044 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005717/1.022, allocations: 2.208 MB / 1.169 GB, free: 3.332 MB / 0.9044 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002489/1.022, allocations: 186 kB / 1.17 GB, free: 3.242 MB / 0.9044 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0009279/1.023, allocations: 235.5 kB / 1.17 GB, free: 3.164 MB / 0.9044 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01448/1.037, allocations: 4.674 MB / 1.174 GB, free: 412 kB / 0.9044 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.487e-05/1.038, allocations: 5.281 kB / 1.174 GB, free: 408 kB / 0.9044 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0008309/1.038, allocations: 104.9 kB / 1.174 GB, free: 328 kB / 0.9044 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002835/1.039, allocations: 177.3 kB / 1.175 GB, free: 280 kB / 0.9044 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01521/1.054, allocations: 5.114 MB / 1.18 GB, free: 13.7 MB / 0.92 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02766/1.082, allocations: 13.92 MB / 1.193 GB, free: 1.438 MB / 0.92 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01172/1.093, allocations: 3.568 MB / 1.197 GB, free: 13.86 MB / 0.9356 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.003865/1.097, allocations: 1.377 MB / 1.198 GB, free: 12.47 MB / 0.9356 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001777/1.097, allocations: 37.12 kB / 1.198 GB, free: 12.44 MB / 0.9356 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.004467/1.102, allocations: 1.704 MB / 1.2 GB, free: 10.67 MB / 0.9356 GB Notification: Performance of pre-optimization done (n=163): time 6.883e-06/1.102, allocations: 3.984 kB / 1.2 GB, free: 10.67 MB / 0.9356 GB Notification: Performance of matching and sorting (n=250): time 0.1243/1.226, allocations: 27.43 MB / 1.227 GB, free: 15.02 MB / 0.9669 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002923/1.227, allocations: 0.4928 MB / 1.227 GB, free: 14.41 MB / 0.9669 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004357/1.231, allocations: 2.296 MB / 1.229 GB, free: 12.11 MB / 0.9669 GB Notification: Performance of collectPreVariables (initialization): time 0.0004873/1.231, allocations: 81.64 kB / 1.229 GB, free: 12.02 MB / 0.9669 GB Notification: Performance of collectInitialEqns (initialization): time 0.001613/1.233, allocations: 1.434 MB / 1.231 GB, free: 10.57 MB / 0.9669 GB Notification: Performance of collectInitialBindings (initialization): time 0.00105/1.234, allocations: 0.8162 MB / 1.232 GB, free: 9.742 MB / 0.9669 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001071/1.235, allocations: 416.4 kB / 1.232 GB, free: 9.328 MB / 0.9669 GB Notification: Performance of setup shared object (initialization): time 0.0001101/1.235, allocations: 313 kB / 1.232 GB, free: 9.02 MB / 0.9669 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004936/1.24, allocations: 1.751 MB / 1.234 GB, free: 7.258 MB / 0.9669 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005144/1.245, allocations: 2.044 MB / 1.236 GB, free: 5.129 MB / 0.9669 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.009833/1.255, allocations: 3.837 MB / 1.24 GB, free: 1.156 MB / 0.9669 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.102e-05/1.255, allocations: 4 kB / 1.24 GB, free: 1.152 MB / 0.9669 GB Notification: Performance of matching and sorting (n=299) (initialization): time 0.01651/1.272, allocations: 5.806 MB / 1.245 GB, free: 11.25 MB / 0.9825 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001252/1.272, allocations: 148.5 kB / 1.246 GB, free: 11.08 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.14e-05/1.272, allocations: 4 kB / 1.246 GB, free: 11.07 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0066/1.279, allocations: 1.836 MB / 1.247 GB, free: 9.23 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003089/1.282, allocations: 0.4914 MB / 1.248 GB, free: 8.738 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02546/1.307, allocations: 15.4 MB / 1.263 GB, free: 9.09 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004335/1.312, allocations: 307.8 kB / 1.263 GB, free: 8.789 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000523/1.312, allocations: 87.97 kB / 1.263 GB, free: 8.703 MB / 0.9981 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.006591/1.319, allocations: 2.323 MB / 1.265 GB, free: 6.371 MB / 0.9981 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.005389/1.324, allocations: 2.024 MB / 1.267 GB, free: 4.262 MB / 0.9981 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.00996/1.334, allocations: 3.802 MB / 1.271 GB, free: 332 kB / 0.9981 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 1.37e-05/1.334, allocations: 0 / 1.271 GB, free: 332 kB / 0.9981 GB Notification: Performance of matching and sorting (n=299) (initialization_lambda0): time 0.01619/1.351, allocations: 5.642 MB / 1.277 GB, free: 10.59 MB / 1.014 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001129/1.351, allocations: 152.4 kB / 1.277 GB, free: 10.41 MB / 1.014 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.391e-05/1.351, allocations: 4.344 kB / 1.277 GB, free: 10.4 MB / 1.014 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.005689/1.356, allocations: 1.673 MB / 1.278 GB, free: 8.727 MB / 1.014 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00298/1.359, allocations: 0.5187 MB / 1.279 GB, free: 8.207 MB / 1.014 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02258/1.382, allocations: 14.6 MB / 1.293 GB, free: 9.312 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004228/1.386, allocations: 307.6 kB / 1.294 GB, free: 9.012 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000557/1.387, allocations: 83.98 kB / 1.294 GB, free: 8.93 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.000915/1.388, allocations: 330.1 kB / 1.294 GB, free: 8.598 MB / 1.029 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0009777/1.389, allocations: 336.1 kB / 1.294 GB, free: 8.266 MB / 1.029 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001125/1.39, allocations: 392.1 kB / 1.295 GB, free: 7.875 MB / 1.029 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.326e-05/1.39, allocations: 24 kB / 1.295 GB, free: 7.852 MB / 1.029 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.931e-05/1.39, allocations: 8 kB / 1.295 GB, free: 7.844 MB / 1.029 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.37e-05/1.39, allocations: 15.89 kB / 1.295 GB, free: 7.828 MB / 1.029 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005662/1.396, allocations: 3.165 MB / 1.298 GB, free: 4.613 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.91e-05/1.396, allocations: 3.984 kB / 1.298 GB, free: 4.609 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002646/1.398, allocations: 435.3 kB / 1.298 GB, free: 4.184 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.006233/1.405, allocations: 1.692 MB / 1.3 GB, free: 2.484 MB / 1.029 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000488/1.405, allocations: 51.97 kB / 1.3 GB, free: 2.434 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02352/1.429, allocations: 15.19 MB / 1.315 GB, free: 2.941 MB / 1.045 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.725e-06/1.429, allocations: 0 / 1.315 GB, free: 2.941 MB / 1.045 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01548/1.444, allocations: 5.428 MB / 1.32 GB, free: 13.48 MB / 1.061 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002026/1.446, allocations: 0.6687 MB / 1.321 GB, free: 12.79 MB / 1.061 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001131/1.447, allocations: 44 kB / 1.321 GB, free: 12.75 MB / 1.061 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003468/1.451, allocations: 299.6 kB / 1.321 GB, free: 12.45 MB / 1.061 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0009374/1.452, allocations: 290.7 kB / 1.321 GB, free: 12.17 MB / 1.061 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002706/1.452, allocations: 75.97 kB / 1.321 GB, free: 12.09 MB / 1.061 GB Notification: Performance of sorting global known variables: time 0.002695/1.455, allocations: 1.528 MB / 1.323 GB, free: 10.57 MB / 1.061 GB Notification: Performance of sort global known variables: time 1.7e-07/1.455, allocations: 4 kB / 1.323 GB, free: 10.56 MB / 1.061 GB Notification: Performance of remove unused functions: time 0.005492/1.46, allocations: 1.641 MB / 1.324 GB, free: 8.922 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.0004428/1.461, allocations: 176.3 kB / 1.325 GB, free: 8.742 MB / 1.061 GB Notification: Performance of simCode: created initialization part: time 0.02276/1.484, allocations: 9.292 MB / 1.334 GB, free: 15.27 MB / 1.076 GB Notification: Performance of simCode: created event and clocks part: time 7.424e-06/1.484, allocations: 4 kB / 1.334 GB, free: 15.27 MB / 1.076 GB Notification: Performance of simCode: created simulation system equations: time 0.008325/1.492, allocations: 3.311 MB / 1.337 GB, free: 11.92 MB / 1.076 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005805/1.498, allocations: 1.144 MB / 1.338 GB, free: 10.82 MB / 1.076 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01539/1.513, allocations: 6.705 MB / 1.345 GB, free: 4.086 MB / 1.076 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002648/1.516, allocations: 2.297 MB / 1.347 GB, free: 1.75 MB / 1.076 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00128/1.517, allocations: 207.4 kB / 1.347 GB, free: 1.547 MB / 1.076 GB Notification: Performance of SimCode: time 7.11e-07/1.517, allocations: 0 / 1.347 GB, free: 1.547 MB / 1.076 GB Notification: Performance of Templates: time 0.1018/1.619, allocations: 79.86 MB / 1.425 GB, free: 2.012 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)