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.001721/0.001721, 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.001928/0.001928, allocations: 197.2 kB / 16.14 MB, free: 6.715 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.42/1.42, allocations: 222.9 MB / 239.8 MB, free: 4.602 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002503/0.002503, allocations: 275 kB / 290.2 MB, free: 2.203 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 1.179/1.179, allocations: 178.6 MB / 0.5068 GB, free: 4.75 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002854/0.002854, allocations: 95.09 kB / 0.6057 GB, free: 25.01 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1624/0.1653, allocations: 89.15 MB / 0.6928 GB, free: 4.805 MB / 494.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Electrical.DC.Lines.Examples.RCModel): time 0.005925/0.1712, allocations: 4.378 MB / 0.6971 GB, free: 428 kB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.002715/0.174, allocations: 1.86 MB / 0.6989 GB, free: 14.55 MB / 0.4981 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001375/0.1741, allocations: 11.94 kB / 0.6989 GB, free: 14.54 MB / 0.4981 GB Notification: Performance of NFTyping.typeComponents: time 0.001415/0.1755, allocations: 0.5552 MB / 0.6994 GB, free: 13.99 MB / 0.4981 GB Notification: Performance of NFTyping.typeBindings: time 0.0004673/0.176, allocations: 250.9 kB / 0.6997 GB, free: 13.74 MB / 0.4981 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004824/0.1765, allocations: 227.5 kB / 0.6999 GB, free: 13.52 MB / 0.4981 GB Notification: Performance of NFFlatten.flatten: time 0.0008062/0.1773, allocations: 0.8335 MB / 0.7007 GB, free: 12.68 MB / 0.4981 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0004551/0.1778, allocations: 319.1 kB / 0.701 GB, free: 12.37 MB / 0.4981 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002346/0.178, allocations: 215.1 kB / 0.7012 GB, free: 12.16 MB / 0.4981 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0004249/0.1785, allocations: 283 kB / 0.7015 GB, free: 11.88 MB / 0.4981 GB Notification: Performance of NFPackage.collectConstants: time 5.621e-05/0.1785, allocations: 24 kB / 0.7015 GB, free: 11.86 MB / 0.4981 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0004843/0.179, allocations: 315.3 kB / 0.7018 GB, free: 11.55 MB / 0.4981 GB Notification: Performance of NFScalarize.scalarize: time 0.0001454/0.1792, allocations: 135.6 kB / 0.7019 GB, free: 11.42 MB / 0.4981 GB Notification: Performance of NFVerifyModel.verify: time 0.0002178/0.1794, allocations: 206.9 kB / 0.7021 GB, free: 11.21 MB / 0.4981 GB Notification: Performance of NFConvertDAE.convert: time 0.0006645/0.1801, allocations: 0.6113 MB / 0.7027 GB, free: 10.6 MB / 0.4981 GB Notification: Performance of FrontEnd - DAE generated: time 4.007e-06/0.1801, allocations: 0 / 0.7027 GB, free: 10.6 MB / 0.4981 GB Notification: Performance of FrontEnd: time 7.82e-07/0.1801, allocations: 0 / 0.7027 GB, free: 10.6 MB / 0.4981 GB Notification: Performance of Transformations before backend: time 5.591e-06/0.1801, allocations: 0 / 0.7027 GB, free: 10.6 MB / 0.4981 GB 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.001181/0.1813, allocations: 0.7252 MB / 0.7034 GB, free: 9.828 MB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 3.308e-05/0.1813, allocations: 8.031 kB / 0.7034 GB, free: 9.82 MB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009664/0.1823, allocations: 156.1 kB / 0.7036 GB, free: 9.668 MB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004256/0.1827, allocations: 326.6 kB / 0.7039 GB, free: 9.309 MB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.488e-05/0.1828, allocations: 33.36 kB / 0.7039 GB, free: 9.273 MB / 0.4981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.719e-05/0.1828, allocations: 28.38 kB / 0.704 GB, free: 9.246 MB / 0.4981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008074/0.1837, allocations: 0.5318 MB / 0.7045 GB, free: 8.688 MB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.395e-05/0.1837, allocations: 3.938 kB / 0.7045 GB, free: 8.684 MB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.467e-05/0.1837, allocations: 19.98 kB / 0.7045 GB, free: 8.664 MB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.882e-05/0.1838, allocations: 36.64 kB / 0.7045 GB, free: 8.629 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006172/0.1844, allocations: 382.3 kB / 0.7049 GB, free: 8.254 MB / 0.4981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002626/0.187, allocations: 2.411 MB / 0.7073 GB, free: 5.621 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005244/0.1876, allocations: 262.5 kB / 0.7075 GB, free: 5.355 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001888/0.1878, allocations: 108.8 kB / 0.7076 GB, free: 5.246 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 1.26e-05/0.1878, allocations: 0 / 0.7076 GB, free: 5.246 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.724e-05/0.1878, allocations: 42.56 kB / 0.7077 GB, free: 5.195 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=20): time 4.298e-06/0.1879, allocations: 0 / 0.7077 GB, free: 5.195 MB / 0.4981 GB Notification: Performance of matching and sorting (n=23): time 0.002215/0.1901, allocations: 1.124 MB / 0.7088 GB, free: 3.973 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.112e-05/0.1901, allocations: 59.41 kB / 0.7088 GB, free: 3.902 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003222/0.1905, allocations: 304.5 kB / 0.7091 GB, free: 3.594 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 2.522e-05/0.1905, allocations: 25.7 kB / 0.7091 GB, free: 3.562 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 0.000158/0.1906, allocations: 227.6 kB / 0.7093 GB, free: 3.336 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 7.145e-05/0.1907, allocations: 86.75 kB / 0.7094 GB, free: 3.25 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001059/0.1908, allocations: 62.03 kB / 0.7095 GB, free: 3.184 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 0.0001477/0.191, allocations: 342.8 kB / 0.7098 GB, free: 2.84 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001808/0.1912, allocations: 100.6 kB / 0.7099 GB, free: 2.742 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002389/0.1914, allocations: 195.8 kB / 0.7101 GB, free: 2.512 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004305/0.1919, allocations: 319.3 kB / 0.7104 GB, free: 2.164 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.613e-06/0.1919, allocations: 0 / 0.7104 GB, free: 2.164 MB / 0.4981 GB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0007835/0.1927, allocations: 448.7 kB / 0.7108 GB, free: 1.715 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 1.476e-05/0.1927, allocations: 4 kB / 0.7108 GB, free: 1.711 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.276e-06/0.1927, allocations: 7.984 kB / 0.7108 GB, free: 1.703 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003561/0.1931, allocations: 94.69 kB / 0.7109 GB, free: 1.602 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002791/0.1933, allocations: 59.91 kB / 0.711 GB, free: 1.543 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003383/0.1967, allocations: 4.075 MB / 0.715 GB, free: 13.06 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002122/0.197, allocations: 8 kB / 0.715 GB, free: 13.05 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.469e-05/0.197, allocations: 16 kB / 0.715 GB, free: 13.04 MB / 0.5137 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.0002018/0.1972, allocations: 185.8 kB / 0.7152 GB, free: 12.85 MB / 0.5137 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.361e-05/0.1973, allocations: 31.62 kB / 0.7152 GB, free: 12.82 MB / 0.5137 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.661e-05/0.1974, allocations: 42.31 kB / 0.7152 GB, free: 12.78 MB / 0.5137 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.914e-06/0.1974, allocations: 0 / 0.7152 GB, free: 12.78 MB / 0.5137 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.406e-06/0.1974, allocations: 7.938 kB / 0.7152 GB, free: 12.77 MB / 0.5137 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.685e-06/0.1974, allocations: 0 / 0.7152 GB, free: 12.77 MB / 0.5137 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004826/0.1979, allocations: 397.3 kB / 0.7156 GB, free: 12.33 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.443e-06/0.1979, allocations: 0 / 0.7156 GB, free: 12.33 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002031/0.1981, allocations: 47.91 kB / 0.7157 GB, free: 12.29 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003074/0.1984, allocations: 86.5 kB / 0.7158 GB, free: 12.19 MB / 0.5137 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.035e-05/0.1984, allocations: 4 kB / 0.7158 GB, free: 12.19 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003253/0.2017, allocations: 4.068 MB / 0.7197 GB, free: 7.719 MB / 0.5137 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.012e-06/0.2017, allocations: 0 / 0.7197 GB, free: 7.719 MB / 0.5137 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000853/0.2026, allocations: 0.5619 MB / 0.7203 GB, free: 7.133 MB / 0.5137 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001335/0.2027, allocations: 128.7 kB / 0.7204 GB, free: 6.988 MB / 0.5137 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.07e-05/0.2028, allocations: 8 kB / 0.7204 GB, free: 6.98 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002004/0.203, allocations: 4 kB / 0.7204 GB, free: 6.977 MB / 0.5137 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.933e-05/0.203, allocations: 19.97 kB / 0.7204 GB, free: 6.957 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.675e-05/0.203, allocations: 4 kB / 0.7204 GB, free: 6.953 MB / 0.5137 GB Notification: Performance of sorting global known variables: time 0.0002221/0.2033, allocations: 219.1 kB / 0.7206 GB, free: 6.742 MB / 0.5137 GB Notification: Performance of sort global known variables: time 1.5e-07/0.2033, allocations: 3.938 kB / 0.7206 GB, free: 6.738 MB / 0.5137 GB Notification: Performance of remove unused functions: time 0.0004368/0.2037, allocations: 96 kB / 0.7207 GB, free: 6.645 MB / 0.5137 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.0001324/0.2039, allocations: 103.2 kB / 0.7208 GB, free: 6.535 MB / 0.5137 GB Notification: Performance of simCode: created initialization part: time 0.000874/0.2047, allocations: 0.6075 MB / 0.7214 GB, free: 5.891 MB / 0.5137 GB Notification: Performance of simCode: created event and clocks part: time 2.725e-06/0.2048, allocations: 0 / 0.7214 GB, free: 5.891 MB / 0.5137 GB Notification: Performance of simCode: created simulation system equations: time 0.0005324/0.2053, allocations: 480.2 kB / 0.7219 GB, free: 5.383 MB / 0.5137 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004984/0.2058, allocations: 76.44 kB / 0.722 GB, free: 5.312 MB / 0.5137 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001219/0.207, allocations: 0.8681 MB / 0.7228 GB, free: 4.418 MB / 0.5137 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004611/0.2075, allocations: 0.8309 MB / 0.7236 GB, free: 3.562 MB / 0.5137 GB Notification: Performance of simCode: alias equations: time 0.0002037/0.2077, allocations: 58.91 kB / 0.7237 GB, free: 3.504 MB / 0.5137 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.669e-05/0.2078, allocations: 27.44 kB / 0.7237 GB, free: 3.477 MB / 0.5137 GB Notification: Performance of SimCode: time 2.1e-07/0.2078, allocations: 0 / 0.7237 GB, free: 3.477 MB / 0.5137 GB Notification: Performance of Templates: time 0.008648/0.2164, allocations: 4.271 MB / 0.7279 GB, free: 15.25 MB / 0.5294 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)