Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr BuildingSystems_BuildingSystems.Electrical.AC.OnePhase.Examples.GridDCLoad.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.AC.OnePhase.Examples.GridDCLoad,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Electrical.AC.OnePhase.Examples.GridDCLoad") translateModel(BuildingSystems.Electrical.AC.OnePhase.Examples.GridDCLoad,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Electrical.AC.OnePhase.Examples.GridDCLoad") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001057/0.001057, allocations: 111.3 kB / 15.23 MB, free: 0.6602 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.001161/0.001161, allocations: 195 kB / 16.14 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.285/1.285, allocations: 222.9 MB / 239.8 MB, free: 4.59 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002098/0.002098, allocations: 286.2 kB / 290.2 MB, free: 2.191 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 1.11/1.11, allocations: 169.2 MB / 0.4977 GB, free: 14.17 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001614/0.001614, allocations: 91.39 kB / 0.5945 GB, free: 28.33 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1557/0.1573, allocations: 86.98 MB / 0.6794 GB, free: 1.18 MB / 478.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Electrical.AC.OnePhase.Examples.GridDCLoad): time 0.004438/0.1618, allocations: 3.111 MB / 0.6825 GB, free: 14.07 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.002899/0.1647, allocations: 1.934 MB / 0.6844 GB, free: 12.12 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001557/0.1649, allocations: 7.938 kB / 0.6844 GB, free: 12.12 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000825/0.1657, allocations: 259.9 kB / 0.6846 GB, free: 11.86 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004599/0.1662, allocations: 176.8 kB / 0.6848 GB, free: 11.69 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005911/0.1668, allocations: 219.4 kB / 0.685 GB, free: 11.48 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004123/0.1672, allocations: 451.3 kB / 0.6854 GB, free: 11.04 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003578/0.1676, allocations: 169 kB / 0.6856 GB, free: 10.87 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001545/0.1678, allocations: 103.6 kB / 0.6857 GB, free: 10.77 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000253/0.168, allocations: 155.4 kB / 0.6858 GB, free: 10.62 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 3.267e-05/0.1681, allocations: 16 kB / 0.6859 GB, free: 10.6 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0006537/0.1687, allocations: 483 kB / 0.6863 GB, free: 10.13 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002193/0.169, allocations: 71.8 kB / 0.6864 GB, free: 10.06 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001194/0.1691, allocations: 123.4 kB / 0.6865 GB, free: 9.938 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005388/0.1696, allocations: 494.6 kB / 0.687 GB, free: 9.453 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.288e-06/0.1697, allocations: 0 / 0.687 GB, free: 9.453 MB / 494.1 MB Notification: Performance of FrontEnd: time 1.092e-06/0.1697, allocations: 0 / 0.687 GB, free: 9.453 MB / 494.1 MB Notification: Performance of Transformations before backend: time 5.45e-06/0.1697, allocations: 0 / 0.687 GB, free: 9.453 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: 55 * Number of variables: 55 Notification: Performance of Generate backend data structure: time 0.0009205/0.1706, allocations: 0.5692 MB / 0.6875 GB, free: 8.836 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.255e-05/0.1706, allocations: 8.031 kB / 0.6875 GB, free: 8.828 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007869/0.1714, allocations: 112.5 kB / 0.6876 GB, free: 8.719 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003103/0.1718, allocations: 263.8 kB / 0.6879 GB, free: 8.422 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.004e-05/0.1718, allocations: 16.81 kB / 0.6879 GB, free: 8.406 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.385e-05/0.1718, allocations: 16.38 kB / 0.6879 GB, free: 8.391 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005319/0.1724, allocations: 353.3 kB / 0.6883 GB, free: 8.023 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.416e-05/0.1724, allocations: 7.938 kB / 0.6883 GB, free: 8.016 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.247e-05/0.1724, allocations: 7.984 kB / 0.6883 GB, free: 8.008 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.614e-05/0.1725, allocations: 28.42 kB / 0.6883 GB, free: 7.98 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004755/0.173, allocations: 289.5 kB / 0.6886 GB, free: 7.699 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002211/0.1752, allocations: 1.737 MB / 0.6903 GB, free: 5.793 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005113/0.1757, allocations: 322.2 kB / 0.6906 GB, free: 5.441 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001605/0.1759, allocations: 111.7 kB / 0.6907 GB, free: 5.328 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001196/0.176, allocations: 93.03 kB / 0.6908 GB, free: 5.219 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.313e-05/0.176, allocations: 38.5 kB / 0.6908 GB, free: 5.172 MB / 494.1 MB Notification: Performance of pre-optimization done (n=16): time 1.353e-06/0.1761, allocations: 0 / 0.6908 GB, free: 5.172 MB / 494.1 MB Notification: Performance of matching and sorting (n=23): time 0.002467/0.1785, allocations: 0.9604 MB / 0.6918 GB, free: 4.176 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.116e-05/0.1786, allocations: 92.97 kB / 0.6918 GB, free: 4.066 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00022/0.1788, allocations: 220.3 kB / 0.6921 GB, free: 3.844 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 2.444e-05/0.1789, allocations: 25.7 kB / 0.6921 GB, free: 3.812 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001016/0.179, allocations: 168.1 kB / 0.6922 GB, free: 3.645 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.101e-05/0.179, allocations: 86.92 kB / 0.6923 GB, free: 3.559 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.839e-05/0.1792, allocations: 61.69 kB / 0.6924 GB, free: 3.492 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 0.0001382/0.1793, allocations: 326.8 kB / 0.6927 GB, free: 3.164 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002065/0.1795, allocations: 127.9 kB / 0.6928 GB, free: 3.039 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002575/0.1798, allocations: 214.5 kB / 0.693 GB, free: 2.797 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004804/0.1803, allocations: 366.4 kB / 0.6934 GB, free: 2.41 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.593e-06/0.1803, allocations: 0 / 0.6934 GB, free: 2.41 MB / 494.1 MB Notification: Performance of matching and sorting (n=36) (initialization): time 0.0008698/0.1811, allocations: 0.516 MB / 0.6939 GB, free: 1.875 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.607e-05/0.1812, allocations: 4 kB / 0.6939 GB, free: 1.871 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.516e-06/0.1812, allocations: 4 kB / 0.6939 GB, free: 1.867 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005175/0.1817, allocations: 151.4 kB / 0.694 GB, free: 1.707 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002475/0.182, allocations: 55.97 kB / 0.6941 GB, free: 1.652 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002946/0.1849, allocations: 3.965 MB / 0.6979 GB, free: 13.37 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002001/0.1851, allocations: 19.98 kB / 0.698 GB, free: 13.35 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.493e-05/0.1852, allocations: 12 kB / 0.698 GB, free: 13.34 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 (32): * Single equations (assignments): 28 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(1,1,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 2 systems {(1,1), (1,1)} Notification: Performance of prepare postOptimizeDAE: time 0.0001808/0.1854, allocations: 169.8 kB / 0.6981 GB, free: 13.16 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.151e-05/0.1854, allocations: 23.72 kB / 0.6982 GB, free: 13.14 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008744/0.1863, allocations: 470.5 kB / 0.6986 GB, free: 12.66 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.272e-06/0.1863, allocations: 7.984 kB / 0.6986 GB, free: 12.65 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.092e-06/0.1863, allocations: 0 / 0.6986 GB, free: 12.65 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.259e-06/0.1864, allocations: 11.88 kB / 0.6986 GB, free: 12.64 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001532/0.1879, allocations: 1.001 MB / 0.6996 GB, free: 11.55 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.697e-06/0.1879, allocations: 256 / 0.6996 GB, free: 11.55 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001325/0.188, allocations: 43.91 kB / 0.6996 GB, free: 11.5 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004375/0.1885, allocations: 143.3 kB / 0.6998 GB, free: 11.35 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.197e-05/0.1885, allocations: 11.94 kB / 0.6998 GB, free: 11.34 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002674/0.1912, allocations: 3.95 MB / 0.7037 GB, free: 7.07 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.948e-06/0.1912, allocations: 4 kB / 0.7037 GB, free: 7.066 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007986/0.192, allocations: 0.6287 MB / 0.7043 GB, free: 6.387 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001233/0.1922, allocations: 128.8 kB / 0.7044 GB, free: 6.242 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.521e-05/0.1922, allocations: 11.94 kB / 0.7044 GB, free: 6.23 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002239/0.1924, allocations: 19.92 kB / 0.7044 GB, free: 6.211 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.003e-05/0.1925, allocations: 23.97 kB / 0.7044 GB, free: 6.188 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.917e-05/0.1925, allocations: 12 kB / 0.7045 GB, free: 6.176 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 0.0001392/0.1927, allocations: 157.5 kB / 0.7046 GB, free: 6.023 MB / 0.4981 GB Notification: Performance of sort global known variables: time 1.2e-07/0.1927, allocations: 0 / 0.7046 GB, free: 6.023 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.0005387/0.1932, allocations: 95.92 kB / 0.7047 GB, free: 5.93 MB / 0.4981 GB Notification: Model statistics after passing the back-end for simulation: * 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 simulation (21): * Single equations (assignments): 17 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(1,1,100.0%), (1,1,100.0%)} * 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.0001973/0.1934, allocations: 142.7 kB / 0.7048 GB, free: 5.781 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.0009053/0.1943, allocations: 0.5791 MB / 0.7054 GB, free: 5.176 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 3.397e-06/0.1944, allocations: 0 / 0.7054 GB, free: 5.176 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 0.0005014/0.1949, allocations: 397.2 kB / 0.7058 GB, free: 4.762 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005077/0.1954, allocations: 39.02 kB / 0.7058 GB, free: 4.727 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001036/0.1964, allocations: 0.7278 MB / 0.7065 GB, free: 3.949 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003626/0.1968, allocations: 0.7831 MB / 0.7073 GB, free: 3.141 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 0.0001771/0.197, allocations: 58.25 kB / 0.7073 GB, free: 3.086 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.146e-05/0.197, allocations: 23.42 kB / 0.7074 GB, free: 3.062 MB / 0.4981 GB Notification: Performance of SimCode: time 2.51e-07/0.1971, allocations: 0 / 0.7074 GB, free: 3.062 MB / 0.4981 GB Notification: Performance of Templates: time 0.007555/0.2046, allocations: 4.025 MB / 0.7113 GB, free: 15.07 MB / 0.5137 GB make -j1 -f BuildingSystems_BuildingSystems.Electrical.AC.OnePhase.Examples.GridDCLoad.makefile (rm -f BuildingSystems_BuildingSystems.Electrical.AC.OnePhase.Examples.GridDCLoad.pipe ; mkfifo BuildingSystems_BuildingSystems.Electrical.AC.OnePhase.Examples.GridDCLoad.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Electrical.AC.OnePhase.Examples.GridDCLoad.pipe >> ../files/BuildingSystems_BuildingSystems.Electrical.AC.OnePhase.Examples.GridDCLoad.sim & ./BuildingSystems_BuildingSystems.Electrical.AC.OnePhase.Examples.GridDCLoad -abortSlowSimulation -alarm=480 -lv LOG_STATS > BuildingSystems_BuildingSystems.Electrical.AC.OnePhase.Examples.GridDCLoad.pipe 2>&1)