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.001004/0.001008, allocations: 86.48 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.0008915/0.0008915, 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.374/1.374, allocations: 223.3 MB / 240 MB, free: 5.27 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.001718/0.001718, allocations: 267.1 kB / 291.3 MB, free: 1.82 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9508/0.9508, allocations: 169.5 MB / 0.5 GB, free: 14.19 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003972/0.0003972, allocations: 15.52 kB / 0.598 GB, free: 28.43 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1679/0.1684, allocations: 88.55 MB / 0.6845 GB, free: 15.46 MB / 494.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Electrical.DC.Lines.Examples.RCModel): time 0.004692/0.1731, allocations: 3.815 MB / 0.6882 GB, free: 11.64 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.002638/0.1758, allocations: 1.743 MB / 0.6899 GB, free: 9.895 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001788/0.176, allocations: 11.94 kB / 0.6899 GB, free: 9.883 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002267/0.1762, allocations: 71.42 kB / 0.69 GB, free: 9.812 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005503/0.1768, allocations: 208 kB / 0.6902 GB, free: 9.609 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005148/0.1773, allocations: 190.8 kB / 0.6904 GB, free: 9.426 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007161/0.178, allocations: 0.6813 MB / 0.691 GB, free: 8.742 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005952/0.1786, allocations: 386.8 kB / 0.6914 GB, free: 8.344 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003241/0.179, allocations: 195.8 kB / 0.6916 GB, free: 8.152 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004799/0.1794, allocations: 248.3 kB / 0.6918 GB, free: 7.91 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 7.364e-05/0.1795, allocations: 20 kB / 0.6918 GB, free: 7.891 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002833/0.1798, allocations: 123.8 kB / 0.692 GB, free: 7.77 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001355/0.18, allocations: 132.5 kB / 0.6921 GB, free: 7.641 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 9.169e-05/0.1801, allocations: 101.5 kB / 0.6922 GB, free: 7.535 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004607/0.1805, allocations: 454.9 kB / 0.6926 GB, free: 7.09 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.33e-06/0.1805, allocations: 0 / 0.6926 GB, free: 7.09 MB / 494.1 MB Notification: Performance of FrontEnd: time 1.383e-06/0.1805, allocations: 0 / 0.6926 GB, free: 7.09 MB / 494.1 MB Notification: Performance of Transformations before backend: time 9.869e-06/0.1806, allocations: 4 kB / 0.6926 GB, free: 7.086 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.001129/0.1817, allocations: 0.6666 MB / 0.6933 GB, free: 6.371 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.746e-05/0.1817, allocations: 8.031 kB / 0.6933 GB, free: 6.363 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009034/0.1827, allocations: 151.2 kB / 0.6934 GB, free: 6.215 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004183/0.1831, allocations: 321.4 kB / 0.6937 GB, free: 5.863 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.708e-05/0.1831, allocations: 29 kB / 0.6938 GB, free: 5.836 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.82e-05/0.1832, allocations: 31.98 kB / 0.6938 GB, free: 5.805 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007652/0.184, allocations: 0.5275 MB / 0.6943 GB, free: 5.242 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.457e-05/0.184, allocations: 4 kB / 0.6943 GB, free: 5.238 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.885e-05/0.184, allocations: 12 kB / 0.6943 GB, free: 5.227 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.755e-05/0.1841, allocations: 28.64 kB / 0.6943 GB, free: 5.199 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005701/0.1847, allocations: 394.2 kB / 0.6947 GB, free: 4.812 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002543/0.1872, allocations: 2.411 MB / 0.6971 GB, free: 2.176 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005161/0.1877, allocations: 264.3 kB / 0.6973 GB, free: 1.91 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001711/0.1879, allocations: 109.2 kB / 0.6974 GB, free: 1.801 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.797e-05/0.188, allocations: 7.953 kB / 0.6974 GB, free: 1.793 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.711e-05/0.188, allocations: 34.55 kB / 0.6975 GB, free: 1.75 MB / 494.1 MB Notification: Performance of pre-optimization done (n=20): time 2.154e-06/0.188, allocations: 0 / 0.6975 GB, free: 1.75 MB / 494.1 MB Notification: Performance of matching and sorting (n=23): time 0.002099/0.1901, allocations: 1.13 MB / 0.6986 GB, free: 0.5234 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.31e-05/0.1902, allocations: 55.34 kB / 0.6986 GB, free: 468 kB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002882/0.1905, allocations: 292.6 kB / 0.6989 GB, free: 164 kB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 2.726e-05/0.1905, allocations: 37.7 kB / 0.6989 GB, free: 120 kB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001513/0.1906, allocations: 223.7 kB / 0.6992 GB, free: 15.89 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 6.121e-05/0.1907, allocations: 94.59 kB / 0.6992 GB, free: 15.8 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.468e-05/0.1907, allocations: 4 kB / 0.6993 GB, free: 15.8 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 0.0001298/0.1909, allocations: 346.7 kB / 0.6996 GB, free: 15.45 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001585/0.191, allocations: 100.6 kB / 0.6997 GB, free: 15.35 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002108/0.1913, allocations: 192.4 kB / 0.6999 GB, free: 15.12 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002/0.1915, allocations: 130.7 kB / 0.7 GB, free: 15 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.413e-06/0.1915, allocations: 0 / 0.7 GB, free: 15 MB / 0.4981 GB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0006908/0.1922, allocations: 445.7 kB / 0.7004 GB, free: 14.55 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 1.966e-05/0.1922, allocations: 4 kB / 0.7004 GB, free: 14.55 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.837e-06/0.1922, allocations: 4 kB / 0.7004 GB, free: 14.54 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003265/0.1925, allocations: 98.64 kB / 0.7005 GB, free: 14.44 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002688/0.1928, allocations: 67.89 kB / 0.7006 GB, free: 14.37 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003105/0.1959, allocations: 4.06 MB / 0.7045 GB, free: 9.91 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001888/0.1961, allocations: 8.031 kB / 0.7046 GB, free: 9.902 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.803e-05/0.1962, allocations: 20.16 kB / 0.7046 GB, free: 9.883 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 (linear and non-linear blocks): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 3 {(1,100.0%) 1,(1,100.0%) 2,(1,100.0%) 2} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001898/0.1964, allocations: 175.8 kB / 0.7047 GB, free: 9.703 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.893e-05/0.1964, allocations: 39.56 kB / 0.7048 GB, free: 9.664 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.353e-05/0.1965, allocations: 42.45 kB / 0.7048 GB, free: 9.617 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.731e-06/0.1965, allocations: 7.984 kB / 0.7048 GB, free: 9.609 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.601e-06/0.1965, allocations: 0 / 0.7048 GB, free: 9.609 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.097e-06/0.1966, allocations: 0 / 0.7048 GB, free: 9.609 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004178/0.197, allocations: 397.4 kB / 0.7052 GB, free: 9.172 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.647e-06/0.197, allocations: 4 kB / 0.7052 GB, free: 9.168 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001755/0.1972, allocations: 35.98 kB / 0.7052 GB, free: 9.133 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002897/0.1975, allocations: 98.42 kB / 0.7053 GB, free: 9.027 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.778e-05/0.1975, allocations: 7.953 kB / 0.7053 GB, free: 9.02 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002815/0.2003, allocations: 4.056 MB / 0.7093 GB, free: 4.562 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.81e-07/0.2003, allocations: 0 / 0.7093 GB, free: 4.562 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007506/0.2011, allocations: 0.5578 MB / 0.7098 GB, free: 3.98 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001192/0.2012, allocations: 124.7 kB / 0.71 GB, free: 3.84 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.941e-05/0.2013, allocations: 15.94 kB / 0.71 GB, free: 3.824 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001922/0.2015, allocations: 8 kB / 0.71 GB, free: 3.816 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.28e-05/0.2015, allocations: 27.97 kB / 0.71 GB, free: 3.789 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.586e-05/0.2015, allocations: 12 kB / 0.71 GB, free: 3.777 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 0.0002004/0.2017, allocations: 203.1 kB / 0.7102 GB, free: 3.582 MB / 0.4981 GB Notification: Performance of sort global known variables: time 1e-07/0.2017, allocations: 0 / 0.7102 GB, free: 3.582 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.000433/0.2022, allocations: 96 kB / 0.7103 GB, free: 3.488 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 (linear and non-linear blocks): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 3 {(1,100.0%) 1,(1,100.0%) 2,(1,100.0%) 2} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001167/0.2023, allocations: 107.2 kB / 0.7104 GB, free: 3.375 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.0007648/0.2031, allocations: 0.6013 MB / 0.711 GB, free: 2.734 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 2.605e-06/0.2031, allocations: 0.6875 kB / 0.711 GB, free: 2.734 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 0.0004428/0.2035, allocations: 476 kB / 0.7115 GB, free: 2.23 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004628/0.204, allocations: 71.08 kB / 0.7115 GB, free: 2.164 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001115/0.2051, allocations: 0.8785 MB / 0.7124 GB, free: 1.266 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003999/0.2055, allocations: 0.8309 MB / 0.7132 GB, free: 416 kB / 0.4981 GB Notification: Performance of simCode: alias equations: time 0.0001933/0.2057, allocations: 62.92 kB / 0.7133 GB, free: 352 kB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.602e-05/0.2058, allocations: 23.44 kB / 0.7133 GB, free: 332 kB / 0.4981 GB Notification: Performance of SimCode: time 2.4e-07/0.2058, allocations: 0 / 0.7133 GB, free: 332 kB / 0.4981 GB Notification: Performance of Templates: time 0.007527/0.2133, allocations: 4.085 MB / 0.7173 GB, free: 12.28 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)