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.001076/0.001076, allocations: 91.77 kB / 15.06 MB, free: 1.098 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.001199/0.001199, allocations: 172.7 kB / 15.95 MB, free: 208 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.549/1.549, allocations: 223.3 MB / 240 MB, free: 5.281 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.95/2.95, allocations: 462.6 MB / 0.736 GB, free: 15.8 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.0005531/0.0005532, allocations: 8.938 kB / 0.9021 GB, free: 36.59 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4389/0.4395, allocations: 159.6 MB / 1.058 GB, free: 5.422 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.DC.Lines.Examples.DCLines): time 0.02716/0.4667, allocations: 20.4 MB / 1.078 GB, free: 0.9609 MB / 0.8262 GB Notification: Performance of NFInst.instExpressions: time 0.02786/0.4946, allocations: 16.39 MB / 1.094 GB, free: 0.5273 MB / 0.8419 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.004073/0.4987, allocations: 103.4 kB / 1.094 GB, free: 436 kB / 0.8419 GB Notification: Performance of NFTyping.typeComponents: time 0.002836/0.5015, allocations: 0.5619 MB / 1.095 GB, free: 15.86 MB / 0.8575 GB Notification: Performance of NFTyping.typeBindings: time 0.01132/0.5129, allocations: 2.847 MB / 1.097 GB, free: 13.01 MB / 0.8575 GB Notification: Performance of NFTyping.typeClassSections: time 0.004197/0.5171, allocations: 0.9656 MB / 1.098 GB, free: 12.05 MB / 0.8575 GB Notification: Performance of NFFlatten.flatten: time 0.01181/0.5289, allocations: 5.769 MB / 1.104 GB, free: 6.258 MB / 0.8575 GB Notification: Performance of NFFlatten.resolveConnections: time 0.00606/0.535, allocations: 2.02 MB / 1.106 GB, free: 4.172 MB / 0.8575 GB Notification: Performance of NFEvalConstants.evaluate: time 0.004861/0.5399, allocations: 1.86 MB / 1.108 GB, free: 2.305 MB / 0.8575 GB Notification: Performance of NFSimplifyModel.simplify: time 0.005181/0.5451, allocations: 2.171 MB / 1.11 GB, free: 128 kB / 0.8575 GB Notification: Performance of NFPackage.collectConstants: time 0.001338/0.5465, allocations: 164 kB / 1.11 GB, free: 15.96 MB / 0.8731 GB Notification: Performance of NFFlatten.collectFunctions: time 0.002797/0.5493, allocations: 499.4 kB / 1.111 GB, free: 15.48 MB / 0.8731 GB Notification: Performance of NFScalarize.scalarize: time 0.001918/0.5513, allocations: 0.9147 MB / 1.111 GB, free: 14.56 MB / 0.8731 GB Notification: Performance of NFVerifyModel.verify: time 0.001945/0.5532, allocations: 0.6951 MB / 1.112 GB, free: 13.86 MB / 0.8731 GB Notification: Performance of NFConvertDAE.convert: time 0.006196/0.5594, allocations: 3.814 MB / 1.116 GB, free: 10.03 MB / 0.8731 GB Notification: Performance of FrontEnd - DAE generated: time 8.697e-06/0.5595, allocations: 0 / 1.116 GB, free: 10.03 MB / 0.8731 GB Notification: Performance of FrontEnd: time 1.653e-06/0.5595, allocations: 0 / 1.116 GB, free: 10.03 MB / 0.8731 GB Notification: Performance of Transformations before backend: time 0.0002669/0.5598, allocations: 3.938 kB / 1.116 GB, free: 10.03 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.009827/0.5696, allocations: 3.873 MB / 1.12 GB, free: 6.043 MB / 0.8731 GB Notification: Performance of prepare preOptimizeDAE: time 4.145e-05/0.5697, allocations: 12.03 kB / 1.12 GB, free: 6.031 MB / 0.8731 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01557/0.5852, allocations: 3.362 MB / 1.123 GB, free: 2.66 MB / 0.8731 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004611/0.5899, allocations: 1.956 MB / 1.125 GB, free: 0.6367 MB / 0.8731 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001778/0.5901, allocations: 184.7 kB / 1.125 GB, free: 464 kB / 0.8731 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005652/0.5907, allocations: 232 kB / 1.125 GB, free: 232 kB / 0.8731 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01042/0.6011, allocations: 4.728 MB / 1.13 GB, free: 11.35 MB / 0.8887 GB Notification: Performance of preOpt findStateOrder (simulation): time 4.422e-05/0.6012, allocations: 3.938 kB / 1.13 GB, free: 11.35 MB / 0.8887 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003207/0.6015, allocations: 99.98 kB / 1.13 GB, free: 11.25 MB / 0.8887 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002213/0.6017, allocations: 172.8 kB / 1.13 GB, free: 11.08 MB / 0.8887 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01308/0.6148, allocations: 5.222 MB / 1.135 GB, free: 5.84 MB / 0.8887 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02378/0.6386, allocations: 14.11 MB / 1.149 GB, free: 6.555 MB / 0.9044 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01025/0.6489, allocations: 3.847 MB / 1.153 GB, free: 2.695 MB / 0.9044 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.003388/0.6523, allocations: 1.51 MB / 1.154 GB, free: 1.184 MB / 0.9044 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001087/0.6525, allocations: 25.28 kB / 1.154 GB, free: 1.16 MB / 0.9044 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.003814/0.6563, allocations: 1.821 MB / 1.156 GB, free: 15.27 MB / 0.92 GB Notification: Performance of pre-optimization done (n=163): time 3.026e-06/0.6563, allocations: 3.938 kB / 1.156 GB, free: 15.27 MB / 0.92 GB Notification: Performance of matching and sorting (n=250): time 0.1138/0.7701, allocations: 33.39 MB / 1.189 GB, free: 13.66 MB / 0.9512 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002569/0.7704, allocations: 0.4889 MB / 1.189 GB, free: 13.06 MB / 0.9512 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003457/0.7739, allocations: 2.277 MB / 1.191 GB, free: 10.77 MB / 0.9512 GB Notification: Performance of collectPreVariables (initialization): time 0.0004365/0.7743, allocations: 77.7 kB / 1.191 GB, free: 10.69 MB / 0.9512 GB Notification: Performance of collectInitialEqns (initialization): time 0.00138/0.7757, allocations: 1.438 MB / 1.193 GB, free: 9.234 MB / 0.9512 GB Notification: Performance of collectInitialBindings (initialization): time 0.001025/0.7767, allocations: 0.8163 MB / 1.194 GB, free: 8.406 MB / 0.9512 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001846/0.7769, allocations: 48 kB / 1.194 GB, free: 8.359 MB / 0.9512 GB Notification: Performance of setup shared object (initialization): time 0.0002077/0.7772, allocations: 398.6 kB / 1.194 GB, free: 7.965 MB / 0.9512 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004593/0.7818, allocations: 1.921 MB / 1.196 GB, free: 6.039 MB / 0.9512 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004797/0.7866, allocations: 2.22 MB / 1.198 GB, free: 3.734 MB / 0.9512 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.004664/0.7912, allocations: 2.132 MB / 1.2 GB, free: 1.551 MB / 0.9512 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.037e-06/0.7913, allocations: 4 kB / 1.2 GB, free: 1.547 MB / 0.9512 GB Notification: Performance of matching and sorting (n=299) (initialization): time 0.01562/0.8069, allocations: 6.161 MB / 1.206 GB, free: 11.29 MB / 0.9669 GB Notification: Performance of prepare postOptimizeDAE: time 0.0002721/0.8072, allocations: 411.4 kB / 1.207 GB, free: 10.77 MB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.338e-05/0.8072, allocations: 8 kB / 1.207 GB, free: 10.77 MB / 0.9669 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.006085/0.8133, allocations: 1.848 MB / 1.208 GB, free: 8.914 MB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002915/0.8163, allocations: 0.589 MB / 1.209 GB, free: 8.324 MB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02286/0.8391, allocations: 14.16 MB / 1.223 GB, free: 9.926 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003639/0.8428, allocations: 399.6 kB / 1.223 GB, free: 9.535 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003361/0.8432, allocations: 91.97 kB / 1.223 GB, free: 9.445 MB / 0.9825 GB Notification: Performance of prepare postOptimizeDAE: time 1.447e-05/0.8432, allocations: 4 kB / 1.223 GB, free: 9.441 MB / 0.9825 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.01401/0.8572, allocations: 5.75 MB / 1.229 GB, free: 3.613 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.867e-05/0.8573, allocations: 8.031 kB / 1.229 GB, free: 3.605 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.005001/0.8623, allocations: 1.813 MB / 1.231 GB, free: 1.781 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002972/0.8653, allocations: 0.6124 MB / 1.231 GB, free: 1.168 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02101/0.8863, allocations: 13.43 MB / 1.244 GB, free: 3.461 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003782/0.8901, allocations: 403.6 kB / 1.245 GB, free: 3.066 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003005/0.8904, allocations: 91.97 kB / 1.245 GB, free: 2.977 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 ($whenCondition5,$whenCondition4,$whenCondition3,$whenCondition2,$whenCondition1,$PRE.varLoad1.T_start,varLoad1.T_start,$PRE.varLoad1.count,varLoad1.count,$PRE.varLoad2.T_start,varLoad2.T_start,$PRE.varLoad2.count,varLoad2.count,$PRE.varLoad3.T_start,varLoad3.T_start,$PRE.varLoad3.count,varLoad3.count,$PRE.varLoad4.T_start,varLoad4.T_start,$PRE.varLoad4.count,varLoad4.count,$PRE.varLoad5.T_start,varLoad5.T_start,$PRE.varLoad5.count,varLoad5.count) * 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 (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(10,45.0%) 52} * Non-linear torn systems: 1 {10 52} Notification: Performance of prepare postOptimizeDAE: time 0.001657/0.8921, allocations: 0.7839 MB / 1.246 GB, free: 2.18 MB / 0.9981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005829/0.8927, allocations: 328.1 kB / 1.246 GB, free: 1.855 MB / 0.9981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008665/0.8936, allocations: 392.1 kB / 1.246 GB, free: 1.465 MB / 0.9981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.494e-05/0.8936, allocations: 28 kB / 1.246 GB, free: 1.438 MB / 0.9981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.845e-05/0.8936, allocations: 12 kB / 1.246 GB, free: 1.426 MB / 0.9981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.168e-05/0.8937, allocations: 11.95 kB / 1.246 GB, free: 1.414 MB / 0.9981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.7356/1.629, allocations: 3.164 MB / 1.249 GB, free: 172.5 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.272e-05/1.629, allocations: 0.875 kB / 1.249 GB, free: 172.5 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002797/1.632, allocations: 0.5187 MB / 1.25 GB, free: 172.5 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.005785/1.638, allocations: 1.718 MB / 1.252 GB, free: 172.5 MB / 0.9981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003766/1.638, allocations: 51.55 kB / 1.252 GB, free: 172.5 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02323/1.662, allocations: 13.93 MB / 1.265 GB, free: 169.9 MB / 0.9981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.018e-06/1.662, allocations: 0 / 1.265 GB, free: 169.9 MB / 0.9981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01834/1.68, allocations: 5.789 MB / 1.271 GB, free: 169.7 MB / 0.9981 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002213/1.682, allocations: 0.6615 MB / 1.272 GB, free: 169.5 MB / 0.9981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006053/1.683, allocations: 47.78 kB / 1.272 GB, free: 169.5 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002862/1.686, allocations: 395.3 kB / 1.272 GB, free: 169.5 MB / 0.9981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001178/1.687, allocations: 313.1 kB / 1.272 GB, free: 169.5 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002007/1.687, allocations: 68.89 kB / 1.272 GB, free: 169.5 MB / 0.9981 GB Notification: Performance of sorting global known variables: time 0.002926/1.69, allocations: 1.507 MB / 1.274 GB, free: 169.3 MB / 0.9981 GB Notification: Performance of sort global known variables: time 2.81e-07/1.69, allocations: 0 / 1.274 GB, free: 169.3 MB / 0.9981 GB Notification: Performance of remove unused functions: time 0.006537/1.697, allocations: 1.625 MB / 1.275 GB, free: 169.1 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 (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(10,60.0%) 52} * Non-linear torn systems: 1 {10 52} Notification: Performance of Backend phase and start with SimCode phase: time 0.000382/1.697, allocations: 163.8 kB / 1.276 GB, free: 169 MB / 0.9981 GB Notification: Performance of simCode: created initialization part: time 0.02398/1.721, allocations: 10.08 MB / 1.285 GB, free: 165.2 MB / 0.9981 GB Notification: Performance of simCode: created event and clocks part: time 1.457e-05/1.721, allocations: 1.375 kB / 1.285 GB, free: 165.2 MB / 0.9981 GB Notification: Performance of simCode: created simulation system equations: time 0.008481/1.73, allocations: 3.493 MB / 1.289 GB, free: 163.9 MB / 0.9981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005303/1.735, allocations: 1.053 MB / 1.29 GB, free: 163.6 MB / 0.9981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01327/1.748, allocations: 7.572 MB / 1.297 GB, free: 159.9 MB / 0.9981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001963/1.75, allocations: 2.307 MB / 1.299 GB, free: 158.9 MB / 0.9981 GB Notification: Performance of simCode: alias equations: time 0.00362/1.754, allocations: 0.6353 MB / 1.3 GB, free: 158.7 MB / 0.9981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006945/1.755, allocations: 185.2 kB / 1.3 GB, free: 158.7 MB / 0.9981 GB Notification: Performance of SimCode: time 1.163e-06/1.755, allocations: 0 / 1.3 GB, free: 158.7 MB / 0.9981 GB Notification: Performance of Templates: time 0.1292/1.884, allocations: 74.07 MB / 1.373 GB, free: 88.98 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)