Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr BuildingSystems_BuildingSystems.Electrical.DC.Loads.Examples.LinearizedLoad.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.LinearizedLoad,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Electrical.DC.Loads.Examples.LinearizedLoad") translateModel(BuildingSystems.Electrical.DC.Loads.Examples.LinearizedLoad,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Electrical.DC.Loads.Examples.LinearizedLoad") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001034/0.001034, 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.001162/0.001162, allocations: 191 kB / 16.14 MB, free: 6.707 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.309/1.309, allocations: 222.9 MB / 239.8 MB, free: 4.602 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.001958/0.001958, allocations: 290.3 kB / 290.2 MB, free: 2.207 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9159/0.9159, allocations: 169.2 MB / 0.4977 GB, free: 14.12 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001596/0.001596, allocations: 91.62 kB / 0.5945 GB, free: 28.21 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1528/0.1544, allocations: 86.98 MB / 0.6794 GB, free: 1.156 MB / 478.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Electrical.DC.Loads.Examples.LinearizedLoad): time 0.00528/0.1597, allocations: 4.112 MB / 0.6835 GB, free: 13.04 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.002234/0.162, allocations: 1.594 MB / 0.685 GB, free: 11.44 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000132/0.1621, allocations: 11.94 kB / 0.685 GB, free: 11.43 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001352/0.1635, allocations: 0.5568 MB / 0.6856 GB, free: 10.87 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003768/0.1639, allocations: 219.1 kB / 0.6858 GB, free: 10.66 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004116/0.1643, allocations: 194.5 kB / 0.686 GB, free: 10.47 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006395/0.1649, allocations: 0.7792 MB / 0.6867 GB, free: 9.688 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004389/0.1654, allocations: 318.6 kB / 0.687 GB, free: 9.375 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001971/0.1656, allocations: 191.3 kB / 0.6872 GB, free: 9.188 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000376/0.166, allocations: 267 kB / 0.6875 GB, free: 8.926 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 5.767e-05/0.166, allocations: 24 kB / 0.6875 GB, free: 8.902 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002998/0.1664, allocations: 207.6 kB / 0.6877 GB, free: 8.699 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001349/0.1665, allocations: 135.7 kB / 0.6878 GB, free: 8.566 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001777/0.1667, allocations: 187.1 kB / 0.688 GB, free: 8.383 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000492/0.1672, allocations: 0.5256 MB / 0.6885 GB, free: 7.855 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.509e-06/0.1672, allocations: 0 / 0.6885 GB, free: 7.855 MB / 494.1 MB Notification: Performance of FrontEnd: time 8.52e-07/0.1672, allocations: 0 / 0.6885 GB, free: 7.855 MB / 494.1 MB Notification: Performance of Transformations before backend: time 5.881e-06/0.1672, allocations: 0 / 0.6885 GB, free: 7.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: 90 * Number of variables: 90 Notification: Performance of Generate backend data structure: time 0.001106/0.1683, allocations: 0.6749 MB / 0.6892 GB, free: 7.133 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.137e-05/0.1684, allocations: 8.031 kB / 0.6892 GB, free: 7.125 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007046/0.1691, allocations: 104.4 kB / 0.6893 GB, free: 7.023 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003459/0.1694, allocations: 299.6 kB / 0.6896 GB, free: 6.691 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.866e-05/0.1695, allocations: 55.25 kB / 0.6896 GB, free: 6.633 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.884e-05/0.1696, allocations: 32.38 kB / 0.6896 GB, free: 6.602 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007913/0.1704, allocations: 0.5126 MB / 0.6901 GB, free: 6.066 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.296e-05/0.1704, allocations: 0 / 0.6901 GB, free: 6.066 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.89e-05/0.1704, allocations: 12 kB / 0.6901 GB, free: 6.055 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.961e-05/0.1705, allocations: 36.97 kB / 0.6902 GB, free: 6.02 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006847/0.1712, allocations: 379.7 kB / 0.6905 GB, free: 5.648 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002223/0.1734, allocations: 2.22 MB / 0.6927 GB, free: 3.195 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006754/0.1741, allocations: 260.4 kB / 0.693 GB, free: 2.934 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003527/0.1745, allocations: 156.8 kB / 0.6931 GB, free: 2.777 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.52e-05/0.1745, allocations: 0 / 0.6931 GB, free: 2.777 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.308e-05/0.1745, allocations: 38.56 kB / 0.6931 GB, free: 2.73 MB / 494.1 MB Notification: Performance of pre-optimization done (n=19): time 1.333e-06/0.1745, allocations: 0 / 0.6931 GB, free: 2.73 MB / 494.1 MB Notification: Performance of matching and sorting (n=19): time 0.001514/0.1761, allocations: 0.573 MB / 0.6937 GB, free: 2.109 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.297e-05/0.1761, allocations: 55.41 kB / 0.6938 GB, free: 2.043 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002052/0.1763, allocations: 229 kB / 0.694 GB, free: 1.812 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 2.166e-05/0.1763, allocations: 25.7 kB / 0.694 GB, free: 1.781 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000114/0.1765, allocations: 207.7 kB / 0.6942 GB, free: 1.574 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.761e-05/0.1765, allocations: 71 kB / 0.6943 GB, free: 1.504 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.839e-05/0.1766, allocations: 53.7 kB / 0.6943 GB, free: 1.445 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 0.0001027/0.1767, allocations: 326.8 kB / 0.6946 GB, free: 1.117 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002115/0.1769, allocations: 92.8 kB / 0.6947 GB, free: 1.023 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002648/0.1772, allocations: 188.8 kB / 0.6949 GB, free: 0.8008 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004529/0.1777, allocations: 273.2 kB / 0.6952 GB, free: 0.5 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.825e-06/0.1777, allocations: 0 / 0.6952 GB, free: 0.5 MB / 494.1 MB Notification: Performance of matching and sorting (n=30) (initialization): time 0.0008376/0.1785, allocations: 376.6 kB / 0.6955 GB, free: 124 kB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.44e-05/0.1786, allocations: 4 kB / 0.6955 GB, free: 120 kB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.845e-06/0.1786, allocations: 7.984 kB / 0.6955 GB, free: 112 kB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005214/0.1791, allocations: 109.7 kB / 0.6956 GB, free: 15.99 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002065/0.1793, allocations: 47.92 kB / 0.6957 GB, free: 15.95 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002997/0.1823, allocations: 2.83 MB / 0.6984 GB, free: 12.85 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002316/0.1826, allocations: 27.83 kB / 0.6985 GB, free: 12.82 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.113e-05/0.1826, allocations: 12 kB / 0.6985 GB, free: 12.81 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0003044/0.1829, allocations: 216 kB / 0.6987 GB, free: 12.59 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0002638/0.1832, allocations: 188.1 kB / 0.6989 GB, free: 12.37 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0004335/0.1836, allocations: 270.7 kB / 0.6991 GB, free: 12.07 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 3.086e-06/0.1836, allocations: 4 kB / 0.6991 GB, free: 12.07 MB / 0.4981 GB Notification: Performance of matching and sorting (n=30) (initialization_lambda0): time 0.0007512/0.1844, allocations: 351.7 kB / 0.6995 GB, free: 11.72 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 9.498e-06/0.1844, allocations: 7.984 kB / 0.6995 GB, free: 11.71 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.972e-06/0.1844, allocations: 8 kB / 0.6995 GB, free: 11.7 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002989/0.1847, allocations: 80.92 kB / 0.6996 GB, free: 11.62 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002147/0.1849, allocations: 51.91 kB / 0.6996 GB, free: 11.57 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001754/0.1867, allocations: 1.518 MB / 0.7011 GB, free: 9.922 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000242/0.187, allocations: 27.83 kB / 0.7011 GB, free: 9.895 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.702e-05/0.187, allocations: 8 kB / 0.7011 GB, free: 9.887 MB / 0.4981 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 11 * 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): 25 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 2 systems {(1,1), (1,2)} Notification: Performance of prepare postOptimizeDAE: time 0.0001289/0.1871, allocations: 196.9 kB / 0.7013 GB, free: 9.688 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.992e-05/0.1872, allocations: 19.72 kB / 0.7013 GB, free: 9.668 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.031e-05/0.1872, allocations: 42.11 kB / 0.7014 GB, free: 9.625 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.823e-06/0.1872, allocations: 0 / 0.7014 GB, free: 9.625 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.344e-06/0.1873, allocations: 0 / 0.7014 GB, free: 9.625 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.458e-06/0.1873, allocations: 4 kB / 0.7014 GB, free: 9.621 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001271/0.1885, allocations: 0.8287 MB / 0.7022 GB, free: 8.711 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.194e-06/0.1885, allocations: 0 / 0.7022 GB, free: 8.711 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001454/0.1887, allocations: 31.92 kB / 0.7022 GB, free: 8.68 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003767/0.1891, allocations: 105.7 kB / 0.7023 GB, free: 8.57 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.654e-05/0.1891, allocations: 4 kB / 0.7023 GB, free: 8.566 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002588/0.1917, allocations: 2.81 MB / 0.7051 GB, free: 5.492 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.372e-06/0.1917, allocations: 0 / 0.7051 GB, free: 5.492 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007437/0.1925, allocations: 410.5 kB / 0.7055 GB, free: 5.062 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001033/0.1926, allocations: 120.7 kB / 0.7056 GB, free: 4.926 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.262e-05/0.1926, allocations: 7.938 kB / 0.7056 GB, free: 4.918 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001698/0.1928, allocations: 11.98 kB / 0.7056 GB, free: 4.906 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.795e-05/0.1929, allocations: 19.97 kB / 0.7056 GB, free: 4.887 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.272e-05/0.1929, allocations: 4 kB / 0.7056 GB, free: 4.883 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 0.0001376/0.193, allocations: 164.5 kB / 0.7058 GB, free: 4.723 MB / 0.4981 GB Notification: Performance of sort global known variables: time 1.41e-07/0.193, allocations: 0 / 0.7058 GB, free: 4.723 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.0005655/0.1936, allocations: 167.4 kB / 0.7059 GB, free: 4.559 MB / 0.4981 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * 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 (17): * 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: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 2 systems {(1,1), (1,2)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0001166/0.1937, allocations: 111.2 kB / 0.706 GB, free: 4.441 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.00179/0.1955, allocations: 0.7575 MB / 0.7068 GB, free: 3.648 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 2.665e-06/0.1956, allocations: 0 / 0.7068 GB, free: 3.648 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 0.0007313/0.1963, allocations: 369.7 kB / 0.7071 GB, free: 3.262 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004179/0.1967, allocations: 52.62 kB / 0.7072 GB, free: 3.207 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009748/0.1977, allocations: 0.7253 MB / 0.7079 GB, free: 2.449 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003446/0.1981, allocations: 0.8107 MB / 0.7087 GB, free: 1.613 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 0.0001828/0.1982, allocations: 54.25 kB / 0.7087 GB, free: 1.559 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.558e-05/0.1983, allocations: 19.44 kB / 0.7087 GB, free: 1.539 MB / 0.4981 GB Notification: Performance of SimCode: time 2.3e-07/0.1983, allocations: 0 / 0.7087 GB, free: 1.539 MB / 0.4981 GB Notification: Performance of Templates: time 0.007842/0.2062, allocations: 4.304 MB / 0.713 GB, free: 13.27 MB / 0.5137 GB make -j1 -f BuildingSystems_BuildingSystems.Electrical.DC.Loads.Examples.LinearizedLoad.makefile (rm -f BuildingSystems_BuildingSystems.Electrical.DC.Loads.Examples.LinearizedLoad.pipe ; mkfifo BuildingSystems_BuildingSystems.Electrical.DC.Loads.Examples.LinearizedLoad.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Electrical.DC.Loads.Examples.LinearizedLoad.pipe >> ../files/BuildingSystems_BuildingSystems.Electrical.DC.Loads.Examples.LinearizedLoad.sim & ./BuildingSystems_BuildingSystems.Electrical.DC.Loads.Examples.LinearizedLoad -abortSlowSimulation -alarm=480 -lv LOG_STATS > BuildingSystems_BuildingSystems.Electrical.DC.Loads.Examples.LinearizedLoad.pipe 2>&1)