Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr BuildingSystems_BuildingSystems.Electrical.DC.Loads.Examples.Resistor.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.Loads.Examples.Resistor,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Electrical.DC.Loads.Examples.Resistor") translateModel(BuildingSystems.Electrical.DC.Loads.Examples.Resistor,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Electrical.DC.Loads.Examples.Resistor") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001133/0.001134, allocations: 108 kB / 15.61 MB, free: 152 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.00139/0.00139, allocations: 194.6 kB / 16.53 MB, free: 6.699 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.302/1.302, allocations: 222.9 MB / 240.2 MB, free: 4.398 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.001944/0.001944, allocations: 279 kB / 290.7 MB, free: 1.996 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9141/0.9141, allocations: 169.3 MB / 0.4982 GB, free: 13.88 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001642/0.001642, allocations: 101.2 kB / 0.5952 GB, free: 28.02 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1658/0.1674, allocations: 86.98 MB / 0.6802 GB, free: 0.6992 MB / 478.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Electrical.DC.Loads.Examples.Resistor): time 0.005469/0.173, allocations: 3.818 MB / 0.6839 GB, free: 12.88 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.002638/0.1756, allocations: 1.731 MB / 0.6856 GB, free: 11.14 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001581/0.1758, allocations: 11.94 kB / 0.6856 GB, free: 11.13 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001343/0.1771, allocations: 496.6 kB / 0.6861 GB, free: 10.65 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004429/0.1776, allocations: 215.8 kB / 0.6863 GB, free: 10.44 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004542/0.1781, allocations: 213 kB / 0.6865 GB, free: 10.23 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 0.000448/0.1785, allocations: 483.3 kB / 0.687 GB, free: 9.758 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00058/0.1791, allocations: 369.7 kB / 0.6873 GB, free: 9.398 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001883/0.1793, allocations: 187.3 kB / 0.6875 GB, free: 9.215 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004128/0.1797, allocations: 215.2 kB / 0.6877 GB, free: 9.004 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 5.804e-05/0.1798, allocations: 28 kB / 0.6877 GB, free: 8.977 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004378/0.1802, allocations: 251.4 kB / 0.688 GB, free: 8.73 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001391/0.1804, allocations: 123.7 kB / 0.6881 GB, free: 8.609 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001748/0.1806, allocations: 171.2 kB / 0.6882 GB, free: 8.441 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005851/0.1812, allocations: 0.4984 MB / 0.6887 GB, free: 7.941 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.967e-06/0.1812, allocations: 4 kB / 0.6887 GB, free: 7.938 MB / 494.1 MB Notification: Performance of FrontEnd: time 1.523e-06/0.1812, allocations: 0 / 0.6887 GB, free: 7.938 MB / 494.1 MB Notification: Performance of Transformations before backend: time 8.416e-06/0.1812, allocations: 0 / 0.6887 GB, free: 7.938 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: 78 * Number of variables: 78 Notification: Performance of Generate backend data structure: time 0.001133/0.1823, allocations: 0.6238 MB / 0.6893 GB, free: 7.266 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.493e-05/0.1824, allocations: 8.031 kB / 0.6893 GB, free: 7.258 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008919/0.1833, allocations: 136.4 kB / 0.6895 GB, free: 7.125 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003315/0.1836, allocations: 283.6 kB / 0.6897 GB, free: 6.809 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.178e-05/0.1837, allocations: 21.03 kB / 0.6898 GB, free: 6.789 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.964e-05/0.1837, allocations: 24.38 kB / 0.6898 GB, free: 6.766 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006332/0.1843, allocations: 471.9 kB / 0.6902 GB, free: 6.266 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.424e-05/0.1844, allocations: 3.938 kB / 0.6902 GB, free: 6.262 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.339e-05/0.1844, allocations: 12 kB / 0.6903 GB, free: 6.25 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.74e-05/0.1845, allocations: 28.55 kB / 0.6903 GB, free: 6.223 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005161/0.185, allocations: 321.9 kB / 0.6906 GB, free: 5.91 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002196/0.1872, allocations: 2.189 MB / 0.6927 GB, free: 3.508 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004349/0.1876, allocations: 259.8 kB / 0.693 GB, free: 3.227 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002418/0.1879, allocations: 108.8 kB / 0.6931 GB, free: 3.117 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.437e-05/0.1879, allocations: 4 kB / 0.6931 GB, free: 3.113 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.605e-05/0.188, allocations: 34.56 kB / 0.6931 GB, free: 3.07 MB / 494.1 MB Notification: Performance of pre-optimization done (n=14): time 1.523e-06/0.188, allocations: 0 / 0.6931 GB, free: 3.07 MB / 494.1 MB Notification: Performance of matching and sorting (n=14): time 0.0006209/0.1886, allocations: 304.3 kB / 0.6934 GB, free: 2.746 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.376e-05/0.1886, allocations: 51.41 kB / 0.6935 GB, free: 2.684 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002745/0.1889, allocations: 270.5 kB / 0.6937 GB, free: 2.418 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 2.137e-05/0.1889, allocations: 29.7 kB / 0.6937 GB, free: 2.383 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001265/0.1891, allocations: 203.9 kB / 0.6939 GB, free: 2.18 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.888e-05/0.1891, allocations: 51.34 kB / 0.694 GB, free: 2.129 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.332e-05/0.1892, allocations: 49.84 kB / 0.694 GB, free: 2.07 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 0.0001214/0.1893, allocations: 338.8 kB / 0.6944 GB, free: 1.73 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.486e-05/0.1894, allocations: 60.38 kB / 0.6944 GB, free: 1.672 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001525/0.1896, allocations: 158.7 kB / 0.6946 GB, free: 1.484 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002609/0.1899, allocations: 217.1 kB / 0.6948 GB, free: 1.234 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.886e-06/0.1899, allocations: 4 kB / 0.6948 GB, free: 1.23 MB / 494.1 MB Notification: Performance of matching and sorting (n=28) (initialization): time 0.0004151/0.1903, allocations: 261.9 kB / 0.695 GB, free: 0.9648 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.622e-05/0.1903, allocations: 11.94 kB / 0.695 GB, free: 0.9531 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.981e-06/0.1903, allocations: 0 / 0.695 GB, free: 0.9531 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001696/0.1905, allocations: 33.22 kB / 0.6951 GB, free: 0.918 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001747/0.1907, allocations: 47.91 kB / 0.6951 GB, free: 0.8711 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001037/0.1917, allocations: 1.426 MB / 0.6965 GB, free: 15.3 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000161/0.1919, allocations: 27.69 kB / 0.6965 GB, free: 15.27 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.655e-05/0.1919, allocations: 12 kB / 0.6965 GB, free: 15.26 MB / 0.4981 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 13 * 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 (27): * Single equations (assignments): 26 * 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.0001469/0.1921, allocations: 175.8 kB / 0.6967 GB, free: 15.08 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.665e-05/0.1921, allocations: 23.72 kB / 0.6967 GB, free: 15.06 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.362e-05/0.1922, allocations: 25.83 kB / 0.6968 GB, free: 15.03 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.976e-06/0.1922, allocations: 4 kB / 0.6968 GB, free: 15.03 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.958e-06/0.1922, allocations: 0 / 0.6968 GB, free: 15.03 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.925e-06/0.1922, allocations: 3.938 kB / 0.6968 GB, free: 15.02 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008076/0.193, allocations: 0.7025 MB / 0.6975 GB, free: 14.23 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.315e-06/0.1931, allocations: 0 / 0.6975 GB, free: 14.23 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.467e-05/0.1931, allocations: 31.92 kB / 0.6975 GB, free: 14.2 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 7.306e-05/0.1932, allocations: 24.97 kB / 0.6975 GB, free: 14.17 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.399e-05/0.1933, allocations: 12 kB / 0.6975 GB, free: 14.16 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009584/0.1942, allocations: 1.411 MB / 0.6989 GB, free: 12.61 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.763e-06/0.1942, allocations: 0 / 0.6989 GB, free: 12.61 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003107/0.1945, allocations: 314.7 kB / 0.6992 GB, free: 12.27 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 9.781e-05/0.1947, allocations: 116.7 kB / 0.6993 GB, free: 12.14 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.787e-05/0.1947, allocations: 4 kB / 0.6993 GB, free: 12.13 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001535/0.1948, allocations: 12 kB / 0.6993 GB, free: 12.12 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.844e-05/0.1949, allocations: 19.92 kB / 0.6993 GB, free: 12.1 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.169e-05/0.1949, allocations: 8 kB / 0.6993 GB, free: 12.09 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 0.0001642/0.1951, allocations: 193.9 kB / 0.6995 GB, free: 11.91 MB / 0.4981 GB Notification: Performance of sort global known variables: time 1.1e-07/0.1951, allocations: 0 / 0.6995 GB, free: 11.91 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.0003548/0.1954, allocations: 71.84 kB / 0.6996 GB, free: 11.84 MB / 0.4981 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 7 * 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 (14): * Single equations (assignments): 13 * 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.0001104/0.1956, allocations: 103.3 kB / 0.6997 GB, free: 11.72 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.0004164/0.196, allocations: 286.3 kB / 0.7 GB, free: 11.43 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 3.006e-06/0.196, allocations: 0 / 0.7 GB, free: 11.43 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 0.0001954/0.1962, allocations: 187.7 kB / 0.7002 GB, free: 11.23 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004351/0.1966, allocations: 65.52 kB / 0.7002 GB, free: 11.18 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007568/0.1974, allocations: 0.5336 MB / 0.7007 GB, free: 10.6 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000322/0.1977, allocations: 0.7909 MB / 0.7015 GB, free: 9.781 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 0.0001289/0.1979, allocations: 46.25 kB / 0.7016 GB, free: 9.738 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.384e-05/0.1979, allocations: 19.44 kB / 0.7016 GB, free: 9.719 MB / 0.4981 GB Notification: Performance of SimCode: time 2.91e-07/0.1979, allocations: 0 / 0.7016 GB, free: 9.719 MB / 0.4981 GB Notification: Performance of Templates: time 0.00564/0.2036, allocations: 2.699 MB / 0.7042 GB, free: 7.051 MB / 0.4981 GB make -j1 -f BuildingSystems_BuildingSystems.Electrical.DC.Loads.Examples.Resistor.makefile (rm -f BuildingSystems_BuildingSystems.Electrical.DC.Loads.Examples.Resistor.pipe ; mkfifo BuildingSystems_BuildingSystems.Electrical.DC.Loads.Examples.Resistor.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Electrical.DC.Loads.Examples.Resistor.pipe >> ../files/BuildingSystems_BuildingSystems.Electrical.DC.Loads.Examples.Resistor.sim & ./BuildingSystems_BuildingSystems.Electrical.DC.Loads.Examples.Resistor -abortSlowSimulation -alarm=480 -lv LOG_STATS > BuildingSystems_BuildingSystems.Electrical.DC.Loads.Examples.Resistor.pipe 2>&1)