Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr BuildingSystems_BuildingSystems.Electrical.AC.OnePhase.Lines.Examples.ACLine_R.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/NcDataReader2 2.5.1-master/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo", uses=false) Using package BuildingSystems with version 2.0.0-beta (/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo) Using package NcDataReader2 with version 2.5.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-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(BuildingSystems.Electrical.AC.OnePhase.Lines.Examples.ACLine_R,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Electrical.AC.OnePhase.Lines.Examples.ACLine_R") translateModel(BuildingSystems.Electrical.AC.OnePhase.Lines.Examples.ACLine_R,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Electrical.AC.OnePhase.Lines.Examples.ACLine_R") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.000932/0.000932, allocations: 84.38 kB / 15.06 MB, free: 1.09 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.001146/0.001147, allocations: 168.7 kB / 15.95 MB, free: 204 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.296/1.296, allocations: 223.3 MB / 240 MB, free: 5.426 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.001788/0.001788, allocations: 278.5 kB / 291.4 MB, free: 1.973 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9338/0.9338, allocations: 169.5 MB / 0.5 GB, free: 14.23 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003859/0.0003859, allocations: 16.81 kB / 0.598 GB, free: 28.25 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1582/0.1586, allocations: 88.55 MB / 0.6845 GB, free: 15.47 MB / 494.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Electrical.AC.OnePhase.Lines.Examples.ACLine_R): time 0.006685/0.1653, allocations: 5.983 MB / 0.6903 GB, free: 9.465 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.004292/0.1696, allocations: 2.861 MB / 0.6931 GB, free: 6.609 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000372/0.17, allocations: 23.81 kB / 0.6932 GB, free: 6.586 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003287/0.1704, allocations: 138.8 kB / 0.6933 GB, free: 6.449 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0008687/0.1712, allocations: 410.5 kB / 0.6937 GB, free: 6.051 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007333/0.172, allocations: 314.5 kB / 0.694 GB, free: 5.746 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 0.00119/0.1732, allocations: 1.322 MB / 0.6953 GB, free: 4.422 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001551/0.1747, allocations: 0.9314 MB / 0.6962 GB, free: 3.469 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005056/0.1753, allocations: 394.4 kB / 0.6966 GB, free: 3.082 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005836/0.1758, allocations: 482.2 kB / 0.697 GB, free: 2.609 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 6.934e-05/0.1759, allocations: 36 kB / 0.697 GB, free: 2.574 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004325/0.1764, allocations: 191.7 kB / 0.6972 GB, free: 2.387 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002648/0.1766, allocations: 267.2 kB / 0.6975 GB, free: 2.125 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001638/0.1768, allocations: 173.3 kB / 0.6976 GB, free: 1.949 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0008134/0.1776, allocations: 0.8999 MB / 0.6985 GB, free: 1.047 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.709e-06/0.1776, allocations: 0 / 0.6985 GB, free: 1.047 MB / 494.1 MB Notification: Performance of FrontEnd: time 2.555e-06/0.1777, allocations: 0 / 0.6985 GB, free: 1.047 MB / 494.1 MB Notification: Performance of Transformations before backend: time 1.248e-05/0.1777, allocations: 7.938 kB / 0.6985 GB, free: 1.039 MB / 494.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 183 * Number of variables: 183 Notification: Performance of Generate backend data structure: time 0.001463/0.1791, allocations: 1.009 MB / 0.6995 GB, free: 15.97 MB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 2.984e-05/0.1792, allocations: 8.031 kB / 0.6995 GB, free: 15.96 MB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001465/0.1807, allocations: 246.5 kB / 0.6998 GB, free: 15.73 MB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000727/0.1814, allocations: 0.5287 MB / 0.7003 GB, free: 15.16 MB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.585e-05/0.1814, allocations: 45.31 kB / 0.7003 GB, free: 15.12 MB / 0.4981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.153e-05/0.1815, allocations: 63.98 kB / 0.7004 GB, free: 15.05 MB / 0.4981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001398/0.1829, allocations: 1.077 MB / 0.7014 GB, free: 13.87 MB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.243e-05/0.183, allocations: 7.938 kB / 0.7014 GB, free: 13.86 MB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.272e-05/0.1831, allocations: 32 kB / 0.7015 GB, free: 13.83 MB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001379/0.1832, allocations: 81.25 kB / 0.7016 GB, free: 13.75 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001098/0.1843, allocations: 0.7504 MB / 0.7023 GB, free: 13 MB / 0.4981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004812/0.1891, allocations: 5.905 MB / 0.7081 GB, free: 6.672 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0009132/0.19, allocations: 0.5476 MB / 0.7086 GB, free: 6.113 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004197/0.1905, allocations: 330 kB / 0.7089 GB, free: 5.789 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 3.917e-05/0.1905, allocations: 4.438 kB / 0.7089 GB, free: 5.781 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.356e-05/0.1906, allocations: 39 kB / 0.7089 GB, free: 5.734 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=47): time 1.733e-06/0.1906, allocations: 0 / 0.7089 GB, free: 5.734 MB / 0.4981 GB Notification: Performance of matching and sorting (n=48): time 0.003473/0.194, allocations: 1.99 MB / 0.7109 GB, free: 3.652 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.624e-05/0.1941, allocations: 55.84 kB / 0.7109 GB, free: 3.586 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005456/0.1946, allocations: 0.5508 MB / 0.7115 GB, free: 3.023 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 3.547e-05/0.1947, allocations: 33.7 kB / 0.7115 GB, free: 2.984 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002398/0.1949, allocations: 418.9 kB / 0.7119 GB, free: 2.566 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001203/0.1951, allocations: 169.6 kB / 0.7121 GB, free: 2.398 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.561e-05/0.1951, allocations: 16 kB / 0.7121 GB, free: 2.383 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 0.0001297/0.1952, allocations: 374.8 kB / 0.7124 GB, free: 2.008 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003864/0.1956, allocations: 269.9 kB / 0.7127 GB, free: 1.742 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005165/0.1962, allocations: 492.9 kB / 0.7132 GB, free: 1.164 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004823/0.1966, allocations: 342 kB / 0.7135 GB, free: 0.832 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.298e-06/0.1967, allocations: 4 kB / 0.7135 GB, free: 0.8281 MB / 0.4981 GB Notification: Performance of matching and sorting (n=85) (initialization): time 0.001685/0.1983, allocations: 1.082 MB / 0.7146 GB, free: 15.73 MB / 0.5137 GB Notification: Performance of prepare postOptimizeDAE: time 1.957e-05/0.1984, allocations: 8.875 kB / 0.7146 GB, free: 15.72 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.333e-05/0.1984, allocations: 11.98 kB / 0.7146 GB, free: 15.71 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007687/0.1992, allocations: 283.1 kB / 0.7148 GB, free: 15.42 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004532/0.1996, allocations: 127.8 kB / 0.715 GB, free: 15.3 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005738/0.2054, allocations: 6.587 MB / 0.7214 GB, free: 8.172 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004742/0.2059, allocations: 35.91 kB / 0.7214 GB, free: 8.137 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.663e-05/0.2059, allocations: 35.94 kB / 0.7215 GB, free: 8.102 MB / 0.5137 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 31 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (67): * Single equations (assignments): 63 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 4 {(2,100.0%) 6,(2,100.0%) 4,(2,100.0%) 2,(2,100.0%) 2} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0003159/0.2062, allocations: 246.3 kB / 0.7217 GB, free: 7.852 MB / 0.5137 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.98e-05/0.2064, allocations: 79.14 kB / 0.7218 GB, free: 7.773 MB / 0.5137 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001473/0.2078, allocations: 0.8807 MB / 0.7226 GB, free: 6.875 MB / 0.5137 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.713e-06/0.2078, allocations: 8 kB / 0.7226 GB, free: 6.867 MB / 0.5137 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.249e-06/0.2079, allocations: 4 kB / 0.7227 GB, free: 6.863 MB / 0.5137 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.753e-06/0.2079, allocations: 12.02 kB / 0.7227 GB, free: 6.852 MB / 0.5137 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00234/0.2102, allocations: 1.72 MB / 0.7243 GB, free: 5.043 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.789e-06/0.2102, allocations: 4 kB / 0.7243 GB, free: 5.039 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002412/0.2105, allocations: 55.89 kB / 0.7244 GB, free: 4.984 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006876/0.2112, allocations: 275.5 kB / 0.7247 GB, free: 4.703 MB / 0.5137 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.987e-05/0.2112, allocations: 11.94 kB / 0.7247 GB, free: 4.691 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005441/0.2167, allocations: 6.581 MB / 0.7311 GB, free: 13.58 MB / 0.5294 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.449e-06/0.2167, allocations: 4.031 kB / 0.7311 GB, free: 13.57 MB / 0.5294 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00139/0.2181, allocations: 0.9796 MB / 0.7321 GB, free: 12.55 MB / 0.5294 GB Notification: Performance of postOpt removeConstants (simulation): time 0.000286/0.2184, allocations: 188.3 kB / 0.7322 GB, free: 12.34 MB / 0.5294 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.826e-05/0.2185, allocations: 12.14 kB / 0.7323 GB, free: 12.33 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003343/0.2188, allocations: 23.97 kB / 0.7323 GB, free: 12.31 MB / 0.5294 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.783e-05/0.2189, allocations: 55.88 kB / 0.7323 GB, free: 12.25 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.17e-05/0.2189, allocations: 16 kB / 0.7323 GB, free: 12.24 MB / 0.5294 GB Notification: Performance of sorting global known variables: time 0.0003971/0.2193, allocations: 375.1 kB / 0.7327 GB, free: 11.88 MB / 0.5294 GB Notification: Performance of sort global known variables: time 1.754e-06/0.2193, allocations: 0 / 0.7327 GB, free: 11.88 MB / 0.5294 GB Notification: Performance of remove unused functions: time 0.0007291/0.2201, allocations: 227.9 kB / 0.7329 GB, free: 11.65 MB / 0.5294 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 7 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (31): * Single equations (assignments): 27 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 4 {(2,100.0%) 2,(2,100.0%) 4,(2,100.0%) 2,(2,100.0%) 6} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001332/0.2202, allocations: 119.1 kB / 0.733 GB, free: 11.52 MB / 0.5294 GB Notification: Performance of simCode: created initialization part: time 0.001775/0.222, allocations: 1.271 MB / 0.7343 GB, free: 10.2 MB / 0.5294 GB Notification: Performance of simCode: created event and clocks part: time 3.085e-06/0.222, allocations: 0 / 0.7343 GB, free: 10.2 MB / 0.5294 GB Notification: Performance of simCode: created simulation system equations: time 0.001149/0.2232, allocations: 0.8893 MB / 0.7351 GB, free: 9.258 MB / 0.5294 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000931/0.2241, allocations: 201.4 kB / 0.7353 GB, free: 9.066 MB / 0.5294 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001971/0.2261, allocations: 1.583 MB / 0.7369 GB, free: 7.445 MB / 0.5294 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005166/0.2266, allocations: 1.012 MB / 0.7379 GB, free: 6.402 MB / 0.5294 GB Notification: Performance of simCode: alias equations: time 0.0003754/0.227, allocations: 122 kB / 0.738 GB, free: 6.281 MB / 0.5294 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001138/0.2271, allocations: 43.38 kB / 0.738 GB, free: 6.238 MB / 0.5294 GB Notification: Performance of SimCode: time 2.81e-07/0.2271, allocations: 4 kB / 0.738 GB, free: 6.234 MB / 0.5294 GB Notification: Performance of Templates: time 0.01579/0.2429, allocations: 10.28 MB / 0.7481 GB, free: 12.08 MB / 0.545 GB make -j1 -f BuildingSystems_BuildingSystems.Electrical.AC.OnePhase.Lines.Examples.ACLine_R.makefile (rm -f BuildingSystems_BuildingSystems.Electrical.AC.OnePhase.Lines.Examples.ACLine_R.pipe ; mkfifo BuildingSystems_BuildingSystems.Electrical.AC.OnePhase.Lines.Examples.ACLine_R.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Electrical.AC.OnePhase.Lines.Examples.ACLine_R.pipe >> ../files/BuildingSystems_BuildingSystems.Electrical.AC.OnePhase.Lines.Examples.ACLine_R.sim & ./BuildingSystems_BuildingSystems.Electrical.AC.OnePhase.Lines.Examples.ACLine_R -abortSlowSimulation -alarm=480 -lv LOG_STATS > BuildingSystems_BuildingSystems.Electrical.AC.OnePhase.Lines.Examples.ACLine_R.pipe 2>&1)