Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_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.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.DCLines,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|Sloads|E.S.1.",fileNamePrefix="Buildings_latest_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_latest_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.001025/0.001025, allocations: 98.88 kB / 16.02 MB, free: 76 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001155/0.001155, allocations: 181.9 kB / 16.92 MB, free: 6.684 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.372/1.372, allocations: 223.3 MB / 241 MB, free: 5.375 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.741/2.741, allocations: 462.6 MB / 0.737 GB, free: 15.57 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.000385/0.0003851, allocations: 8.156 kB / 0.9034 GB, free: 36.41 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.291/0.2914, allocations: 159.6 MB / 1.059 GB, free: 4.977 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.DC.Lines.Examples.DCLines): time 0.02304/0.3145, allocations: 21.68 MB / 1.08 GB, free: 15.22 MB / 0.8419 GB Notification: Performance of NFInst.instExpressions: time 0.02691/0.3415, allocations: 17.37 MB / 1.097 GB, free: 13.79 MB / 0.8575 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.004355/0.3459, allocations: 103.4 kB / 1.098 GB, free: 13.69 MB / 0.8575 GB Notification: Performance of NFTyping.typeComponents: time 0.002876/0.3488, allocations: 0.5775 MB / 1.098 GB, free: 13.11 MB / 0.8575 GB Notification: Performance of NFTyping.typeBindings: time 0.01106/0.3599, allocations: 3.202 MB / 1.101 GB, free: 9.902 MB / 0.8575 GB Notification: Performance of NFTyping.typeClassSections: time 0.003657/0.3636, allocations: 1.193 MB / 1.102 GB, free: 8.715 MB / 0.8575 GB Notification: Performance of NFFlatten.flatten: time 0.009542/0.3731, allocations: 6.845 MB / 1.109 GB, free: 1.848 MB / 0.8575 GB Notification: Performance of NFFlatten.resolveConnections: time 0.004977/0.3781, allocations: 2.507 MB / 1.112 GB, free: 15.25 MB / 0.8731 GB Notification: Performance of NFEvalConstants.evaluate: time 0.004456/0.3826, allocations: 1.945 MB / 1.113 GB, free: 13.29 MB / 0.8731 GB Notification: Performance of NFSimplifyModel.simplify: time 0.004863/0.3875, allocations: 2.245 MB / 1.116 GB, free: 11.04 MB / 0.8731 GB Notification: Performance of NFPackage.collectConstants: time 0.001413/0.389, allocations: 164 kB / 1.116 GB, free: 10.88 MB / 0.8731 GB Notification: Performance of NFFlatten.collectFunctions: time 0.003763/0.3928, allocations: 1.041 MB / 1.117 GB, free: 9.836 MB / 0.8731 GB Notification: Performance of NFScalarize.scalarize: time 0.00206/0.3948, allocations: 0.9418 MB / 1.118 GB, free: 8.891 MB / 0.8731 GB Notification: Performance of NFVerifyModel.verify: time 0.004324/0.3992, allocations: 1.75 MB / 1.119 GB, free: 7.125 MB / 0.8731 GB Notification: Performance of NFConvertDAE.convert: time 0.005671/0.4049, allocations: 3.845 MB / 1.123 GB, free: 3.27 MB / 0.8731 GB Notification: Performance of FrontEnd - DAE generated: time 6.673e-06/0.4049, allocations: 0 / 1.123 GB, free: 3.27 MB / 0.8731 GB Notification: Performance of FrontEnd: time 2.605e-06/0.4049, allocations: 0 / 1.123 GB, free: 3.27 MB / 0.8731 GB Notification: Performance of Transformations before backend: time 0.0002228/0.4052, allocations: 0 / 1.123 GB, free: 3.27 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.009501/0.4147, allocations: 3.834 MB / 1.127 GB, free: 15.32 MB / 0.8887 GB Notification: Performance of prepare preOptimizeDAE: time 4.834e-05/0.4147, allocations: 15.91 kB / 1.127 GB, free: 15.31 MB / 0.8887 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01714/0.4319, allocations: 3.363 MB / 1.13 GB, free: 11.94 MB / 0.8887 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004714/0.4366, allocations: 2.057 MB / 1.132 GB, free: 9.812 MB / 0.8887 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002254/0.4369, allocations: 189 kB / 1.132 GB, free: 9.625 MB / 0.8887 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0009794/0.4379, allocations: 236.1 kB / 1.133 GB, free: 9.395 MB / 0.8887 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01296/0.4509, allocations: 4.748 MB / 1.137 GB, free: 4.5 MB / 0.8887 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001011/0.451, allocations: 4 kB / 1.137 GB, free: 4.496 MB / 0.8887 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.00079/0.4518, allocations: 99.98 kB / 1.137 GB, free: 4.398 MB / 0.8887 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002607/0.4521, allocations: 172.8 kB / 1.138 GB, free: 4.227 MB / 0.8887 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01571/0.4678, allocations: 5.241 MB / 1.143 GB, free: 14.97 MB / 0.9044 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0253/0.4932, allocations: 14.13 MB / 1.156 GB, free: 15.67 MB / 0.92 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01236/0.5056, allocations: 3.853 MB / 1.16 GB, free: 11.8 MB / 0.92 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.004211/0.5098, allocations: 1.51 MB / 1.162 GB, free: 10.29 MB / 0.92 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001825/0.51, allocations: 29.23 kB / 1.162 GB, free: 10.27 MB / 0.92 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.005095/0.5151, allocations: 1.833 MB / 1.164 GB, free: 8.367 MB / 0.92 GB Notification: Performance of pre-optimization done (n=163): time 5.691e-06/0.5152, allocations: 0 / 1.164 GB, free: 8.367 MB / 0.92 GB Notification: Performance of matching and sorting (n=250): time 0.1341/0.6493, allocations: 33.41 MB / 1.196 GB, free: 6.73 MB / 0.9512 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002313/0.6496, allocations: 0.4889 MB / 1.197 GB, free: 6.129 MB / 0.9512 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003511/0.6531, allocations: 2.308 MB / 1.199 GB, free: 3.809 MB / 0.9512 GB Notification: Performance of collectPreVariables (initialization): time 0.0004443/0.6536, allocations: 77.7 kB / 1.199 GB, free: 3.727 MB / 0.9512 GB Notification: Performance of collectInitialEqns (initialization): time 0.001241/0.6548, allocations: 1.43 MB / 1.2 GB, free: 2.281 MB / 0.9512 GB Notification: Performance of collectInitialBindings (initialization): time 0.0009543/0.6558, allocations: 0.8202 MB / 1.201 GB, free: 1.449 MB / 0.9512 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004562/0.6563, allocations: 186.4 kB / 1.201 GB, free: 1.262 MB / 0.9512 GB Notification: Performance of setup shared object (initialization): time 9.443e-05/0.6564, allocations: 305.1 kB / 1.202 GB, free: 0.9609 MB / 0.9512 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0053/0.6617, allocations: 1.929 MB / 1.204 GB, free: 15.03 MB / 0.9669 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005603/0.6673, allocations: 2.235 MB / 1.206 GB, free: 12.71 MB / 0.9669 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0111/0.6784, allocations: 4.22 MB / 1.21 GB, free: 8.352 MB / 0.9669 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.353e-05/0.6785, allocations: 0 / 1.21 GB, free: 8.352 MB / 0.9669 GB Notification: Performance of matching and sorting (n=299) (initialization): time 0.01793/0.6964, allocations: 6.2 MB / 1.216 GB, free: 2.059 MB / 0.9669 GB Notification: Performance of prepare postOptimizeDAE: time 0.0002932/0.6968, allocations: 399.6 kB / 1.216 GB, free: 1.551 MB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.854e-05/0.6968, allocations: 7.984 kB / 1.216 GB, free: 1.543 MB / 0.9669 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.006829/0.7036, allocations: 1.859 MB / 1.218 GB, free: 15.68 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00318/0.7068, allocations: 0.5852 MB / 1.219 GB, free: 15.09 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0233/0.7302, allocations: 14.18 MB / 1.232 GB, free: 0.6797 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004053/0.7343, allocations: 407.6 kB / 1.233 GB, free: 288 kB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000429/0.7347, allocations: 91.97 kB / 1.233 GB, free: 196 kB / 0.9825 GB Notification: Performance of prepare postOptimizeDAE: time 1.302e-05/0.7348, allocations: 6.344 kB / 1.233 GB, free: 192 kB / 0.9825 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.01654/0.7513, allocations: 5.788 MB / 1.239 GB, free: 10.32 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.757e-05/0.7514, allocations: 4 kB / 1.239 GB, free: 10.31 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.005639/0.757, allocations: 1.822 MB / 1.24 GB, free: 8.484 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0033/0.7603, allocations: 0.6046 MB / 1.241 GB, free: 7.879 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.5778/1.338, allocations: 13.47 MB / 1.254 GB, free: 171.4 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004054/1.342, allocations: 406.5 kB / 1.255 GB, free: 171.4 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002752/1.343, allocations: 89.14 kB / 1.255 GB, free: 171.4 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 (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.001474/1.344, allocations: 0.7732 MB / 1.255 GB, free: 171.2 MB / 0.9981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005295/1.345, allocations: 340.8 kB / 1.256 GB, free: 171.2 MB / 0.9981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007866/1.345, allocations: 396.6 kB / 1.256 GB, free: 171.2 MB / 0.9981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.445e-05/1.345, allocations: 24.03 kB / 1.256 GB, free: 171.2 MB / 0.9981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.432e-05/1.345, allocations: 8.438 kB / 1.256 GB, free: 171.2 MB / 0.9981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.771e-05/1.345, allocations: 13.12 kB / 1.256 GB, free: 171.2 MB / 0.9981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004146/1.35, allocations: 3.167 MB / 1.259 GB, free: 171 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.351e-05/1.35, allocations: 0 / 1.259 GB, free: 171 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002678/1.352, allocations: 0.5166 MB / 1.26 GB, free: 171 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.006091/1.358, allocations: 1.72 MB / 1.261 GB, free: 170.9 MB / 0.9981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003512/1.359, allocations: 53.2 kB / 1.261 GB, free: 170.9 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0232/1.382, allocations: 13.97 MB / 1.275 GB, free: 167 MB / 0.9981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.637e-06/1.382, allocations: 7.312 kB / 1.275 GB, free: 167 MB / 0.9981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0167/1.399, allocations: 5.804 MB / 1.281 GB, free: 165.3 MB / 0.9981 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001676/1.401, allocations: 0.6697 MB / 1.281 GB, free: 164.8 MB / 0.9981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006228/1.401, allocations: 44.47 kB / 1.281 GB, free: 164.8 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003321/1.404, allocations: 397.2 kB / 1.282 GB, free: 164.8 MB / 0.9981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0009709/1.405, allocations: 296.9 kB / 1.282 GB, free: 164.7 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001985/1.406, allocations: 68.92 kB / 1.282 GB, free: 164.7 MB / 0.9981 GB Notification: Performance of sorting global known variables: time 0.002214/1.408, allocations: 1.539 MB / 1.284 GB, free: 164.1 MB / 0.9981 GB Notification: Performance of sort global known variables: time 1.7e-07/1.408, allocations: 0 / 1.284 GB, free: 164.1 MB / 0.9981 GB Notification: Performance of remove unused functions: time 0.004752/1.413, allocations: 1.628 MB / 1.285 GB, free: 164 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 (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.0003723/1.413, allocations: 160.1 kB / 1.285 GB, free: 163.9 MB / 0.9981 GB Notification: Performance of simCode: created initialization part: time 0.02319/1.436, allocations: 10.1 MB / 1.295 GB, free: 160 MB / 0.9981 GB Notification: Performance of simCode: created event and clocks part: time 9.508e-06/1.436, allocations: 3.938 kB / 1.295 GB, free: 160 MB / 0.9981 GB Notification: Performance of simCode: created simulation system equations: time 0.008066/1.444, allocations: 3.496 MB / 1.299 GB, free: 158.8 MB / 0.9981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005145/1.45, allocations: 1.035 MB / 1.3 GB, free: 158.5 MB / 0.9981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01299/1.463, allocations: 8.155 MB / 1.308 GB, free: 154.1 MB / 0.9981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001735/1.464, allocations: 2.31 MB / 1.31 GB, free: 152.6 MB / 0.9981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001159/1.466, allocations: 198.2 kB / 1.31 GB, free: 152.6 MB / 0.9981 GB Notification: Performance of SimCode: time 6.71e-07/1.466, allocations: 0 / 1.31 GB, free: 152.6 MB / 0.9981 GB Notification: Performance of Templates: time 0.08176/1.547, allocations: 79.59 MB / 1.388 GB, free: 73.85 MB / 0.9981 GB make -j1 -f Buildings_latest_Buildings.Electrical.DC.Lines.Examples.DCLines.makefile (rm -f Buildings_latest_Buildings.Electrical.DC.Lines.Examples.DCLines.pipe ; mkfifo Buildings_latest_Buildings.Electrical.DC.Lines.Examples.DCLines.pipe ; head -c 1048576 < Buildings_latest_Buildings.Electrical.DC.Lines.Examples.DCLines.pipe >> ../files/Buildings_latest_Buildings.Electrical.DC.Lines.Examples.DCLines.sim & ./Buildings_latest_Buildings.Electrical.DC.Lines.Examples.DCLines -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Electrical.DC.Lines.Examples.DCLines.pipe 2>&1)