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.001159/0.001159, 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.001164/0.001164, allocations: 196.2 kB / 16.25 MB, free: 6.621 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.293/1.293, allocations: 222.9 MB / 239.9 MB, free: 4.508 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002079/0.002079, allocations: 290.2 kB / 290.4 MB, free: 2.121 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9493/0.9493, allocations: 169.2 MB / 0.4978 GB, free: 14.07 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001703/0.001704, allocations: 97.2 kB / 0.5947 GB, free: 28.4 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1462/0.148, allocations: 86.98 MB / 0.6796 GB, free: 1.043 MB / 478.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Electrical.AC.OnePhase.Examples.GridDCLoad): time 0.004319/0.1523, allocations: 3.107 MB / 0.6827 GB, free: 13.93 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.002808/0.1552, allocations: 1.898 MB / 0.6845 GB, free: 12.03 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001697/0.1553, allocations: 7.938 kB / 0.6845 GB, free: 12.02 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0009188/0.1563, allocations: 267.1 kB / 0.6848 GB, free: 11.76 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000486/0.1568, allocations: 179.3 kB / 0.6849 GB, free: 11.58 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006176/0.1574, allocations: 218.1 kB / 0.6852 GB, free: 11.37 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003284/0.1577, allocations: 322.9 kB / 0.6855 GB, free: 11.05 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003638/0.1581, allocations: 210.6 kB / 0.6857 GB, free: 10.85 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001655/0.1583, allocations: 131.5 kB / 0.6858 GB, free: 10.72 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002594/0.1586, allocations: 155.4 kB / 0.6859 GB, free: 10.57 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 3.208e-05/0.1586, allocations: 24 kB / 0.686 GB, free: 10.54 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005496/0.1592, allocations: 399.2 kB / 0.6863 GB, free: 10.15 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 9.585e-05/0.1593, allocations: 83.78 kB / 0.6864 GB, free: 10.07 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001047/0.1594, allocations: 123.4 kB / 0.6865 GB, free: 9.949 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005757/0.16, allocations: 0.5025 MB / 0.687 GB, free: 9.445 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.128e-06/0.16, allocations: 0 / 0.687 GB, free: 9.445 MB / 494.1 MB Notification: Performance of FrontEnd: time 1.733e-06/0.16, allocations: 0 / 0.687 GB, free: 9.445 MB / 494.1 MB Notification: Performance of Transformations before backend: time 6.763e-06/0.16, allocations: 0 / 0.687 GB, free: 9.445 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.0008191/0.1608, allocations: 0.5614 MB / 0.6876 GB, free: 8.836 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.514e-05/0.1609, allocations: 8.031 kB / 0.6876 GB, free: 8.828 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007691/0.1616, allocations: 116.5 kB / 0.6877 GB, free: 8.715 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002974/0.1619, allocations: 255.9 kB / 0.6879 GB, free: 8.426 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.948e-05/0.162, allocations: 12.81 kB / 0.688 GB, free: 8.414 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.951e-05/0.162, allocations: 20.36 kB / 0.688 GB, free: 8.395 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005155/0.1625, allocations: 353.4 kB / 0.6883 GB, free: 8.023 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.225e-05/0.1626, allocations: 8 kB / 0.6883 GB, free: 8.016 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.985e-05/0.1626, allocations: 8 kB / 0.6883 GB, free: 8.008 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.776e-05/0.1626, allocations: 24.42 kB / 0.6883 GB, free: 7.984 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004337/0.1631, allocations: 297.5 kB / 0.6886 GB, free: 7.695 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002072/0.1652, allocations: 1.741 MB / 0.6903 GB, free: 5.785 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004774/0.1657, allocations: 330 kB / 0.6906 GB, free: 5.426 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000142/0.1658, allocations: 105.7 kB / 0.6907 GB, free: 5.316 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001189/0.1659, allocations: 89.03 kB / 0.6908 GB, free: 5.211 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.932e-05/0.166, allocations: 42.5 kB / 0.6909 GB, free: 5.16 MB / 494.1 MB Notification: Performance of pre-optimization done (n=16): time 1.593e-06/0.166, allocations: 3.938 kB / 0.6909 GB, free: 5.156 MB / 494.1 MB Notification: Performance of matching and sorting (n=23): time 0.002388/0.1684, allocations: 0.9505 MB / 0.6918 GB, free: 4.172 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.271e-05/0.1684, allocations: 89.05 kB / 0.6919 GB, free: 4.066 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002/0.1686, allocations: 212.3 kB / 0.6921 GB, free: 3.852 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 2.561e-05/0.1687, allocations: 33.7 kB / 0.6921 GB, free: 3.812 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001031/0.1688, allocations: 172 kB / 0.6923 GB, free: 3.641 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.831e-05/0.1689, allocations: 82.94 kB / 0.6924 GB, free: 3.559 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.481e-05/0.169, allocations: 57.7 kB / 0.6924 GB, free: 3.496 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 0.0001238/0.1691, allocations: 334.8 kB / 0.6927 GB, free: 3.16 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001851/0.1693, allocations: 131.9 kB / 0.6929 GB, free: 3.031 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002287/0.1695, allocations: 207.2 kB / 0.6931 GB, free: 2.797 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004381/0.17, allocations: 366.5 kB / 0.6934 GB, free: 2.41 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.562e-06/0.17, allocations: 3.938 kB / 0.6934 GB, free: 2.406 MB / 494.1 MB Notification: Performance of matching and sorting (n=36) (initialization): time 0.0008419/0.1708, allocations: 0.5121 MB / 0.6939 GB, free: 1.875 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.623e-05/0.1708, allocations: 8 kB / 0.6939 GB, free: 1.867 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.434e-06/0.1709, allocations: 4 kB / 0.6939 GB, free: 1.863 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005071/0.1714, allocations: 151.4 kB / 0.6941 GB, free: 1.703 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002461/0.1716, allocations: 59.91 kB / 0.6941 GB, free: 1.645 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003023/0.1747, allocations: 4.183 MB / 0.6982 GB, free: 13.13 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002093/0.1749, allocations: 24 kB / 0.6982 GB, free: 13.11 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.744e-05/0.1749, allocations: 16 kB / 0.6983 GB, free: 13.09 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.0001749/0.1751, allocations: 169.7 kB / 0.6984 GB, free: 12.91 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.868e-05/0.1752, allocations: 23.72 kB / 0.6984 GB, free: 12.89 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008422/0.176, allocations: 474.5 kB / 0.6989 GB, free: 12.41 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.859e-06/0.176, allocations: 4 kB / 0.6989 GB, free: 12.41 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.907e-06/0.176, allocations: 0 / 0.6989 GB, free: 12.41 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.5e-06/0.1761, allocations: 3.984 kB / 0.6989 GB, free: 12.4 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00148/0.1775, allocations: 1.004 MB / 0.6999 GB, free: 11.31 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.741e-06/0.1776, allocations: 4 kB / 0.6999 GB, free: 11.3 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001279/0.1777, allocations: 36.16 kB / 0.6999 GB, free: 11.27 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003882/0.1781, allocations: 147.3 kB / 0.7001 GB, free: 11.11 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.151e-05/0.1781, allocations: 8 kB / 0.7001 GB, free: 11.11 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002755/0.1809, allocations: 4.182 MB / 0.7042 GB, free: 6.59 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.324e-06/0.1809, allocations: 96 / 0.7042 GB, free: 6.59 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007589/0.1817, allocations: 0.6373 MB / 0.7048 GB, free: 5.902 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001177/0.1818, allocations: 120.9 kB / 0.7049 GB, free: 5.766 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.685e-05/0.1818, allocations: 7.938 kB / 0.7049 GB, free: 5.758 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002249/0.1821, allocations: 23.97 kB / 0.7049 GB, free: 5.734 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.642e-05/0.1821, allocations: 19.98 kB / 0.7049 GB, free: 5.715 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.125e-05/0.1822, allocations: 16 kB / 0.705 GB, free: 5.699 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 0.0001384/0.1823, allocations: 165.5 kB / 0.7051 GB, free: 5.539 MB / 0.4981 GB Notification: Performance of sort global known variables: time 1.11e-07/0.1823, allocations: 0 / 0.7051 GB, free: 5.539 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.0004993/0.1828, allocations: 84 kB / 0.7052 GB, free: 5.457 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.0002125/0.183, allocations: 147.1 kB / 0.7053 GB, free: 5.301 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.0009288/0.184, allocations: 0.5949 MB / 0.7059 GB, free: 4.68 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 5.019e-06/0.184, allocations: 4.125 kB / 0.7059 GB, free: 4.676 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 0.0004867/0.1845, allocations: 407.4 kB / 0.7063 GB, free: 4.254 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004865/0.185, allocations: 45.66 kB / 0.7063 GB, free: 4.211 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009977/0.186, allocations: 0.7116 MB / 0.707 GB, free: 3.445 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003409/0.1863, allocations: 0.7831 MB / 0.7078 GB, free: 2.637 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 0.0001669/0.1865, allocations: 58.23 kB / 0.7079 GB, free: 2.582 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.019e-05/0.1866, allocations: 19.44 kB / 0.7079 GB, free: 2.562 MB / 0.4981 GB Notification: Performance of SimCode: time 3.81e-07/0.1866, allocations: 3.938 kB / 0.7079 GB, free: 2.559 MB / 0.4981 GB Notification: Performance of Templates: time 0.008712/0.1953, allocations: 4.189 MB / 0.712 GB, free: 14.4 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)