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.0009941/0.0009942, allocations: 106.9 kB / 15.99 MB, free: 5.895 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.0009411/0.0009412, allocations: 193.4 kB / 16.91 MB, free: 5.746 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.279/1.279, allocations: 222.9 MB / 240.6 MB, free: 4.527 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002213/0.002213, allocations: 294.5 kB / 291 MB, free: 2.125 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9241/0.9241, allocations: 169.2 MB / 0.4985 GB, free: 14.06 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001667/0.001667, allocations: 95.47 kB / 0.5953 GB, free: 28.25 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.164/0.1657, allocations: 86.99 MB / 0.6803 GB, free: 1.043 MB / 478.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Electrical.AC.OnePhase.Examples.GridDCLoad): time 0.004511/0.1702, allocations: 3.089 MB / 0.6833 GB, free: 13.95 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.002702/0.1729, allocations: 1.906 MB / 0.6852 GB, free: 12.04 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001256/0.1731, allocations: 7.938 kB / 0.6852 GB, free: 12.03 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0008584/0.174, allocations: 275 kB / 0.6854 GB, free: 11.76 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004019/0.1744, allocations: 175.3 kB / 0.6856 GB, free: 11.59 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005392/0.1749, allocations: 223.5 kB / 0.6858 GB, free: 11.37 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 0.000319/0.1753, allocations: 326.9 kB / 0.6861 GB, free: 11.05 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003629/0.1756, allocations: 198.6 kB / 0.6863 GB, free: 10.85 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001623/0.1758, allocations: 131.5 kB / 0.6864 GB, free: 10.72 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002538/0.1761, allocations: 159.4 kB / 0.6866 GB, free: 10.57 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 3.206e-05/0.1761, allocations: 20 kB / 0.6866 GB, free: 10.55 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005066/0.1766, allocations: 395.2 kB / 0.687 GB, free: 10.16 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 9.282e-05/0.1767, allocations: 87.78 kB / 0.6871 GB, free: 10.07 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000122/0.1769, allocations: 123.3 kB / 0.6872 GB, free: 9.953 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004055/0.1773, allocations: 375.2 kB / 0.6875 GB, free: 9.586 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.526e-06/0.1773, allocations: 0 / 0.6875 GB, free: 9.586 MB / 494.1 MB Notification: Performance of FrontEnd: time 1.413e-06/0.1773, allocations: 0 / 0.6875 GB, free: 9.586 MB / 494.1 MB Notification: Performance of Transformations before backend: time 6.342e-06/0.1773, allocations: 0 / 0.6875 GB, free: 9.586 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.0008229/0.1781, allocations: 0.5692 MB / 0.6881 GB, free: 8.969 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.665e-05/0.1782, allocations: 8.031 kB / 0.6881 GB, free: 8.961 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007542/0.1789, allocations: 112.5 kB / 0.6882 GB, free: 8.852 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003029/0.1793, allocations: 259.9 kB / 0.6885 GB, free: 8.559 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.932e-05/0.1793, allocations: 16.81 kB / 0.6885 GB, free: 8.543 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.798e-05/0.1793, allocations: 24.3 kB / 0.6885 GB, free: 8.52 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005182/0.1799, allocations: 357.5 kB / 0.6888 GB, free: 8.145 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.159e-05/0.1799, allocations: 0 / 0.6888 GB, free: 8.145 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.892e-05/0.1799, allocations: 4 kB / 0.6888 GB, free: 8.141 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.204e-05/0.18, allocations: 32.36 kB / 0.6889 GB, free: 8.109 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004165/0.1804, allocations: 293.5 kB / 0.6892 GB, free: 7.824 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001951/0.1823, allocations: 1.741 MB / 0.6909 GB, free: 5.914 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004562/0.1828, allocations: 326.1 kB / 0.6912 GB, free: 5.559 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001428/0.183, allocations: 101.7 kB / 0.6913 GB, free: 5.453 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001102/0.1831, allocations: 93.03 kB / 0.6914 GB, free: 5.344 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.739e-05/0.1831, allocations: 38.5 kB / 0.6914 GB, free: 5.297 MB / 494.1 MB Notification: Performance of pre-optimization done (n=16): time 1.603e-06/0.1831, allocations: 4 kB / 0.6914 GB, free: 5.293 MB / 494.1 MB Notification: Performance of matching and sorting (n=23): time 0.0023/0.1854, allocations: 0.9544 MB / 0.6923 GB, free: 4.305 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.369e-05/0.1855, allocations: 89.03 kB / 0.6924 GB, free: 4.199 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001945/0.1857, allocations: 224.3 kB / 0.6926 GB, free: 3.973 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 2.498e-05/0.1857, allocations: 29.7 kB / 0.6927 GB, free: 3.938 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.475e-05/0.1858, allocations: 164.1 kB / 0.6928 GB, free: 3.773 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.887e-05/0.1859, allocations: 86.83 kB / 0.6929 GB, free: 3.688 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.2e-05/0.186, allocations: 61.78 kB / 0.6929 GB, free: 3.621 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 0.0001123/0.1861, allocations: 330.8 kB / 0.6933 GB, free: 3.289 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000182/0.1863, allocations: 131.9 kB / 0.6934 GB, free: 3.16 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002289/0.1865, allocations: 211.1 kB / 0.6936 GB, free: 2.922 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004214/0.187, allocations: 361.4 kB / 0.6939 GB, free: 2.539 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.392e-06/0.187, allocations: 0 / 0.6939 GB, free: 2.539 MB / 494.1 MB Notification: Performance of matching and sorting (n=36) (initialization): time 0.0007963/0.1878, allocations: 0.5158 MB / 0.6944 GB, free: 2.004 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.765e-05/0.1878, allocations: 4 kB / 0.6944 GB, free: 2 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.857e-06/0.1878, allocations: 4 kB / 0.6944 GB, free: 1.996 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004968/0.1883, allocations: 151.6 kB / 0.6946 GB, free: 1.836 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002418/0.1886, allocations: 63.91 kB / 0.6947 GB, free: 1.773 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002808/0.1914, allocations: 4.186 MB / 0.6987 GB, free: 13.26 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001949/0.1916, allocations: 23.95 kB / 0.6988 GB, free: 13.23 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.651e-05/0.1916, allocations: 12 kB / 0.6988 GB, free: 13.22 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.0001644/0.1918, allocations: 169.6 kB / 0.6989 GB, free: 13.05 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.452e-05/0.1919, allocations: 19.72 kB / 0.699 GB, free: 13.03 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008124/0.1927, allocations: 482.1 kB / 0.6994 GB, free: 12.54 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.551e-06/0.1927, allocations: 4 kB / 0.6994 GB, free: 12.54 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.765e-06/0.1927, allocations: 0 / 0.6994 GB, free: 12.54 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.697e-06/0.1927, allocations: 0 / 0.6994 GB, free: 12.54 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0014/0.1941, allocations: 1.004 MB / 0.7004 GB, free: 11.44 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.74e-06/0.1942, allocations: 7.984 kB / 0.7004 GB, free: 11.43 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001241/0.1943, allocations: 31.92 kB / 0.7004 GB, free: 11.4 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003756/0.1947, allocations: 155.5 kB / 0.7006 GB, free: 11.24 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.221e-05/0.1947, allocations: 8 kB / 0.7006 GB, free: 11.23 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002614/0.1973, allocations: 4.182 MB / 0.7047 GB, free: 6.715 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.164e-06/0.1973, allocations: 0 / 0.7047 GB, free: 6.715 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007322/0.1981, allocations: 0.6216 MB / 0.7053 GB, free: 6.039 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001107/0.1982, allocations: 120.9 kB / 0.7054 GB, free: 5.902 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.482e-05/0.1982, allocations: 11.94 kB / 0.7054 GB, free: 5.891 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002234/0.1985, allocations: 23.97 kB / 0.7054 GB, free: 5.867 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.278e-05/0.1985, allocations: 15.98 kB / 0.7054 GB, free: 5.852 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.103e-05/0.1985, allocations: 19.98 kB / 0.7055 GB, free: 5.832 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 0.0001311/0.1987, allocations: 157.5 kB / 0.7056 GB, free: 5.68 MB / 0.4981 GB Notification: Performance of sort global known variables: time 1.5e-07/0.1987, allocations: 0 / 0.7056 GB, free: 5.68 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.0004817/0.1992, allocations: 88 kB / 0.7057 GB, free: 5.594 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.0001917/0.1994, allocations: 135.1 kB / 0.7058 GB, free: 5.449 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.0008759/0.2003, allocations: 0.6024 MB / 0.7064 GB, free: 4.82 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 3.185e-06/0.2003, allocations: 0 / 0.7064 GB, free: 4.82 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 0.000472/0.2007, allocations: 408.2 kB / 0.7068 GB, free: 4.398 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000509/0.2013, allocations: 53.66 kB / 0.7069 GB, free: 4.348 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001009/0.2023, allocations: 0.7669 MB / 0.7076 GB, free: 3.523 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003284/0.2026, allocations: 0.787 MB / 0.7084 GB, free: 2.711 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.881e-05/0.2027, allocations: 19.44 kB / 0.7084 GB, free: 2.691 MB / 0.4981 GB Notification: Performance of SimCode: time 2.41e-07/0.2027, allocations: 0 / 0.7084 GB, free: 2.691 MB / 0.4981 GB Notification: Performance of Templates: time 0.008973/0.2117, allocations: 7.625 MB / 0.7158 GB, free: 11.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)