Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr BuildingSystems_BuildingSystems.Electrical.DC.Lines.Examples.RCModel.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.DC.Lines.Examples.RCModel,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Electrical.DC.Lines.Examples.RCModel") translateModel(BuildingSystems.Electrical.DC.Lines.Examples.RCModel,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Electrical.DC.Lines.Examples.RCModel") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001053/0.001053, allocations: 111.3 kB / 15.23 MB, free: 0.6406 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.001164/0.001164, allocations: 190.6 kB / 16.14 MB, free: 6.707 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.319/1.319, allocations: 222.9 MB / 239.8 MB, free: 4.531 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002021/0.002021, allocations: 287.1 kB / 290.2 MB, free: 2.141 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9775/0.9775, allocations: 169.2 MB / 0.4977 GB, free: 14.16 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001652/0.001653, allocations: 95.92 kB / 0.5945 GB, free: 28.3 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1625/0.1642, allocations: 86.98 MB / 0.6794 GB, free: 1.172 MB / 478.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Electrical.DC.Lines.Examples.RCModel): time 0.005662/0.1698, allocations: 4.371 MB / 0.6837 GB, free: 12.79 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.002724/0.1726, allocations: 1.863 MB / 0.6855 GB, free: 10.93 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001734/0.1728, allocations: 4 kB / 0.6855 GB, free: 10.92 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001427/0.1742, allocations: 0.579 MB / 0.6861 GB, free: 10.34 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004873/0.1747, allocations: 242.9 kB / 0.6863 GB, free: 10.11 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005843/0.1753, allocations: 231.5 kB / 0.6865 GB, free: 9.879 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007573/0.1761, allocations: 0.8335 MB / 0.6874 GB, free: 9.043 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004279/0.1765, allocations: 310.9 kB / 0.6877 GB, free: 8.734 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002243/0.1768, allocations: 215.2 kB / 0.6879 GB, free: 8.523 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004193/0.1772, allocations: 279 kB / 0.6881 GB, free: 8.25 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 6.207e-05/0.1773, allocations: 24 kB / 0.6882 GB, free: 8.227 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004753/0.1778, allocations: 311.3 kB / 0.6885 GB, free: 7.922 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001466/0.1779, allocations: 143.6 kB / 0.6886 GB, free: 7.781 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001999/0.1781, allocations: 203 kB / 0.6888 GB, free: 7.582 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000618/0.1787, allocations: 0.6113 MB / 0.6894 GB, free: 6.969 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.476e-06/0.1788, allocations: 0 / 0.6894 GB, free: 6.969 MB / 494.1 MB Notification: Performance of FrontEnd: time 7.82e-07/0.1788, allocations: 0 / 0.6894 GB, free: 6.969 MB / 494.1 MB Notification: Performance of Transformations before backend: time 6.682e-06/0.1788, allocations: 0 / 0.6894 GB, free: 6.969 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: 91 * Number of variables: 91 Notification: Performance of Generate backend data structure: time 0.001182/0.18, allocations: 0.7214 MB / 0.6901 GB, free: 6.199 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.49e-05/0.18, allocations: 11.97 kB / 0.6901 GB, free: 6.188 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009913/0.181, allocations: 152.2 kB / 0.6902 GB, free: 6.039 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004145/0.1814, allocations: 330.5 kB / 0.6906 GB, free: 5.68 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.366e-05/0.1815, allocations: 21.38 kB / 0.6906 GB, free: 5.66 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.02e-05/0.1815, allocations: 40.36 kB / 0.6906 GB, free: 5.621 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007583/0.1823, allocations: 0.5318 MB / 0.6911 GB, free: 5.055 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.147e-05/0.1823, allocations: 0 / 0.6911 GB, free: 5.055 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.226e-05/0.1824, allocations: 15.98 kB / 0.6911 GB, free: 5.039 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.421e-05/0.1824, allocations: 32.64 kB / 0.6912 GB, free: 5.008 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005631/0.183, allocations: 386.3 kB / 0.6915 GB, free: 4.629 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002457/0.1854, allocations: 2.403 MB / 0.6939 GB, free: 2.004 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005221/0.186, allocations: 268 kB / 0.6941 GB, free: 1.734 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001603/0.1862, allocations: 112.8 kB / 0.6943 GB, free: 1.621 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.364e-05/0.1862, allocations: 3.938 kB / 0.6943 GB, free: 1.617 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.629e-05/0.1862, allocations: 42.55 kB / 0.6943 GB, free: 1.566 MB / 494.1 MB Notification: Performance of pre-optimization done (n=20): time 2.605e-06/0.1862, allocations: 3.984 kB / 0.6943 GB, free: 1.562 MB / 494.1 MB Notification: Performance of matching and sorting (n=23): time 0.00217/0.1884, allocations: 1.122 MB / 0.6954 GB, free: 352 kB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.963e-05/0.1884, allocations: 55.41 kB / 0.6955 GB, free: 284 kB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003308/0.1888, allocations: 304.4 kB / 0.6957 GB, free: 15.98 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 2.407e-05/0.1888, allocations: 29.7 kB / 0.6958 GB, free: 15.94 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001423/0.189, allocations: 227.6 kB / 0.696 GB, free: 15.71 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 7.561e-05/0.189, allocations: 86.84 kB / 0.6961 GB, free: 15.63 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.72e-05/0.1892, allocations: 65.88 kB / 0.6961 GB, free: 15.56 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 0.0001283/0.1893, allocations: 346.7 kB / 0.6965 GB, free: 15.21 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001667/0.1895, allocations: 100.6 kB / 0.6966 GB, free: 15.11 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002259/0.1897, allocations: 196.4 kB / 0.6967 GB, free: 14.88 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003982/0.1901, allocations: 317.1 kB / 0.6971 GB, free: 14.54 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.673e-06/0.1901, allocations: 0 / 0.6971 GB, free: 14.54 MB / 0.4981 GB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0007435/0.1909, allocations: 445 kB / 0.6975 GB, free: 14.09 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 1.631e-05/0.1909, allocations: 8 kB / 0.6975 GB, free: 14.09 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.656e-06/0.1909, allocations: 4 kB / 0.6975 GB, free: 14.08 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003544/0.1913, allocations: 94.84 kB / 0.6976 GB, free: 13.98 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002831/0.1916, allocations: 63.91 kB / 0.6976 GB, free: 13.92 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003087/0.1946, allocations: 4.072 MB / 0.7016 GB, free: 9.445 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002165/0.1949, allocations: 12 kB / 0.7016 GB, free: 9.434 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.044e-05/0.1949, allocations: 8 kB / 0.7016 GB, free: 9.426 MB / 0.4981 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 12 * 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 (34): * Single equations (assignments): 31 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 3 systems {(1,1,100.0%), (1,2,100.0%), (1,2,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0002043/0.1951, allocations: 186.3 kB / 0.7018 GB, free: 9.234 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.087e-05/0.1952, allocations: 31.62 kB / 0.7018 GB, free: 9.203 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.693e-05/0.1953, allocations: 46.41 kB / 0.7019 GB, free: 9.156 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.753e-06/0.1953, allocations: 0 / 0.7019 GB, free: 9.156 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.624e-06/0.1953, allocations: 4 kB / 0.7019 GB, free: 9.152 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.629e-06/0.1953, allocations: 3.984 kB / 0.7019 GB, free: 9.148 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004576/0.1958, allocations: 397.4 kB / 0.7023 GB, free: 8.711 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.228e-06/0.1958, allocations: 3.984 kB / 0.7023 GB, free: 8.707 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001923/0.196, allocations: 27.98 kB / 0.7023 GB, free: 8.68 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003086/0.1963, allocations: 102.5 kB / 0.7024 GB, free: 8.57 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.875e-05/0.1963, allocations: 4 kB / 0.7024 GB, free: 8.566 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002982/0.1993, allocations: 4.06 MB / 0.7064 GB, free: 4.102 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.553e-06/0.1993, allocations: 4.219 kB / 0.7064 GB, free: 4.098 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008037/0.2001, allocations: 0.5537 MB / 0.7069 GB, free: 3.52 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 0.000132/0.2003, allocations: 124.8 kB / 0.707 GB, free: 3.379 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.915e-05/0.2003, allocations: 4 kB / 0.707 GB, free: 3.375 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002092/0.2005, allocations: 20.05 kB / 0.7071 GB, free: 3.355 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.912e-05/0.2006, allocations: 15.92 kB / 0.7071 GB, free: 3.34 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.79e-05/0.2006, allocations: 8 kB / 0.7071 GB, free: 3.332 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 0.000217/0.2009, allocations: 218.9 kB / 0.7073 GB, free: 3.121 MB / 0.4981 GB Notification: Performance of sort global known variables: time 1.2e-07/0.2009, allocations: 0 / 0.7073 GB, free: 3.121 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.0004809/0.2013, allocations: 100 kB / 0.7074 GB, free: 3.023 MB / 0.4981 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 1 (RC_dyn.Vc) * 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 (18): * Single equations (assignments): 15 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 3 systems {(1,1,100.0%), (1,2,100.0%), (1,2,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0001508/0.2015, allocations: 103.2 kB / 0.7075 GB, free: 2.914 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.0008736/0.2024, allocations: 0.6057 MB / 0.7081 GB, free: 2.27 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 3.086e-06/0.2024, allocations: 4.125 kB / 0.7081 GB, free: 2.266 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 0.0005211/0.2029, allocations: 484.4 kB / 0.7085 GB, free: 1.754 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005352/0.2035, allocations: 80.19 kB / 0.7086 GB, free: 1.68 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001177/0.2047, allocations: 0.8381 MB / 0.7094 GB, free: 0.8164 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004133/0.2051, allocations: 0.8386 MB / 0.7103 GB, free: 15.95 MB / 0.5137 GB Notification: Performance of simCode: alias equations: time 0.0002107/0.2053, allocations: 62.92 kB / 0.7103 GB, free: 15.89 MB / 0.5137 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.901e-05/0.2054, allocations: 23.44 kB / 0.7103 GB, free: 15.86 MB / 0.5137 GB Notification: Performance of SimCode: time 3.71e-07/0.2054, allocations: 0 / 0.7103 GB, free: 15.86 MB / 0.5137 GB Notification: Performance of Templates: time 0.00809/0.2135, allocations: 4.277 MB / 0.7145 GB, free: 11.63 MB / 0.5137 GB make -j1 -f BuildingSystems_BuildingSystems.Electrical.DC.Lines.Examples.RCModel.makefile (rm -f BuildingSystems_BuildingSystems.Electrical.DC.Lines.Examples.RCModel.pipe ; mkfifo BuildingSystems_BuildingSystems.Electrical.DC.Lines.Examples.RCModel.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Electrical.DC.Lines.Examples.RCModel.pipe >> ../files/BuildingSystems_BuildingSystems.Electrical.DC.Lines.Examples.RCModel.sim & ./BuildingSystems_BuildingSystems.Electrical.DC.Lines.Examples.RCModel -abortSlowSimulation -alarm=480 -lv LOG_STATS > BuildingSystems_BuildingSystems.Electrical.DC.Lines.Examples.RCModel.pipe 2>&1)