Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr BuildingSystems_BuildingSystems.Electrical.DC.Lines.Examples.Resistance.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.Resistance,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Electrical.DC.Lines.Examples.Resistance") translateModel(BuildingSystems.Electrical.DC.Lines.Examples.Resistance,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Electrical.DC.Lines.Examples.Resistance") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001395/0.001395, 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.001366/0.001366, allocations: 196.8 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.513/1.513, allocations: 222.9 MB / 239.8 MB, free: 4.613 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.00255/0.00255, allocations: 282.2 kB / 290.2 MB, free: 2.223 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 1.093/1.093, allocations: 178.6 MB / 0.5068 GB, free: 4.766 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002741/0.002741, allocations: 102.7 kB / 0.6057 GB, free: 25 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1707/0.1734, allocations: 89.15 MB / 0.6928 GB, free: 4.805 MB / 494.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Electrical.DC.Lines.Examples.Resistance): time 0.004824/0.1783, allocations: 3.115 MB / 0.6958 GB, free: 1.684 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.002068/0.1804, allocations: 1.315 MB / 0.6971 GB, free: 372 kB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.95e-05/0.1805, allocations: 7.938 kB / 0.6971 GB, free: 364 kB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0009378/0.1814, allocations: 318.9 kB / 0.6974 GB, free: 44 kB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003038/0.1817, allocations: 131.4 kB / 0.6976 GB, free: 15.91 MB / 0.4981 GB Notification: Performance of NFTyping.typeClassSections: time 0.000286/0.182, allocations: 127.7 kB / 0.6977 GB, free: 15.79 MB / 0.4981 GB Notification: Performance of NFFlatten.flatten: time 0.0004446/0.1825, allocations: 430.8 kB / 0.6981 GB, free: 15.37 MB / 0.4981 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0003026/0.1828, allocations: 160.5 kB / 0.6982 GB, free: 15.21 MB / 0.4981 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001315/0.1829, allocations: 111.5 kB / 0.6983 GB, free: 15.1 MB / 0.4981 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002768/0.1832, allocations: 147.5 kB / 0.6985 GB, free: 14.96 MB / 0.4981 GB Notification: Performance of NFPackage.collectConstants: time 3.417e-05/0.1833, allocations: 16 kB / 0.6985 GB, free: 14.94 MB / 0.4981 GB Notification: Performance of NFFlatten.collectFunctions: time 0.000343/0.1836, allocations: 203.6 kB / 0.6987 GB, free: 14.74 MB / 0.4981 GB Notification: Performance of NFScalarize.scalarize: time 9.904e-05/0.1837, allocations: 79.78 kB / 0.6988 GB, free: 14.66 MB / 0.4981 GB Notification: Performance of NFVerifyModel.verify: time 0.0001267/0.1839, allocations: 99.53 kB / 0.6989 GB, free: 14.57 MB / 0.4981 GB Notification: Performance of NFConvertDAE.convert: time 0.0004203/0.1843, allocations: 350.9 kB / 0.6992 GB, free: 14.22 MB / 0.4981 GB Notification: Performance of FrontEnd - DAE generated: time 4.087e-06/0.1843, allocations: 0 / 0.6992 GB, free: 14.22 MB / 0.4981 GB Notification: Performance of FrontEnd: time 6.51e-07/0.1843, allocations: 0 / 0.6992 GB, free: 14.22 MB / 0.4981 GB Notification: Performance of Transformations before backend: time 4.579e-06/0.1843, allocations: 0 / 0.6992 GB, free: 14.22 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: 50 * Number of variables: 50 Notification: Performance of Generate backend data structure: time 0.0008468/0.1852, allocations: 0.5069 MB / 0.6997 GB, free: 13.66 MB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 3.358e-05/0.1852, allocations: 8.031 kB / 0.6997 GB, free: 13.66 MB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000588/0.1858, allocations: 80.59 kB / 0.6998 GB, free: 13.58 MB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003006/0.1861, allocations: 241.6 kB / 0.7 GB, free: 13.3 MB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.531e-05/0.1861, allocations: 24.73 kB / 0.7 GB, free: 13.28 MB / 0.4981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.147e-05/0.1862, allocations: 20.36 kB / 0.7001 GB, free: 13.26 MB / 0.4981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004872/0.1867, allocations: 299.2 kB / 0.7003 GB, free: 12.95 MB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.054e-05/0.1867, allocations: 4 kB / 0.7003 GB, free: 12.94 MB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.822e-05/0.1867, allocations: 12 kB / 0.7004 GB, free: 12.93 MB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.643e-05/0.1868, allocations: 16.36 kB / 0.7004 GB, free: 12.91 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003284/0.1871, allocations: 193 kB / 0.7006 GB, free: 12.73 MB / 0.4981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001623/0.1887, allocations: 1.464 MB / 0.702 GB, free: 11.1 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002595/0.189, allocations: 175.7 kB / 0.7022 GB, free: 10.9 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 6.873e-05/0.1891, allocations: 36.88 kB / 0.7022 GB, free: 10.86 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 9.749e-06/0.1891, allocations: 4 kB / 0.7022 GB, free: 10.86 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.126e-05/0.1891, allocations: 34.56 kB / 0.7022 GB, free: 10.82 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=7): time 1.373e-06/0.1891, allocations: 0 / 0.7022 GB, free: 10.82 MB / 0.4981 GB Notification: Performance of matching and sorting (n=7): time 0.0004881/0.1896, allocations: 227.3 kB / 0.7024 GB, free: 10.57 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.942e-05/0.1897, allocations: 55.41 kB / 0.7025 GB, free: 10.5 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002138/0.1899, allocations: 202.8 kB / 0.7027 GB, free: 10.29 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 2.118e-05/0.1899, allocations: 29.7 kB / 0.7027 GB, free: 10.26 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001163/0.1901, allocations: 163.8 kB / 0.7029 GB, free: 10.09 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 2.511e-05/0.1901, allocations: 31.64 kB / 0.7029 GB, free: 10.06 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.688e-05/0.1901, allocations: 37.64 kB / 0.7029 GB, free: 10.02 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 0.0001588/0.1903, allocations: 330.8 kB / 0.7033 GB, free: 9.688 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 7.007e-05/0.1904, allocations: 35.98 kB / 0.7033 GB, free: 9.652 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001136/0.1905, allocations: 101.9 kB / 0.7034 GB, free: 9.523 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001957/0.1907, allocations: 148.4 kB / 0.7035 GB, free: 9.348 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.478e-06/0.1907, allocations: 4 kB / 0.7035 GB, free: 9.344 MB / 0.4981 GB Notification: Performance of matching and sorting (n=18) (initialization): time 0.0003319/0.1911, allocations: 182.4 kB / 0.7037 GB, free: 9.156 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 1.379e-05/0.1911, allocations: 8.031 kB / 0.7037 GB, free: 9.148 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.883e-06/0.1911, allocations: 4 kB / 0.7037 GB, free: 9.145 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001504/0.1912, allocations: 24.84 kB / 0.7037 GB, free: 9.117 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001121/0.1914, allocations: 27.98 kB / 0.7038 GB, free: 9.09 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001153/0.1925, allocations: 1.315 MB / 0.7051 GB, free: 7.641 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001143/0.1927, allocations: 15.84 kB / 0.7051 GB, free: 7.625 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.264e-05/0.1927, allocations: 4 kB / 0.7051 GB, free: 7.621 MB / 0.4981 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 10 * 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 (17): * Single equations (assignments): 16 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0001455/0.1928, allocations: 153.7 kB / 0.7052 GB, free: 7.461 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.168e-05/0.1929, allocations: 23.88 kB / 0.7052 GB, free: 7.438 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.93e-05/0.1929, allocations: 17.41 kB / 0.7053 GB, free: 7.426 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.442e-06/0.1929, allocations: 0 / 0.7053 GB, free: 7.426 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.375e-06/0.1929, allocations: 0 / 0.7053 GB, free: 7.426 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.734e-06/0.1929, allocations: 0 / 0.7053 GB, free: 7.426 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005468/0.1935, allocations: 451.2 kB / 0.7057 GB, free: 6.926 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.598e-06/0.1935, allocations: 4 kB / 0.7057 GB, free: 6.922 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.963e-05/0.1935, allocations: 8 kB / 0.7057 GB, free: 6.914 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 8.724e-05/0.1936, allocations: 24.84 kB / 0.7057 GB, free: 6.887 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.012e-05/0.1937, allocations: 3.984 kB / 0.7057 GB, free: 6.883 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001061/0.1947, allocations: 1.312 MB / 0.707 GB, free: 5.438 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.935e-06/0.1947, allocations: 7.875 kB / 0.707 GB, free: 5.43 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000247/0.195, allocations: 212.2 kB / 0.7072 GB, free: 5.203 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 7.936e-05/0.1951, allocations: 96.91 kB / 0.7073 GB, free: 5.09 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.259e-05/0.1951, allocations: 7.938 kB / 0.7073 GB, free: 5.082 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001116/0.1952, allocations: 8.094 kB / 0.7073 GB, free: 5.074 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.788e-05/0.1952, allocations: 0 / 0.7073 GB, free: 5.074 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.38e-06/0.1953, allocations: 7.938 kB / 0.7073 GB, free: 5.066 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 0.0001501/0.1954, allocations: 153.3 kB / 0.7075 GB, free: 4.918 MB / 0.4981 GB Notification: Performance of sort global known variables: time 1.2e-07/0.1954, allocations: 0 / 0.7075 GB, free: 4.918 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.0003179/0.1957, allocations: 51.84 kB / 0.7075 GB, free: 4.867 MB / 0.4981 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * 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 (6): * Single equations (assignments): 5 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0001179/0.1959, allocations: 103.2 kB / 0.7076 GB, free: 4.754 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.0003568/0.1962, allocations: 206.5 kB / 0.7078 GB, free: 4.539 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 2.535e-06/0.1962, allocations: 0 / 0.7078 GB, free: 4.539 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 0.0001743/0.1964, allocations: 150.6 kB / 0.708 GB, free: 4.379 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003777/0.1968, allocations: 31.97 kB / 0.708 GB, free: 4.348 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006659/0.1975, allocations: 426.1 kB / 0.7084 GB, free: 3.906 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003966/0.1979, allocations: 0.7478 MB / 0.7091 GB, free: 3.133 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 0.000102/0.198, allocations: 25.53 kB / 0.7092 GB, free: 3.105 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.51e-05/0.198, allocations: 11.44 kB / 0.7092 GB, free: 3.094 MB / 0.4981 GB Notification: Performance of SimCode: time 2.3e-07/0.1981, allocations: 7.938 kB / 0.7092 GB, free: 3.086 MB / 0.4981 GB Notification: Performance of Templates: time 0.00473/0.2028, allocations: 1.698 MB / 0.7108 GB, free: 1.418 MB / 0.4981 GB make -j1 -f BuildingSystems_BuildingSystems.Electrical.DC.Lines.Examples.Resistance.makefile (rm -f BuildingSystems_BuildingSystems.Electrical.DC.Lines.Examples.Resistance.pipe ; mkfifo BuildingSystems_BuildingSystems.Electrical.DC.Lines.Examples.Resistance.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Electrical.DC.Lines.Examples.Resistance.pipe >> ../files/BuildingSystems_BuildingSystems.Electrical.DC.Lines.Examples.Resistance.sim & ./BuildingSystems_BuildingSystems.Electrical.DC.Lines.Examples.Resistance -abortSlowSimulation -alarm=480 -lv LOG_STATS > BuildingSystems_BuildingSystems.Electrical.DC.Lines.Examples.Resistance.pipe 2>&1)