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.00133/0.00133, allocations: 103.4 kB / 15.33 MB, free: 0.5078 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.001322/0.001322, allocations: 195.8 kB / 16.26 MB, free: 6.625 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.433/1.433, allocations: 222.9 MB / 239.9 MB, free: 4.488 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.00265/0.00265, allocations: 286.8 kB / 290.4 MB, free: 2.086 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 1.062/1.062, allocations: 178.6 MB / 0.5069 GB, free: 4.766 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002672/0.002672, allocations: 101.7 kB / 0.6059 GB, free: 25 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1613/0.164, allocations: 89.15 MB / 0.693 GB, free: 4.723 MB / 494.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Electrical.DC.Loads.Examples.Resistor): time 0.00597/0.17, allocations: 3.859 MB / 0.6967 GB, free: 0.8555 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.002684/0.1727, allocations: 1.708 MB / 0.6984 GB, free: 15.14 MB / 0.4981 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001317/0.1729, allocations: 7.938 kB / 0.6984 GB, free: 15.14 MB / 0.4981 GB Notification: Performance of NFTyping.typeComponents: time 0.001348/0.1742, allocations: 484.5 kB / 0.6989 GB, free: 14.67 MB / 0.4981 GB Notification: Performance of NFTyping.typeBindings: time 0.0004607/0.1747, allocations: 207.9 kB / 0.6991 GB, free: 14.46 MB / 0.4981 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004874/0.1752, allocations: 186 kB / 0.6993 GB, free: 14.29 MB / 0.4981 GB Notification: Performance of NFFlatten.flatten: time 0.0005457/0.1758, allocations: 478.4 kB / 0.6997 GB, free: 13.82 MB / 0.4981 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0006531/0.1764, allocations: 409.8 kB / 0.7001 GB, free: 13.42 MB / 0.4981 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002241/0.1767, allocations: 199.3 kB / 0.7003 GB, free: 13.22 MB / 0.4981 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0003799/0.1771, allocations: 227.2 kB / 0.7005 GB, free: 13 MB / 0.4981 GB Notification: Performance of NFPackage.collectConstants: time 4.688e-05/0.1771, allocations: 28 kB / 0.7005 GB, free: 12.97 MB / 0.4981 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0003826/0.1775, allocations: 239.4 kB / 0.7008 GB, free: 12.74 MB / 0.4981 GB Notification: Performance of NFScalarize.scalarize: time 0.0001359/0.1776, allocations: 123.7 kB / 0.7009 GB, free: 12.62 MB / 0.4981 GB Notification: Performance of NFVerifyModel.verify: time 0.0001881/0.1778, allocations: 171.2 kB / 0.7011 GB, free: 12.45 MB / 0.4981 GB Notification: Performance of NFConvertDAE.convert: time 0.0006245/0.1785, allocations: 0.5179 MB / 0.7016 GB, free: 11.93 MB / 0.4981 GB Notification: Performance of FrontEnd - DAE generated: time 5.22e-06/0.1785, allocations: 0 / 0.7016 GB, free: 11.93 MB / 0.4981 GB Notification: Performance of FrontEnd: time 1.122e-06/0.1785, allocations: 0 / 0.7016 GB, free: 11.93 MB / 0.4981 GB Notification: Performance of Transformations before backend: time 7.344e-06/0.1785, allocations: 0 / 0.7016 GB, free: 11.93 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: 78 * Number of variables: 78 Notification: Performance of Generate backend data structure: time 0.0009942/0.1795, allocations: 0.6315 MB / 0.7022 GB, free: 11.25 MB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 3.275e-05/0.1796, allocations: 8.031 kB / 0.7022 GB, free: 11.24 MB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008912/0.1804, allocations: 140.4 kB / 0.7023 GB, free: 11.11 MB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003517/0.1808, allocations: 283.6 kB / 0.7026 GB, free: 10.79 MB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.503e-05/0.1808, allocations: 21.03 kB / 0.7026 GB, free: 10.77 MB / 0.4981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.433e-05/0.1809, allocations: 28.36 kB / 0.7026 GB, free: 10.74 MB / 0.4981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007049/0.1816, allocations: 467.9 kB / 0.7031 GB, free: 10.25 MB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.299e-05/0.1816, allocations: 0 / 0.7031 GB, free: 10.25 MB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.237e-05/0.1817, allocations: 19.98 kB / 0.7031 GB, free: 10.23 MB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.737e-05/0.1817, allocations: 28.55 kB / 0.7031 GB, free: 10.2 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005188/0.1823, allocations: 321.9 kB / 0.7034 GB, free: 9.887 MB / 0.4981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002323/0.1846, allocations: 2.189 MB / 0.7056 GB, free: 7.484 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003863/0.185, allocations: 251.8 kB / 0.7058 GB, free: 7.211 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002485/0.1852, allocations: 108.8 kB / 0.7059 GB, free: 7.102 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 1.577e-05/0.1853, allocations: 4 kB / 0.7059 GB, free: 7.098 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.87e-05/0.1853, allocations: 38.5 kB / 0.706 GB, free: 7.051 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=14): time 1.272e-06/0.1853, allocations: 0 / 0.706 GB, free: 7.051 MB / 0.4981 GB Notification: Performance of matching and sorting (n=14): time 0.0005883/0.1859, allocations: 298.9 kB / 0.7062 GB, free: 6.734 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.782e-05/0.186, allocations: 55.34 kB / 0.7063 GB, free: 6.668 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000309/0.1863, allocations: 270.5 kB / 0.7065 GB, free: 6.398 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 2.456e-05/0.1863, allocations: 33.7 kB / 0.7066 GB, free: 6.359 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 0.000151/0.1865, allocations: 207.7 kB / 0.7068 GB, free: 6.152 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 4.418e-05/0.1865, allocations: 51.34 kB / 0.7068 GB, free: 6.102 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.889e-05/0.1866, allocations: 41.95 kB / 0.7069 GB, free: 6.051 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 0.0001573/0.1868, allocations: 338.8 kB / 0.7072 GB, free: 5.711 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001045/0.1869, allocations: 60.38 kB / 0.7072 GB, free: 5.652 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001733/0.187, allocations: 147.6 kB / 0.7074 GB, free: 5.473 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000285/0.1873, allocations: 224.8 kB / 0.7076 GB, free: 5.215 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.325e-06/0.1873, allocations: 0 / 0.7076 GB, free: 5.215 MB / 0.4981 GB Notification: Performance of matching and sorting (n=28) (initialization): time 0.0004248/0.1878, allocations: 261.9 kB / 0.7079 GB, free: 4.949 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 1.618e-05/0.1878, allocations: 11.94 kB / 0.7079 GB, free: 4.938 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.279e-06/0.1878, allocations: 384 / 0.7079 GB, free: 4.938 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.000153/0.188, allocations: 32.78 kB / 0.7079 GB, free: 4.902 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001893/0.1882, allocations: 43.98 kB / 0.7079 GB, free: 4.859 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001218/0.1894, allocations: 1.426 MB / 0.7093 GB, free: 3.297 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001641/0.1896, allocations: 31.75 kB / 0.7094 GB, free: 3.266 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.555e-05/0.1896, allocations: 8 kB / 0.7094 GB, free: 3.258 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.000178/0.1898, allocations: 178.4 kB / 0.7095 GB, free: 3.074 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.139e-05/0.1898, allocations: 23.72 kB / 0.7096 GB, free: 3.051 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.089e-05/0.1899, allocations: 25.83 kB / 0.7096 GB, free: 3.023 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.657e-06/0.1899, allocations: 4 kB / 0.7096 GB, free: 3.02 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.495e-06/0.1899, allocations: 0 / 0.7096 GB, free: 3.02 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.272e-06/0.1899, allocations: 3.984 kB / 0.7096 GB, free: 3.016 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009555/0.1909, allocations: 0.6986 MB / 0.7103 GB, free: 2.227 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.418e-06/0.1909, allocations: 4 kB / 0.7103 GB, free: 2.223 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.982e-05/0.191, allocations: 23.92 kB / 0.7103 GB, free: 2.199 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 8.369e-05/0.1911, allocations: 32.97 kB / 0.7103 GB, free: 2.164 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.423e-05/0.1911, allocations: 8 kB / 0.7103 GB, free: 2.156 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001124/0.1922, allocations: 1.418 MB / 0.7117 GB, free: 0.6016 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.613e-06/0.1922, allocations: 0 / 0.7117 GB, free: 0.6016 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003458/0.1926, allocations: 310.5 kB / 0.712 GB, free: 268 kB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001116/0.1927, allocations: 116.8 kB / 0.7121 GB, free: 132 kB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.058e-05/0.1928, allocations: 4.094 kB / 0.7121 GB, free: 128 kB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001695/0.1929, allocations: 19.92 kB / 0.7122 GB, free: 108 kB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.241e-05/0.193, allocations: 19.86 kB / 0.7122 GB, free: 88 kB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.414e-05/0.193, allocations: 12 kB / 0.7122 GB, free: 76 kB / 0.4981 GB Notification: Performance of sorting global known variables: time 0.000211/0.1932, allocations: 190 kB / 0.7124 GB, free: 15.88 MB / 0.5137 GB Notification: Performance of sort global known variables: time 1.2e-07/0.1932, allocations: 0 / 0.7124 GB, free: 15.88 MB / 0.5137 GB Notification: Performance of remove unused functions: time 0.000376/0.1936, allocations: 75.75 kB / 0.7124 GB, free: 15.81 MB / 0.5137 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.0001242/0.1937, allocations: 102.2 kB / 0.7125 GB, free: 15.7 MB / 0.5137 GB Notification: Performance of simCode: created initialization part: time 0.0004678/0.1942, allocations: 286.3 kB / 0.7128 GB, free: 15.41 MB / 0.5137 GB Notification: Performance of simCode: created event and clocks part: time 2.595e-06/0.1942, allocations: 0 / 0.7128 GB, free: 15.41 MB / 0.5137 GB Notification: Performance of simCode: created simulation system equations: time 0.0002311/0.1945, allocations: 179.7 kB / 0.713 GB, free: 15.22 MB / 0.5137 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004596/0.1949, allocations: 62.28 kB / 0.713 GB, free: 15.16 MB / 0.5137 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009256/0.1959, allocations: 0.6531 MB / 0.7137 GB, free: 14.46 MB / 0.5137 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004422/0.1963, allocations: 0.7948 MB / 0.7145 GB, free: 13.64 MB / 0.5137 GB Notification: Performance of simCode: alias equations: time 0.0001535/0.1965, allocations: 46.25 kB / 0.7145 GB, free: 13.59 MB / 0.5137 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.664e-05/0.1965, allocations: 19.44 kB / 0.7145 GB, free: 13.57 MB / 0.5137 GB Notification: Performance of SimCode: time 2.6e-07/0.1965, allocations: 4 kB / 0.7145 GB, free: 13.57 MB / 0.5137 GB Notification: Performance of Templates: time 0.006477/0.203, allocations: 2.695 MB / 0.7172 GB, free: 10.91 MB / 0.5137 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)