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.001058/0.001058, 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.001068/0.001068, allocations: 194.9 kB / 16.53 MB, free: 6.664 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.383 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.00203/0.00203, allocations: 279.1 kB / 290.7 MB, free: 1.988 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9123/0.9123, allocations: 169.3 MB / 0.4982 GB, free: 13.95 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002431/0.002431, allocations: 99.88 kB / 0.5952 GB, free: 28.04 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1584/0.1608, allocations: 86.98 MB / 0.6802 GB, free: 0.7227 MB / 478.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Electrical.DC.Loads.Examples.LinearizedLoad): time 0.006226/0.1671, allocations: 4.088 MB / 0.6842 GB, free: 12.63 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.002653/0.1698, allocations: 1.597 MB / 0.6857 GB, free: 11.03 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003103/0.1701, allocations: 8 kB / 0.6857 GB, free: 11.02 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001654/0.1718, allocations: 0.5837 MB / 0.6863 GB, free: 10.44 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006636/0.1725, allocations: 238.8 kB / 0.6865 GB, free: 10.2 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006214/0.1731, allocations: 218.4 kB / 0.6867 GB, free: 9.992 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007255/0.1738, allocations: 0.5413 MB / 0.6873 GB, free: 9.449 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0008088/0.1747, allocations: 477.8 kB / 0.6877 GB, free: 8.98 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004242/0.1751, allocations: 227.3 kB / 0.6879 GB, free: 8.758 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005259/0.1756, allocations: 251.1 kB / 0.6882 GB, free: 8.512 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 8.206e-05/0.1757, allocations: 36 kB / 0.6882 GB, free: 8.477 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003603/0.1761, allocations: 167.7 kB / 0.6884 GB, free: 8.312 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001785/0.1763, allocations: 147.6 kB / 0.6885 GB, free: 8.168 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002737/0.1766, allocations: 195.1 kB / 0.6887 GB, free: 7.977 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007215/0.1773, allocations: 0.5217 MB / 0.6892 GB, free: 7.453 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.22e-06/0.1773, allocations: 0 / 0.6892 GB, free: 7.453 MB / 494.1 MB Notification: Performance of FrontEnd: time 2.164e-06/0.1773, allocations: 4 kB / 0.6892 GB, free: 7.449 MB / 494.1 MB Notification: Performance of Transformations before backend: time 1.968e-05/0.1773, allocations: 0 / 0.6892 GB, free: 7.449 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.001474/0.1788, allocations: 0.671 MB / 0.6899 GB, free: 6.73 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.412e-05/0.1789, allocations: 8.031 kB / 0.6899 GB, free: 6.723 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007945/0.1797, allocations: 108.4 kB / 0.69 GB, free: 6.617 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004403/0.1801, allocations: 299.6 kB / 0.6903 GB, free: 6.285 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.943e-05/0.1802, allocations: 55.27 kB / 0.6903 GB, free: 6.227 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.16e-05/0.1803, allocations: 28.38 kB / 0.6903 GB, free: 6.199 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008273/0.1811, allocations: 0.5087 MB / 0.6908 GB, free: 5.672 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.479e-05/0.1811, allocations: 3.938 kB / 0.6908 GB, free: 5.668 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.135e-05/0.1812, allocations: 16 kB / 0.6909 GB, free: 5.652 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.909e-05/0.1812, allocations: 36.97 kB / 0.6909 GB, free: 5.617 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006764/0.1819, allocations: 371.7 kB / 0.6912 GB, free: 5.25 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002497/0.1844, allocations: 2.22 MB / 0.6934 GB, free: 2.801 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006922/0.1851, allocations: 270.6 kB / 0.6937 GB, free: 2.527 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003739/0.1855, allocations: 148.8 kB / 0.6938 GB, free: 2.379 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.973e-05/0.1856, allocations: 0 / 0.6938 GB, free: 2.379 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.345e-05/0.1856, allocations: 42.5 kB / 0.6939 GB, free: 2.328 MB / 494.1 MB Notification: Performance of pre-optimization done (n=19): time 1.733e-06/0.1856, allocations: 4 kB / 0.6939 GB, free: 2.324 MB / 494.1 MB Notification: Performance of matching and sorting (n=19): time 0.001542/0.1872, allocations: 0.5647 MB / 0.6944 GB, free: 1.711 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.058e-05/0.1872, allocations: 55.41 kB / 0.6945 GB, free: 1.645 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002478/0.1875, allocations: 225 kB / 0.6947 GB, free: 1.414 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 2.772e-05/0.1875, allocations: 29.7 kB / 0.6947 GB, free: 1.379 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001529/0.1877, allocations: 207.7 kB / 0.6949 GB, free: 1.172 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.762e-05/0.1877, allocations: 74.92 kB / 0.695 GB, free: 1.098 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000102/0.1878, allocations: 53.7 kB / 0.695 GB, free: 1.039 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 0.0001317/0.188, allocations: 326.8 kB / 0.6953 GB, free: 0.7109 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000221/0.1882, allocations: 100.8 kB / 0.6954 GB, free: 0.6094 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002761/0.1885, allocations: 183 kB / 0.6956 GB, free: 400 kB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004888/0.189, allocations: 275.2 kB / 0.6959 GB, free: 92 kB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.725e-06/0.189, allocations: 0 / 0.6959 GB, free: 92 kB / 494.1 MB Notification: Performance of matching and sorting (n=30) (initialization): time 0.0008705/0.1899, allocations: 377.1 kB / 0.6962 GB, free: 15.71 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 1.72e-05/0.1899, allocations: 12.05 kB / 0.6962 GB, free: 15.7 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.277e-06/0.1899, allocations: 4 kB / 0.6962 GB, free: 15.69 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004975/0.1904, allocations: 105.6 kB / 0.6963 GB, free: 15.58 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001991/0.1906, allocations: 47.91 kB / 0.6964 GB, free: 15.54 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0032/0.1938, allocations: 3.051 MB / 0.6994 GB, free: 12.2 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002489/0.1941, allocations: 35.67 kB / 0.6994 GB, free: 12.16 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.875e-05/0.1941, allocations: 8 kB / 0.6994 GB, free: 12.16 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0003202/0.1945, allocations: 220.7 kB / 0.6996 GB, free: 11.94 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0002578/0.1947, allocations: 180.8 kB / 0.6998 GB, free: 11.72 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0004477/0.1952, allocations: 265.3 kB / 0.7001 GB, free: 11.43 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 3.927e-06/0.1952, allocations: 4 kB / 0.7001 GB, free: 11.43 MB / 0.4981 GB Notification: Performance of matching and sorting (n=30) (initialization_lambda0): time 0.000768/0.196, allocations: 348 kB / 0.7004 GB, free: 11.08 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 1.216e-05/0.196, allocations: 10.28 kB / 0.7004 GB, free: 11.07 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.588e-06/0.196, allocations: 8 kB / 0.7004 GB, free: 11.06 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002892/0.1963, allocations: 80.78 kB / 0.7005 GB, free: 10.98 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000221/0.1965, allocations: 55.91 kB / 0.7005 GB, free: 10.93 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001906/0.1984, allocations: 1.621 MB / 0.7021 GB, free: 9.164 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002527/0.1987, allocations: 27.83 kB / 0.7021 GB, free: 9.137 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.216e-05/0.1987, allocations: 15.94 kB / 0.7022 GB, free: 9.121 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.0001399/0.1989, allocations: 197.5 kB / 0.7023 GB, free: 8.922 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.151e-05/0.1989, allocations: 23.72 kB / 0.7024 GB, free: 8.898 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.066e-05/0.199, allocations: 34.23 kB / 0.7024 GB, free: 8.863 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.076e-06/0.199, allocations: 4 kB / 0.7024 GB, free: 8.859 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.846e-06/0.199, allocations: 0 / 0.7024 GB, free: 8.859 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.739e-06/0.199, allocations: 3.938 kB / 0.7024 GB, free: 8.855 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001318/0.2003, allocations: 0.8209 MB / 0.7032 GB, free: 7.957 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.14e-06/0.2004, allocations: 4 kB / 0.7032 GB, free: 7.953 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001352/0.2005, allocations: 31.92 kB / 0.7032 GB, free: 7.922 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003646/0.2009, allocations: 105.7 kB / 0.7033 GB, free: 7.812 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.833e-05/0.2009, allocations: 12 kB / 0.7034 GB, free: 7.801 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002757/0.2037, allocations: 3.02 MB / 0.7063 GB, free: 4.504 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.703e-06/0.2037, allocations: 0 / 0.7063 GB, free: 4.504 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007321/0.2044, allocations: 418.5 kB / 0.7067 GB, free: 4.066 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001018/0.2045, allocations: 116.8 kB / 0.7068 GB, free: 3.934 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.065e-05/0.2046, allocations: 4 kB / 0.7068 GB, free: 3.93 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001619/0.2047, allocations: 11.98 kB / 0.7068 GB, free: 3.918 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.972e-05/0.2048, allocations: 19.98 kB / 0.7069 GB, free: 3.898 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.255e-05/0.2048, allocations: 4 kB / 0.7069 GB, free: 3.895 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 0.000141/0.205, allocations: 160.5 kB / 0.707 GB, free: 3.738 MB / 0.4981 GB Notification: Performance of sort global known variables: time 1.21e-07/0.205, allocations: 8 kB / 0.707 GB, free: 3.73 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.0005883/0.2056, allocations: 171.3 kB / 0.7072 GB, free: 3.562 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.0001199/0.2057, allocations: 103.2 kB / 0.7073 GB, free: 3.453 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.001886/0.2076, allocations: 0.7793 MB / 0.708 GB, free: 2.637 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 2.946e-06/0.2076, allocations: 0 / 0.708 GB, free: 2.637 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 0.0007519/0.2084, allocations: 367.9 kB / 0.7084 GB, free: 2.254 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004248/0.2088, allocations: 80.62 kB / 0.7085 GB, free: 2.176 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009967/0.2098, allocations: 0.5872 MB / 0.709 GB, free: 1.551 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003821/0.2102, allocations: 0.8106 MB / 0.7098 GB, free: 0.7148 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 0.000195/0.2104, allocations: 54.25 kB / 0.7099 GB, free: 0.6602 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.898e-05/0.2105, allocations: 19.44 kB / 0.7099 GB, free: 0.6406 MB / 0.4981 GB Notification: Performance of SimCode: time 4.91e-07/0.2105, allocations: 0 / 0.7099 GB, free: 0.6406 MB / 0.4981 GB Notification: Performance of Templates: time 0.008553/0.219, allocations: 4.656 MB / 0.7144 GB, free: 12.02 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)