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.001063/0.001063, 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.0009916/0.0009917, allocations: 194 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.283/1.283, allocations: 222.9 MB / 240.2 MB, free: 4.402 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.001982/0.001982, allocations: 283 kB / 290.7 MB, free: 2.008 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.3 MB / 0.4982 GB, free: 13.94 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001745/0.001745, allocations: 95.14 kB / 0.5952 GB, free: 27.99 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1465/0.1483, allocations: 86.98 MB / 0.6802 GB, free: 0.7109 MB / 478.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Electrical.AC.OnePhase.Examples.GridDCLoad): time 0.004677/0.153, allocations: 3.058 MB / 0.6832 GB, free: 13.65 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.002707/0.1557, allocations: 1.923 MB / 0.685 GB, free: 11.72 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001096/0.1559, allocations: 7.938 kB / 0.685 GB, free: 11.71 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0008544/0.1568, allocations: 278.9 kB / 0.6853 GB, free: 11.44 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003863/0.1571, allocations: 195.1 kB / 0.6855 GB, free: 11.25 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005304/0.1577, allocations: 238.1 kB / 0.6857 GB, free: 11.02 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003204/0.158, allocations: 326.9 kB / 0.686 GB, free: 10.7 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003077/0.1583, allocations: 181 kB / 0.6862 GB, free: 10.52 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001485/0.1585, allocations: 131.5 kB / 0.6863 GB, free: 10.39 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002591/0.1588, allocations: 151.4 kB / 0.6865 GB, free: 10.24 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 3.775e-05/0.1588, allocations: 24 kB / 0.6865 GB, free: 10.22 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005543/0.1594, allocations: 395.2 kB / 0.6869 GB, free: 9.832 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 8.932e-05/0.1595, allocations: 83.78 kB / 0.687 GB, free: 9.75 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001218/0.1596, allocations: 127.3 kB / 0.6871 GB, free: 9.625 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005437/0.1601, allocations: 482.7 kB / 0.6875 GB, free: 9.152 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.309e-06/0.1602, allocations: 4 kB / 0.6875 GB, free: 9.148 MB / 494.1 MB Notification: Performance of FrontEnd: time 9.92e-07/0.1602, allocations: 0 / 0.6875 GB, free: 9.148 MB / 494.1 MB Notification: Performance of Transformations before backend: time 5.48e-06/0.1602, allocations: 0 / 0.6875 GB, free: 9.148 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.0007921/0.161, allocations: 0.5613 MB / 0.6881 GB, free: 8.539 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.287e-05/0.161, allocations: 12.03 kB / 0.6881 GB, free: 8.527 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007792/0.1618, allocations: 108.5 kB / 0.6882 GB, free: 8.422 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002943/0.1621, allocations: 261.7 kB / 0.6885 GB, free: 8.129 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.38e-05/0.1621, allocations: 12.81 kB / 0.6885 GB, free: 8.117 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.508e-05/0.1622, allocations: 20.38 kB / 0.6885 GB, free: 8.098 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005025/0.1627, allocations: 365.4 kB / 0.6888 GB, free: 7.715 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.578e-06/0.1627, allocations: 0 / 0.6888 GB, free: 7.715 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.958e-05/0.1627, allocations: 8 kB / 0.6888 GB, free: 7.707 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.834e-05/0.1628, allocations: 24.42 kB / 0.6889 GB, free: 7.684 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004326/0.1632, allocations: 297.4 kB / 0.6892 GB, free: 7.395 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001977/0.1652, allocations: 1.741 MB / 0.6909 GB, free: 5.484 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004553/0.1657, allocations: 322.1 kB / 0.6912 GB, free: 5.133 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001441/0.1658, allocations: 109.7 kB / 0.6913 GB, free: 5.02 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001091/0.1659, allocations: 93.03 kB / 0.6914 GB, free: 4.91 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.096e-05/0.166, allocations: 30.56 kB / 0.6914 GB, free: 4.871 MB / 494.1 MB Notification: Performance of pre-optimization done (n=16): time 2.946e-06/0.166, allocations: 0 / 0.6914 GB, free: 4.871 MB / 494.1 MB Notification: Performance of matching and sorting (n=23): time 0.002395/0.1684, allocations: 0.9638 MB / 0.6923 GB, free: 3.871 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.251e-05/0.1684, allocations: 89.03 kB / 0.6924 GB, free: 3.766 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001968/0.1686, allocations: 216.3 kB / 0.6926 GB, free: 3.547 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 2.226e-05/0.1687, allocations: 33.73 kB / 0.6926 GB, free: 3.508 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.734e-05/0.1688, allocations: 168.1 kB / 0.6928 GB, free: 3.34 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.616e-05/0.1688, allocations: 74.91 kB / 0.6929 GB, free: 3.266 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.294e-05/0.1689, allocations: 61.69 kB / 0.6929 GB, free: 3.199 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 0.0001119/0.1691, allocations: 326.8 kB / 0.6932 GB, free: 2.871 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000183/0.1692, allocations: 131.9 kB / 0.6934 GB, free: 2.742 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002374/0.1695, allocations: 219.1 kB / 0.6936 GB, free: 2.496 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004475/0.1699, allocations: 366.5 kB / 0.6939 GB, free: 2.109 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.825e-06/0.17, allocations: 4 kB / 0.6939 GB, free: 2.105 MB / 494.1 MB Notification: Performance of matching and sorting (n=36) (initialization): time 0.0008236/0.1708, allocations: 0.5158 MB / 0.6944 GB, free: 1.57 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.661e-05/0.1708, allocations: 4 kB / 0.6944 GB, free: 1.566 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.063e-06/0.1708, allocations: 7.938 kB / 0.6945 GB, free: 1.559 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004951/0.1713, allocations: 147.6 kB / 0.6946 GB, free: 1.402 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002429/0.1716, allocations: 59.91 kB / 0.6946 GB, free: 1.344 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00288/0.1745, allocations: 4.19 MB / 0.6987 GB, free: 12.82 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001893/0.1747, allocations: 19.98 kB / 0.6988 GB, free: 12.8 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.102e-05/0.1747, allocations: 12.12 kB / 0.6988 GB, free: 12.79 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.000179/0.1749, allocations: 174.8 kB / 0.6989 GB, free: 12.61 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.123e-05/0.175, allocations: 19.72 kB / 0.699 GB, free: 12.59 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008712/0.1758, allocations: 478.5 kB / 0.6994 GB, free: 12.11 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.81e-06/0.1759, allocations: 4 kB / 0.6994 GB, free: 12.11 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.765e-06/0.1759, allocations: 3.938 kB / 0.6994 GB, free: 12.1 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.308e-06/0.1759, allocations: 0 / 0.6994 GB, free: 12.1 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001521/0.1774, allocations: 1.01 MB / 0.7004 GB, free: 11 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.427e-06/0.1774, allocations: 3.938 kB / 0.7004 GB, free: 11 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001244/0.1776, allocations: 32.08 kB / 0.7004 GB, free: 10.96 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003928/0.178, allocations: 143.2 kB / 0.7006 GB, free: 10.81 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.889e-05/0.178, allocations: 12.03 kB / 0.7006 GB, free: 10.8 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002776/0.1808, allocations: 4.174 MB / 0.7047 GB, free: 6.293 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.968e-06/0.1808, allocations: 3.938 kB / 0.7047 GB, free: 6.289 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007468/0.1815, allocations: 0.625 MB / 0.7053 GB, free: 5.613 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001235/0.1817, allocations: 124.9 kB / 0.7054 GB, free: 5.473 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.695e-05/0.1817, allocations: 15.88 kB / 0.7054 GB, free: 5.457 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002221/0.1819, allocations: 23.97 kB / 0.7054 GB, free: 5.434 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.988e-05/0.182, allocations: 23.92 kB / 0.7055 GB, free: 5.41 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.844e-05/0.182, allocations: 11.98 kB / 0.7055 GB, free: 5.398 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 0.0001482/0.1822, allocations: 157.5 kB / 0.7056 GB, free: 5.246 MB / 0.4981 GB Notification: Performance of sort global known variables: time 1.1e-07/0.1822, allocations: 0 / 0.7056 GB, free: 5.246 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.0005042/0.1827, allocations: 92 kB / 0.7057 GB, free: 5.156 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.0001875/0.1829, allocations: 139.1 kB / 0.7058 GB, free: 5.008 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.0009193/0.1838, allocations: 0.5947 MB / 0.7064 GB, free: 4.387 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 2.745e-06/0.1838, allocations: 0 / 0.7064 GB, free: 4.387 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 0.0004981/0.1843, allocations: 413.1 kB / 0.7068 GB, free: 3.957 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005003/0.1848, allocations: 49.88 kB / 0.7069 GB, free: 3.914 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009317/0.1858, allocations: 0.6282 MB / 0.7075 GB, free: 3.234 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003345/0.1861, allocations: 0.7831 MB / 0.7082 GB, free: 2.426 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 0.0001613/0.1863, allocations: 54.25 kB / 0.7083 GB, free: 2.375 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.765e-05/0.1864, allocations: 19.44 kB / 0.7083 GB, free: 2.355 MB / 0.4981 GB Notification: Performance of SimCode: time 4.01e-07/0.1864, allocations: 0 / 0.7083 GB, free: 2.355 MB / 0.4981 GB Notification: Performance of Templates: time 0.007937/0.1943, allocations: 4.159 MB / 0.7124 GB, free: 14.23 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)