Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr BuildingSystems_BuildingSystems.Electrical.AC.OnePhase.Examples.GeneratorLoadGrid.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.GeneratorLoadGrid,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Electrical.AC.OnePhase.Examples.GeneratorLoadGrid") translateModel(BuildingSystems.Electrical.AC.OnePhase.Examples.GeneratorLoadGrid,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Electrical.AC.OnePhase.Examples.GeneratorLoadGrid") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001016/0.001016, allocations: 98.03 kB / 15.36 MB, free: 0.7344 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.005013/0.005014, allocations: 169.1 kB / 16.26 MB, free: 6.652 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.311/1.311, allocations: 223.3 MB / 240.3 MB, free: 5.34 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.001679/0.001679, allocations: 278.5 kB / 291.7 MB, free: 1.875 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9329/0.9329, allocations: 169.5 MB / 0.5004 GB, free: 14.14 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003834/0.0003834, allocations: 14.36 kB / 0.5987 GB, free: 28 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1568/0.1572, allocations: 88.55 MB / 0.6851 GB, free: 15.08 MB / 494.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Electrical.AC.OnePhase.Examples.GeneratorLoadGrid): time 0.002983/0.1602, allocations: 2.57 MB / 0.6876 GB, free: 12.5 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.002309/0.1626, allocations: 1.625 MB / 0.6892 GB, free: 10.87 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.584e-05/0.1627, allocations: 6 kB / 0.6892 GB, free: 10.87 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001465/0.1629, allocations: 31.72 kB / 0.6893 GB, free: 10.84 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003946/0.1633, allocations: 167.4 kB / 0.6894 GB, free: 10.67 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004631/0.1637, allocations: 218.5 kB / 0.6896 GB, free: 10.46 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 0.000394/0.1641, allocations: 430.8 kB / 0.69 GB, free: 10.04 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007102/0.1649, allocations: 385.2 kB / 0.6904 GB, free: 9.652 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001696/0.165, allocations: 99.62 kB / 0.6905 GB, free: 9.555 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002513/0.1653, allocations: 149.1 kB / 0.6906 GB, free: 9.41 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 2.537e-05/0.1653, allocations: 8 kB / 0.6906 GB, free: 9.402 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004247/0.1658, allocations: 307.4 kB / 0.6909 GB, free: 9.102 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 8.244e-05/0.1659, allocations: 67.75 kB / 0.691 GB, free: 9.035 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001235/0.166, allocations: 137.8 kB / 0.6911 GB, free: 8.895 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004502/0.1664, allocations: 416.3 kB / 0.6915 GB, free: 8.488 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.328e-06/0.1665, allocations: 0 / 0.6915 GB, free: 8.488 MB / 494.1 MB Notification: Performance of FrontEnd: time 1.663e-06/0.1665, allocations: 0 / 0.6915 GB, free: 8.488 MB / 494.1 MB Notification: Performance of Transformations before backend: time 5.73e-06/0.1665, allocations: 0 / 0.6915 GB, free: 8.488 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: 53 * Number of variables: 53 Notification: Performance of Generate backend data structure: time 0.0007657/0.1672, allocations: 0.502 MB / 0.692 GB, free: 7.938 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.859e-05/0.1673, allocations: 12.03 kB / 0.692 GB, free: 7.926 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006732/0.168, allocations: 84.56 kB / 0.6921 GB, free: 7.844 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000289/0.1683, allocations: 265.8 kB / 0.6924 GB, free: 7.547 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.657e-05/0.1683, allocations: 9.375 kB / 0.6924 GB, free: 7.539 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.153e-05/0.1684, allocations: 21.25 kB / 0.6924 GB, free: 7.52 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006162/0.169, allocations: 389.1 kB / 0.6928 GB, free: 7.109 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.273e-05/0.169, allocations: 0 / 0.6928 GB, free: 7.109 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.278e-05/0.169, allocations: 8 kB / 0.6928 GB, free: 7.102 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.981e-05/0.1691, allocations: 20.31 kB / 0.6928 GB, free: 7.078 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005877/0.1697, allocations: 341.3 kB / 0.6931 GB, free: 6.746 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001834/0.1715, allocations: 1.728 MB / 0.6948 GB, free: 4.883 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007174/0.1723, allocations: 342.9 kB / 0.6951 GB, free: 4.531 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002773/0.1725, allocations: 149.6 kB / 0.6953 GB, free: 4.379 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001462/0.1727, allocations: 93.08 kB / 0.6954 GB, free: 4.27 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.093e-05/0.1727, allocations: 38.5 kB / 0.6954 GB, free: 4.223 MB / 494.1 MB Notification: Performance of pre-optimization done (n=20): time 1.704e-06/0.1727, allocations: 4 kB / 0.6954 GB, free: 4.219 MB / 494.1 MB Notification: Performance of matching and sorting (n=21): time 0.001386/0.1741, allocations: 0.6152 MB / 0.696 GB, free: 3.574 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.528e-05/0.1742, allocations: 81.11 kB / 0.6961 GB, free: 3.477 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001943/0.1744, allocations: 199.8 kB / 0.6963 GB, free: 3.27 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 2.95e-05/0.1744, allocations: 33.7 kB / 0.6963 GB, free: 3.23 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001027/0.1745, allocations: 159.8 kB / 0.6965 GB, free: 3.07 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.113e-05/0.1746, allocations: 74.98 kB / 0.6965 GB, free: 2.996 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.053e-05/0.1747, allocations: 29.7 kB / 0.6966 GB, free: 2.961 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 0.0001167/0.1748, allocations: 330.8 kB / 0.6969 GB, free: 2.629 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002524/0.175, allocations: 136.5 kB / 0.697 GB, free: 2.496 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002954/0.1754, allocations: 211.3 kB / 0.6972 GB, free: 2.254 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005858/0.176, allocations: 386 kB / 0.6976 GB, free: 1.844 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.593e-06/0.176, allocations: 0 / 0.6976 GB, free: 1.844 MB / 494.1 MB Notification: Performance of matching and sorting (n=33) (initialization): time 0.0007923/0.1768, allocations: 434 kB / 0.698 GB, free: 1.41 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001092/0.1769, allocations: 168.4 kB / 0.6982 GB, free: 1.207 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.138e-05/0.1769, allocations: 7.984 kB / 0.6982 GB, free: 1.199 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002393/0.1771, allocations: 44.83 kB / 0.6982 GB, free: 1.152 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000305/0.1775, allocations: 71.88 kB / 0.6983 GB, free: 1.082 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001304/0.1788, allocations: 1.501 MB / 0.6997 GB, free: 15.44 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002176/0.179, allocations: 23.97 kB / 0.6998 GB, free: 15.42 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.309e-05/0.179, allocations: 12 kB / 0.6998 GB, free: 15.41 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 5.891e-06/0.179, allocations: 4 kB / 0.6998 GB, free: 15.4 MB / 0.4981 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0006783/0.1797, allocations: 376.3 kB / 0.7001 GB, free: 15.03 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.598e-06/0.1797, allocations: 4.281 kB / 0.7001 GB, free: 15.03 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001232/0.1799, allocations: 45 kB / 0.7002 GB, free: 14.98 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002632/0.1802, allocations: 71.88 kB / 0.7003 GB, free: 14.91 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001163/0.1813, allocations: 1.485 MB / 0.7017 GB, free: 13.29 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001851/0.1815, allocations: 31.91 kB / 0.7017 GB, free: 13.25 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.096e-05/0.1816, allocations: 12 kB / 0.7017 GB, free: 13.24 MB / 0.4981 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 12 * 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 (31): * Single equations (assignments): 30 * 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,2,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0001845/0.1817, allocations: 238.8 kB / 0.702 GB, free: 13 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.231e-05/0.1818, allocations: 23.86 kB / 0.702 GB, free: 12.98 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006905/0.1825, allocations: 370 kB / 0.7023 GB, free: 12.61 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.969e-06/0.1825, allocations: 8 kB / 0.7024 GB, free: 12.61 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.845e-06/0.1825, allocations: 0 / 0.7024 GB, free: 12.61 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.159e-06/0.1825, allocations: 3.938 kB / 0.7024 GB, free: 12.6 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001371/0.1839, allocations: 0.9776 MB / 0.7033 GB, free: 11.55 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.605e-06/0.1839, allocations: 0 / 0.7033 GB, free: 11.55 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002251/0.1842, allocations: 51.89 kB / 0.7034 GB, free: 11.5 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.000116/0.1843, allocations: 45.05 kB / 0.7034 GB, free: 11.45 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.878e-05/0.1843, allocations: 4 kB / 0.7034 GB, free: 11.45 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001005/0.1853, allocations: 1.406 MB / 0.7048 GB, free: 9.906 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.316e-06/0.1853, allocations: 11.81 kB / 0.7048 GB, free: 9.895 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006839/0.186, allocations: 0.5432 MB / 0.7053 GB, free: 9.312 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001064/0.1862, allocations: 132.8 kB / 0.7055 GB, free: 9.164 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.064e-05/0.1862, allocations: 8 kB / 0.7055 GB, free: 9.156 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002308/0.1864, allocations: 23.97 kB / 0.7055 GB, free: 9.133 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.257e-05/0.1865, allocations: 19.92 kB / 0.7055 GB, free: 9.113 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.993e-05/0.1865, allocations: 8 kB / 0.7055 GB, free: 9.105 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 0.0001285/0.1867, allocations: 159 kB / 0.7057 GB, free: 8.949 MB / 0.4981 GB Notification: Performance of sort global known variables: time 1.7e-07/0.1867, allocations: 0 / 0.7057 GB, free: 8.949 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.0005751/0.1872, allocations: 104 kB / 0.7058 GB, free: 8.848 MB / 0.4981 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * 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): 20 * 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,2,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0001387/0.1874, allocations: 111.2 kB / 0.7059 GB, free: 8.727 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.001254/0.1887, allocations: 0.7393 MB / 0.7066 GB, free: 7.961 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 2.464e-06/0.1887, allocations: 0.9375 kB / 0.7066 GB, free: 7.961 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 0.0003954/0.1891, allocations: 282.5 kB / 0.7069 GB, free: 7.672 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004949/0.1896, allocations: 31.98 kB / 0.7069 GB, free: 7.641 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009155/0.1905, allocations: 0.6688 MB / 0.7075 GB, free: 6.926 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003026/0.1908, allocations: 0.7639 MB / 0.7083 GB, free: 6.137 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 0.0002373/0.1911, allocations: 93.94 kB / 0.7084 GB, free: 6.043 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.242e-05/0.1911, allocations: 23.44 kB / 0.7084 GB, free: 6.023 MB / 0.4981 GB Notification: Performance of SimCode: time 3.61e-07/0.1911, allocations: 0 / 0.7084 GB, free: 6.023 MB / 0.4981 GB Notification: Performance of Templates: time 0.006216/0.1974, allocations: 3.052 MB / 0.7114 GB, free: 2.98 MB / 0.4981 GB make -j1 -f BuildingSystems_BuildingSystems.Electrical.AC.OnePhase.Examples.GeneratorLoadGrid.makefile (rm -f BuildingSystems_BuildingSystems.Electrical.AC.OnePhase.Examples.GeneratorLoadGrid.pipe ; mkfifo BuildingSystems_BuildingSystems.Electrical.AC.OnePhase.Examples.GeneratorLoadGrid.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Electrical.AC.OnePhase.Examples.GeneratorLoadGrid.pipe >> ../files/BuildingSystems_BuildingSystems.Electrical.AC.OnePhase.Examples.GeneratorLoadGrid.sim & ./BuildingSystems_BuildingSystems.Electrical.AC.OnePhase.Examples.GeneratorLoadGrid -abortSlowSimulation -alarm=480 -lv LOG_STATS > BuildingSystems_BuildingSystems.Electrical.AC.OnePhase.Examples.GeneratorLoadGrid.pipe 2>&1)