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.001071/0.001071, allocations: 115.3 kB / 15.34 MB, free: 0.5156 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.00107/0.00107, allocations: 190.9 kB / 16.25 MB, free: 6.641 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.321/1.321, allocations: 222.9 MB / 239.9 MB, free: 4.332 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.001992/0.001992, allocations: 282.8 kB / 290.4 MB, free: 1.945 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9576/0.9576, allocations: 169.2 MB / 0.4978 GB, free: 14.08 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001659/0.001659, allocations: 91.06 kB / 0.5947 GB, free: 28.48 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.158/0.1596, allocations: 86.99 MB / 0.6796 GB, free: 1.047 MB / 478.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Electrical.DC.Lines.Examples.RCModel): time 0.005522/0.1652, allocations: 4.372 MB / 0.6839 GB, free: 12.67 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.002698/0.1679, allocations: 1.851 MB / 0.6857 GB, free: 10.81 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001796/0.1681, allocations: 8 kB / 0.6857 GB, free: 10.8 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001521/0.1697, allocations: 0.5645 MB / 0.6863 GB, free: 10.24 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004917/0.1702, allocations: 234.9 kB / 0.6865 GB, free: 10.01 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005732/0.1707, allocations: 232.3 kB / 0.6867 GB, free: 9.781 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005944/0.1714, allocations: 0.6112 MB / 0.6873 GB, free: 9.168 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000691/0.1721, allocations: 0.5105 MB / 0.6878 GB, free: 8.656 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002487/0.1723, allocations: 247.2 kB / 0.688 GB, free: 8.414 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004124/0.1727, allocations: 286.9 kB / 0.6883 GB, free: 8.133 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 5.259e-05/0.1728, allocations: 36 kB / 0.6883 GB, free: 8.098 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003878/0.1732, allocations: 255.4 kB / 0.6886 GB, free: 7.848 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000137/0.1733, allocations: 147.7 kB / 0.6887 GB, free: 7.703 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001872/0.1735, allocations: 218.9 kB / 0.6889 GB, free: 7.488 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006374/0.1742, allocations: 0.6229 MB / 0.6896 GB, free: 6.863 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.747e-06/0.1742, allocations: 4 kB / 0.6896 GB, free: 6.859 MB / 494.1 MB Notification: Performance of FrontEnd: time 1.613e-06/0.1742, allocations: 4 kB / 0.6896 GB, free: 6.855 MB / 494.1 MB Notification: Performance of Transformations before backend: time 7.875e-06/0.1742, allocations: 0 / 0.6896 GB, free: 6.855 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.001256/0.1755, allocations: 0.7097 MB / 0.6903 GB, free: 6.098 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.703e-05/0.1755, allocations: 8.031 kB / 0.6903 GB, free: 6.09 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009337/0.1765, allocations: 156.2 kB / 0.6904 GB, free: 5.938 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004073/0.1769, allocations: 330.5 kB / 0.6907 GB, free: 5.578 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.359e-05/0.1769, allocations: 25.31 kB / 0.6907 GB, free: 5.555 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.677e-05/0.177, allocations: 40.36 kB / 0.6908 GB, free: 5.516 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007503/0.1777, allocations: 0.5317 MB / 0.6913 GB, free: 4.949 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.421e-05/0.1778, allocations: 0 / 0.6913 GB, free: 4.949 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.24e-05/0.1778, allocations: 16 kB / 0.6913 GB, free: 4.934 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.099e-05/0.1779, allocations: 36.62 kB / 0.6914 GB, free: 4.898 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005484/0.1784, allocations: 390.3 kB / 0.6917 GB, free: 4.516 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002445/0.1809, allocations: 2.407 MB / 0.6941 GB, free: 1.887 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004986/0.1814, allocations: 262.4 kB / 0.6943 GB, free: 1.621 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001466/0.1815, allocations: 104.8 kB / 0.6944 GB, free: 1.516 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.84e-05/0.1816, allocations: 4 kB / 0.6944 GB, free: 1.512 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.339e-05/0.1816, allocations: 38.5 kB / 0.6945 GB, free: 1.465 MB / 494.1 MB Notification: Performance of pre-optimization done (n=20): time 1.333e-06/0.1816, allocations: 8 kB / 0.6945 GB, free: 1.457 MB / 494.1 MB Notification: Performance of matching and sorting (n=23): time 0.002091/0.1837, allocations: 1.114 MB / 0.6956 GB, free: 252 kB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.273e-05/0.1837, allocations: 59.41 kB / 0.6956 GB, free: 180 kB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003001/0.1841, allocations: 308.3 kB / 0.6959 GB, free: 15.87 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 2.371e-05/0.1841, allocations: 29.7 kB / 0.6959 GB, free: 15.84 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001311/0.1842, allocations: 227.6 kB / 0.6962 GB, free: 15.61 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 6.625e-05/0.1843, allocations: 82.83 kB / 0.6962 GB, free: 15.53 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.097e-05/0.1844, allocations: 65.94 kB / 0.6963 GB, free: 15.46 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 0.0001211/0.1845, allocations: 334.8 kB / 0.6966 GB, free: 15.12 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001548/0.1847, allocations: 112.6 kB / 0.6967 GB, free: 15.01 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002112/0.1849, allocations: 204.2 kB / 0.6969 GB, free: 14.77 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003707/0.1853, allocations: 309.2 kB / 0.6972 GB, free: 14.44 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.805e-06/0.1853, allocations: 4 kB / 0.6972 GB, free: 14.43 MB / 0.4981 GB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0006693/0.186, allocations: 445.4 kB / 0.6976 GB, free: 13.99 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 2.536e-05/0.186, allocations: 8 kB / 0.6977 GB, free: 13.98 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.274e-06/0.186, allocations: 3.984 kB / 0.6977 GB, free: 13.98 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.000336/0.1863, allocations: 98.62 kB / 0.6978 GB, free: 13.87 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002657/0.1866, allocations: 67.91 kB / 0.6978 GB, free: 13.8 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003214/0.1898, allocations: 4.384 MB / 0.7021 GB, free: 8.996 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002266/0.1901, allocations: 16.16 kB / 0.7021 GB, free: 8.98 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.243e-05/0.1901, allocations: 16 kB / 0.7021 GB, free: 8.965 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.0002007/0.1903, allocations: 178.4 kB / 0.7023 GB, free: 8.781 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.72e-05/0.1904, allocations: 35.56 kB / 0.7023 GB, free: 8.746 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.355e-05/0.1905, allocations: 38.31 kB / 0.7024 GB, free: 8.707 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.216e-06/0.1905, allocations: 4 kB / 0.7024 GB, free: 8.703 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.366e-06/0.1905, allocations: 0 / 0.7024 GB, free: 8.703 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.687e-06/0.1905, allocations: 4 kB / 0.7024 GB, free: 8.699 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004505/0.191, allocations: 397.4 kB / 0.7028 GB, free: 8.262 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.964e-06/0.191, allocations: 0 / 0.7028 GB, free: 8.262 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001892/0.1912, allocations: 39.91 kB / 0.7028 GB, free: 8.223 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002977/0.1915, allocations: 94.44 kB / 0.7029 GB, free: 8.121 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.816e-05/0.1915, allocations: 4 kB / 0.7029 GB, free: 8.117 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003039/0.1945, allocations: 4.38 MB / 0.7072 GB, free: 3.312 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.372e-06/0.1946, allocations: 0 / 0.7072 GB, free: 3.312 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007916/0.1954, allocations: 0.5736 MB / 0.7077 GB, free: 2.715 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001331/0.1955, allocations: 124.7 kB / 0.7078 GB, free: 2.574 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.748e-05/0.1956, allocations: 8 kB / 0.7079 GB, free: 2.566 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001958/0.1958, allocations: 8.062 kB / 0.7079 GB, free: 2.559 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.46e-05/0.1958, allocations: 19.97 kB / 0.7079 GB, free: 2.539 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.436e-05/0.1958, allocations: 4 kB / 0.7079 GB, free: 2.535 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 0.0002092/0.1961, allocations: 215.1 kB / 0.7081 GB, free: 2.328 MB / 0.4981 GB Notification: Performance of sort global known variables: time 1.81e-07/0.1961, allocations: 3.938 kB / 0.7081 GB, free: 2.324 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.0004519/0.1965, allocations: 99.94 kB / 0.7082 GB, free: 2.227 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.000136/0.1967, allocations: 104.6 kB / 0.7083 GB, free: 2.117 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.0008456/0.1975, allocations: 0.6305 MB / 0.7089 GB, free: 1.449 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 3.256e-06/0.1975, allocations: 4.062 kB / 0.7089 GB, free: 1.445 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 0.0004618/0.198, allocations: 479.8 kB / 0.7094 GB, free: 0.9375 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004714/0.1985, allocations: 76.62 kB / 0.7094 GB, free: 0.8711 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001241/0.1997, allocations: 0.8537 MB / 0.7103 GB, free: 15.99 MB / 0.5137 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004228/0.2002, allocations: 0.8388 MB / 0.7111 GB, free: 15.12 MB / 0.5137 GB Notification: Performance of simCode: alias equations: time 0.0002034/0.2004, allocations: 62.92 kB / 0.7112 GB, free: 15.06 MB / 0.5137 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.446e-05/0.2004, allocations: 23.44 kB / 0.7112 GB, free: 15.04 MB / 0.5137 GB Notification: Performance of SimCode: time 3.3e-07/0.2004, allocations: 0 / 0.7112 GB, free: 15.04 MB / 0.5137 GB Notification: Performance of Templates: time 0.008541/0.209, allocations: 4.454 MB / 0.7155 GB, free: 10.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)