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.00139/0.00139, allocations: 101.1 kB / 16.27 MB, free: 6.414 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.001489/0.001489, allocations: 190.3 kB / 17.2 MB, free: 5.953 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.391/1.391, allocations: 222.9 MB / 240.9 MB, free: 15.23 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.27/2.27, allocations: 390.3 MB / 0.6653 GB, free: 0.7305 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.001301/0.001301, allocations: 62.33 kB / 0.8132 GB, free: 32.99 MB / 0.6231 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2802/0.2815, allocations: 140.4 MB / 0.9503 GB, free: 8.898 MB / 0.7325 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.DC.Lines.Examples.DCLines): time 0.02598/0.3075, allocations: 22.6 MB / 0.9723 GB, free: 2.207 MB / 0.7481 GB Notification: Performance of NFInst.instExpressions: time 0.02555/0.3331, allocations: 17.63 MB / 0.9896 GB, free: 0.5156 MB / 0.7637 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.003546/0.3367, allocations: 115.4 kB / 0.9897 GB, free: 412 kB / 0.7637 GB Notification: Performance of NFTyping.typeComponents: time 0.01091/0.3476, allocations: 4.177 MB / 0.9937 GB, free: 12.22 MB / 0.7794 GB Notification: Performance of NFTyping.typeBindings: time 0.01153/0.3592, allocations: 3.512 MB / 0.9972 GB, free: 8.699 MB / 0.7794 GB Notification: Performance of NFTyping.typeClassSections: time 0.003932/0.3631, allocations: 1.311 MB / 0.9985 GB, free: 7.391 MB / 0.7794 GB Notification: Performance of NFFlatten.flatten: time 0.008102/0.3712, allocations: 5.567 MB / 1.004 GB, free: 1.805 MB / 0.7794 GB Notification: Performance of NFFlatten.resolveConnections: time 0.004849/0.3761, allocations: 3.545 MB / 1.007 GB, free: 14.19 MB / 0.795 GB Notification: Performance of NFEvalConstants.evaluate: time 0.004198/0.3803, allocations: 2.293 MB / 1.01 GB, free: 11.89 MB / 0.795 GB Notification: Performance of NFSimplifyModel.simplify: time 0.003959/0.3843, allocations: 2.405 MB / 1.012 GB, free: 9.473 MB / 0.795 GB Notification: Performance of NFPackage.collectConstants: time 0.0008029/0.3851, allocations: 352 kB / 1.012 GB, free: 9.129 MB / 0.795 GB Notification: Performance of NFFlatten.collectFunctions: time 0.002478/0.3876, allocations: 1.018 MB / 1.013 GB, free: 8.109 MB / 0.795 GB Notification: Performance of NFScalarize.scalarize: time 0.001082/0.3887, allocations: 1.157 MB / 1.014 GB, free: 6.949 MB / 0.795 GB Notification: Performance of NFVerifyModel.verify: time 0.002494/0.3912, allocations: 1.963 MB / 1.016 GB, free: 4.977 MB / 0.795 GB Notification: Performance of NFConvertDAE.convert: time 0.005794/0.397, allocations: 5.007 MB / 1.021 GB, free: 15.95 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 7.284e-06/0.3971, allocations: 0 / 1.021 GB, free: 15.95 MB / 0.8106 GB Notification: Performance of FrontEnd: time 1.954e-06/0.3971, allocations: 0 / 1.021 GB, free: 15.95 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 0.0001703/0.3973, allocations: 4 kB / 1.021 GB, free: 15.95 MB / 0.8106 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.01005/0.4073, allocations: 4.387 MB / 1.025 GB, free: 11.45 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 4.982e-05/0.4074, allocations: 16.02 kB / 1.026 GB, free: 11.43 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0162/0.4236, allocations: 3.25 MB / 1.029 GB, free: 8.176 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004525/0.4282, allocations: 2.06 MB / 1.031 GB, free: 6.047 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001594/0.4283, allocations: 185.1 kB / 1.031 GB, free: 5.863 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005588/0.4289, allocations: 236.1 kB / 1.031 GB, free: 5.633 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01062/0.4395, allocations: 4.689 MB / 1.036 GB, free: 0.7969 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 4.159e-05/0.4396, allocations: 0 / 1.036 GB, free: 0.7969 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003058/0.4399, allocations: 108 kB / 1.036 GB, free: 0.6914 MB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001935/0.4401, allocations: 180.7 kB / 1.036 GB, free: 0.5117 MB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0136/0.4537, allocations: 5.12 MB / 1.041 GB, free: 11.38 MB / 0.8262 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02077/0.4745, allocations: 14 MB / 1.055 GB, free: 12.21 MB / 0.8419 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01096/0.4855, allocations: 3.567 MB / 1.058 GB, free: 8.625 MB / 0.8419 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.003864/0.4894, allocations: 1.381 MB / 1.059 GB, free: 7.242 MB / 0.8419 GB Notification: Performance of preOpt evalFunc (simulation): time 0.000158/0.4896, allocations: 37.2 kB / 1.059 GB, free: 7.207 MB / 0.8419 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.004436/0.4941, allocations: 1.704 MB / 1.061 GB, free: 5.434 MB / 0.8419 GB Notification: Performance of pre-optimization done (n=163): time 4.208e-06/0.4941, allocations: 0 / 1.061 GB, free: 5.434 MB / 0.8419 GB Notification: Performance of matching and sorting (n=250): time 0.502/0.9961, allocations: 27.4 MB / 1.088 GB, free: 124.7 MB / 0.8575 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001455/0.9963, allocations: 0.4924 MB / 1.088 GB, free: 124.1 MB / 0.8575 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00394/1, allocations: 2.297 MB / 1.091 GB, free: 123.2 MB / 0.8575 GB Notification: Performance of collectPreVariables (initialization): time 0.0004575/1.001, allocations: 77.16 kB / 1.091 GB, free: 123.2 MB / 0.8575 GB Notification: Performance of collectInitialEqns (initialization): time 0.001073/1.002, allocations: 1.433 MB / 1.092 GB, free: 122.1 MB / 0.8575 GB Notification: Performance of collectInitialBindings (initialization): time 0.0008394/1.003, allocations: 0.8246 MB / 1.093 GB, free: 121.4 MB / 0.8575 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0008546/1.004, allocations: 412.7 kB / 1.093 GB, free: 121.2 MB / 0.8575 GB Notification: Performance of setup shared object (initialization): time 4.413e-05/1.004, allocations: 302.8 kB / 1.094 GB, free: 120.9 MB / 0.8575 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005112/1.009, allocations: 1.754 MB / 1.095 GB, free: 120.4 MB / 0.8575 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005569/1.014, allocations: 2.048 MB / 1.097 GB, free: 119.7 MB / 0.8575 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01019/1.024, allocations: 3.835 MB / 1.101 GB, free: 118.1 MB / 0.8575 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.024e-05/1.025, allocations: 2.344 kB / 1.101 GB, free: 118.1 MB / 0.8575 GB Notification: Performance of matching and sorting (n=299) (initialization): time 0.01652/1.041, allocations: 5.812 MB / 1.107 GB, free: 116.1 MB / 0.8575 GB Notification: Performance of prepare postOptimizeDAE: time 8.266e-05/1.041, allocations: 148.1 kB / 1.107 GB, free: 115.9 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.806e-05/1.041, allocations: 9.406 kB / 1.107 GB, free: 115.9 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.006471/1.048, allocations: 1.852 MB / 1.109 GB, free: 115.6 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003016/1.051, allocations: 0.4888 MB / 1.109 GB, free: 115.5 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02177/1.073, allocations: 15.42 MB / 1.124 GB, free: 107.2 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003932/1.076, allocations: 307.4 kB / 1.125 GB, free: 107.2 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003404/1.077, allocations: 88.12 kB / 1.125 GB, free: 107.1 MB / 0.8575 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.00569/1.083, allocations: 2.315 MB / 1.127 GB, free: 106.3 MB / 0.8575 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.004842/1.087, allocations: 2.032 MB / 1.129 GB, free: 105.5 MB / 0.8575 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.00916/1.097, allocations: 3.796 MB / 1.133 GB, free: 103.4 MB / 0.8575 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 2.354e-05/1.097, allocations: 1.375 kB / 1.133 GB, free: 103.4 MB / 0.8575 GB Notification: Performance of matching and sorting (n=299) (initialization_lambda0): time 0.01362/1.11, allocations: 5.651 MB / 1.138 GB, free: 100.4 MB / 0.8575 GB Notification: Performance of prepare postOptimizeDAE: time 6.513e-05/1.11, allocations: 151.6 kB / 1.138 GB, free: 100.2 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.173e-05/1.11, allocations: 8.281 kB / 1.138 GB, free: 100.2 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.004951/1.115, allocations: 1.696 MB / 1.14 GB, free: 99.49 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002769/1.118, allocations: 0.5159 MB / 1.14 GB, free: 99.31 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01679/1.135, allocations: 14.61 MB / 1.155 GB, free: 87.38 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003809/1.139, allocations: 311.6 kB / 1.155 GB, free: 87.07 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002303/1.139, allocations: 87.97 kB / 1.155 GB, free: 86.98 MB / 0.8575 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.000633/1.14, allocations: 321.2 kB / 1.155 GB, free: 86.66 MB / 0.8575 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004967/1.14, allocations: 332 kB / 1.156 GB, free: 86.34 MB / 0.8575 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007245/1.141, allocations: 396.1 kB / 1.156 GB, free: 85.94 MB / 0.8575 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.257e-05/1.141, allocations: 24 kB / 1.156 GB, free: 85.92 MB / 0.8575 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.216e-05/1.141, allocations: 9.094 kB / 1.156 GB, free: 85.91 MB / 0.8575 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.582e-05/1.141, allocations: 15.95 kB / 1.156 GB, free: 85.89 MB / 0.8575 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003045/1.144, allocations: 3.169 MB / 1.159 GB, free: 82.76 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.043e-06/1.144, allocations: 0 / 1.159 GB, free: 82.76 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002319/1.146, allocations: 435.3 kB / 1.16 GB, free: 82.33 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.005103/1.152, allocations: 1.711 MB / 1.161 GB, free: 80.61 MB / 0.8575 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002405/1.152, allocations: 52.84 kB / 1.161 GB, free: 80.56 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01725/1.169, allocations: 15.22 MB / 1.176 GB, free: 65.07 MB / 0.8575 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.974e-06/1.169, allocations: 0 / 1.176 GB, free: 65.07 MB / 0.8575 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01296/1.182, allocations: 5.424 MB / 1.181 GB, free: 59.61 MB / 0.8575 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001557/1.184, allocations: 0.6688 MB / 1.182 GB, free: 58.92 MB / 0.8575 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005502/1.184, allocations: 47.98 kB / 1.182 GB, free: 58.87 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002752/1.187, allocations: 295.6 kB / 1.182 GB, free: 58.58 MB / 0.8575 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007569/1.188, allocations: 290.7 kB / 1.183 GB, free: 58.3 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001584/1.188, allocations: 71.97 kB / 1.183 GB, free: 58.23 MB / 0.8575 GB Notification: Performance of sorting global known variables: time 0.001705/1.19, allocations: 1.532 MB / 1.184 GB, free: 56.7 MB / 0.8575 GB Notification: Performance of sort global known variables: time 1.413e-06/1.19, allocations: 3.375 kB / 1.184 GB, free: 56.7 MB / 0.8575 GB Notification: Performance of remove unused functions: time 0.004129/1.194, allocations: 1.648 MB / 1.186 GB, free: 55.05 MB / 0.8575 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.000276/1.194, allocations: 170.9 kB / 1.186 GB, free: 54.88 MB / 0.8575 GB Notification: Performance of simCode: created initialization part: time 0.02232/1.216, allocations: 10.2 MB / 1.196 GB, free: 44.52 MB / 0.8575 GB Notification: Performance of simCode: created event and clocks part: time 9.017e-06/1.216, allocations: 8 kB / 1.196 GB, free: 44.51 MB / 0.8575 GB Notification: Performance of simCode: created simulation system equations: time 0.007201/1.224, allocations: 3.315 MB / 1.199 GB, free: 41.17 MB / 0.8575 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004238/1.228, allocations: 1.148 MB / 1.2 GB, free: 40.1 MB / 0.8575 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0121/1.24, allocations: 6.778 MB / 1.207 GB, free: 33.3 MB / 0.8575 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001508/1.242, allocations: 2.298 MB / 1.209 GB, free: 30.96 MB / 0.8575 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00105/1.243, allocations: 207.4 kB / 1.209 GB, free: 30.76 MB / 0.8575 GB Notification: Performance of SimCode: time 9.81e-07/1.243, allocations: 3.938 kB / 1.209 GB, free: 30.76 MB / 0.8575 GB Notification: Performance of Templates: time 0.08722/1.33, allocations: 79.58 MB / 1.287 GB, free: 15.52 MB / 0.92 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)