Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr BuildingSystems_BuildingSystems.Electrical.Utilities.Examples.TestVoltageCTRL.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.Utilities.Examples.TestVoltageCTRL,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Electrical.Utilities.Examples.TestVoltageCTRL") translateModel(BuildingSystems.Electrical.Utilities.Examples.TestVoltageCTRL,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Electrical.Utilities.Examples.TestVoltageCTRL") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0007564/0.0007561, allocations: 90.52 kB / 15.36 MB, free: 0.7383 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.004936/0.004936, allocations: 171.1 kB / 16.26 MB, free: 6.613 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.345/1.345, allocations: 223.3 MB / 240.3 MB, free: 5.328 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.001758/0.001759, allocations: 259 kB / 291.7 MB, free: 1.867 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9252/0.9252, allocations: 169.5 MB / 0.5004 GB, free: 14.12 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0004479/0.0004479, allocations: 18.16 kB / 0.5987 GB, free: 28.05 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1636/0.1641, allocations: 88.54 MB / 0.6851 GB, free: 15.09 MB / 494.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Electrical.Utilities.Examples.TestVoltageCTRL): time 0.002687/0.1668, allocations: 1.997 MB / 0.6871 GB, free: 13.09 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.00127/0.1681, allocations: 0.7657 MB / 0.6878 GB, free: 12.32 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.872e-05/0.1682, allocations: 5.125 kB / 0.6878 GB, free: 12.31 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001214/0.1684, allocations: 19.86 kB / 0.6878 GB, free: 12.29 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002516/0.1686, allocations: 56.3 kB / 0.6879 GB, free: 12.24 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001664/0.1688, allocations: 52.72 kB / 0.6879 GB, free: 12.19 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002384/0.169, allocations: 197.1 kB / 0.6881 GB, free: 12 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002827/0.1693, allocations: 198 kB / 0.6883 GB, free: 11.78 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001102/0.1695, allocations: 51.78 kB / 0.6884 GB, free: 11.73 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000153/0.1696, allocations: 63.69 kB / 0.6884 GB, free: 11.66 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 1.967e-05/0.1697, allocations: 4 kB / 0.6884 GB, free: 11.66 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001227/0.1698, allocations: 63.86 kB / 0.6885 GB, free: 11.6 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 5.954e-05/0.1698, allocations: 35.84 kB / 0.6885 GB, free: 11.56 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 8.357e-05/0.1699, allocations: 82 kB / 0.6886 GB, free: 11.48 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002242/0.1702, allocations: 163.4 kB / 0.6888 GB, free: 11.32 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.128e-06/0.1702, allocations: 0.625 kB / 0.6888 GB, free: 11.32 MB / 494.1 MB Notification: Performance of FrontEnd: time 1.363e-06/0.1702, allocations: 0 / 0.6888 GB, free: 11.32 MB / 494.1 MB Notification: Performance of Transformations before backend: time 4.348e-06/0.1702, allocations: 0.5625 kB / 0.6888 GB, free: 11.32 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: 24 * Number of variables: 24 Notification: Performance of Generate backend data structure: time 0.0006407/0.1708, allocations: 477.8 kB / 0.6892 GB, free: 10.79 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.528e-05/0.1709, allocations: 8.031 kB / 0.6892 GB, free: 10.79 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002205/0.1711, allocations: 28.73 kB / 0.6893 GB, free: 10.76 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002404/0.1714, allocations: 210 kB / 0.6895 GB, free: 10.52 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.405e-05/0.1714, allocations: 42.44 kB / 0.6895 GB, free: 10.47 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.719e-05/0.1715, allocations: 12.88 kB / 0.6895 GB, free: 10.46 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002829/0.1718, allocations: 154.6 kB / 0.6897 GB, free: 10.29 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.067e-06/0.1718, allocations: 0 / 0.6897 GB, free: 10.29 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.966e-05/0.1718, allocations: 8 kB / 0.6897 GB, free: 10.29 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.734e-05/0.1718, allocations: 4.656 kB / 0.6897 GB, free: 10.28 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001947/0.172, allocations: 85.8 kB / 0.6897 GB, free: 10.2 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000848/0.1729, allocations: 0.6514 MB / 0.6904 GB, free: 9.488 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002258/0.1731, allocations: 63.86 kB / 0.6904 GB, free: 9.418 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.774e-05/0.1732, allocations: 34.53 kB / 0.6905 GB, free: 9.383 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.107e-05/0.1732, allocations: 0 / 0.6905 GB, free: 9.383 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001997/0.1734, allocations: 139.7 kB / 0.6906 GB, free: 9.223 MB / 494.1 MB Notification: Performance of pre-optimization done (n=7): time 1.292e-06/0.1734, allocations: 4 kB / 0.6906 GB, free: 9.219 MB / 494.1 MB Notification: Performance of matching and sorting (n=7): time 0.0003852/0.1738, allocations: 171.2 kB / 0.6908 GB, free: 9.039 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.424e-05/0.1739, allocations: 136.5 kB / 0.6909 GB, free: 8.875 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001596/0.1741, allocations: 174.4 kB / 0.6911 GB, free: 8.695 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 2.968e-05/0.1741, allocations: 33.7 kB / 0.6911 GB, free: 8.656 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.924e-05/0.1742, allocations: 139.7 kB / 0.6912 GB, free: 8.512 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.525e-05/0.1742, allocations: 27.72 kB / 0.6913 GB, free: 8.484 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.498e-05/0.1743, allocations: 21.7 kB / 0.6913 GB, free: 8.457 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 0.0001255/0.1744, allocations: 326.8 kB / 0.6916 GB, free: 8.129 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.521e-05/0.1745, allocations: 43.94 kB / 0.6916 GB, free: 8.086 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001433/0.1747, allocations: 113.3 kB / 0.6917 GB, free: 7.941 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002616/0.1749, allocations: 234.3 kB / 0.692 GB, free: 7.66 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.725e-06/0.175, allocations: 4 kB / 0.692 GB, free: 7.656 MB / 494.1 MB Notification: Performance of matching and sorting (n=20) (initialization): time 0.000371/0.1753, allocations: 248.6 kB / 0.6922 GB, free: 7.395 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.057e-05/0.1754, allocations: 59.41 kB / 0.6923 GB, free: 7.324 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.548e-06/0.1754, allocations: 7.938 kB / 0.6923 GB, free: 7.316 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.646e-05/0.1754, allocations: 4 kB / 0.6923 GB, free: 7.312 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001233/0.1756, allocations: 40.23 kB / 0.6923 GB, free: 7.273 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.013e-06/0.1756, allocations: 0 / 0.6923 GB, free: 7.273 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001427/0.1757, allocations: 27.83 kB / 0.6923 GB, free: 7.246 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.503e-05/0.1758, allocations: 8 kB / 0.6924 GB, free: 7.238 MB / 494.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 11 * Number of states: 0 () * Number of discrete variables: 6 (voltageControl.ctrl.tSwitch,$PRE.voltageControl.ctrl.tSwitch,voltageControl.ctrl.connected,$PRE.voltageControl.ctrl.connected,$whenCondition2,$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (18): * Single equations (assignments): 16 * Array equations: 0 * Algorithm blocks: 2 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.000138/0.1759, allocations: 165.8 kB / 0.6925 GB, free: 7.062 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.232e-05/0.1759, allocations: 15.81 kB / 0.6925 GB, free: 7.047 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.508e-05/0.176, allocations: 25.33 kB / 0.6926 GB, free: 7.023 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.084e-06/0.176, allocations: 0 / 0.6926 GB, free: 7.023 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.061e-06/0.176, allocations: 4 kB / 0.6926 GB, free: 7.02 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.514e-06/0.176, allocations: 0 / 0.6926 GB, free: 7.02 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000181/0.1762, allocations: 209.6 kB / 0.6928 GB, free: 6.766 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.022e-06/0.1762, allocations: 0 / 0.6928 GB, free: 6.766 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.773e-05/0.1763, allocations: 8 kB / 0.6928 GB, free: 6.758 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.663e-06/0.1763, allocations: 0 / 0.6928 GB, free: 6.758 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.865e-05/0.1763, allocations: 11.94 kB / 0.6928 GB, free: 6.746 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.262e-06/0.1763, allocations: 0 / 0.6928 GB, free: 6.746 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.505e-06/0.1763, allocations: 4.297 kB / 0.6928 GB, free: 6.742 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003814/0.1767, allocations: 218.6 kB / 0.693 GB, free: 6.504 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.251e-05/0.1768, allocations: 96.94 kB / 0.6931 GB, free: 6.391 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.705e-05/0.1768, allocations: 3.938 kB / 0.6931 GB, free: 6.387 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.436e-05/0.1769, allocations: 23.98 kB / 0.6931 GB, free: 6.363 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.288e-05/0.177, allocations: 8 kB / 0.6931 GB, free: 6.355 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.857e-06/0.177, allocations: 3.984 kB / 0.6931 GB, free: 6.352 MB / 494.1 MB Notification: Performance of sorting global known variables: time 0.000108/0.1771, allocations: 132.3 kB / 0.6932 GB, free: 6.223 MB / 494.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.1771, allocations: 0 / 0.6932 GB, free: 6.223 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.0002419/0.1774, allocations: 31.94 kB / 0.6933 GB, free: 6.191 MB / 494.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 1 (voltageControl.y) * Number of discrete variables: 4 ($whenCondition1,$whenCondition2,voltageControl.ctrl.connected,voltageControl.ctrl.tSwitch) * Number of discrete states: 4 ($whenCondition2,voltageControl.ctrl.connected,voltageControl.ctrl.tSwitch,$whenCondition1) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (4): * Single equations (assignments): 3 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.000125/0.1775, allocations: 109.6 kB / 0.6934 GB, free: 6.078 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.0003267/0.1778, allocations: 226.6 kB / 0.6936 GB, free: 5.832 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 2.214e-06/0.1778, allocations: 3.938 kB / 0.6936 GB, free: 5.828 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001283/0.178, allocations: 107.4 kB / 0.6937 GB, free: 5.711 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002495/0.1782, allocations: 17.88 kB / 0.6937 GB, free: 5.695 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005825/0.1788, allocations: 350.7 kB / 0.6941 GB, free: 5.328 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002868/0.1791, allocations: 0.72 MB / 0.6948 GB, free: 4.582 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 7.347e-05/0.1792, allocations: 16.64 kB / 0.6948 GB, free: 4.566 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.918e-05/0.1792, allocations: 11.44 kB / 0.6948 GB, free: 4.555 MB / 494.1 MB Notification: Performance of SimCode: time 2.41e-07/0.1792, allocations: 4 kB / 0.6948 GB, free: 4.551 MB / 494.1 MB Notification: Performance of Templates: time 0.003804/0.1831, allocations: 1.236 MB / 0.696 GB, free: 3.328 MB / 494.1 MB make -j1 -f BuildingSystems_BuildingSystems.Electrical.Utilities.Examples.TestVoltageCTRL.makefile (rm -f BuildingSystems_BuildingSystems.Electrical.Utilities.Examples.TestVoltageCTRL.pipe ; mkfifo BuildingSystems_BuildingSystems.Electrical.Utilities.Examples.TestVoltageCTRL.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Electrical.Utilities.Examples.TestVoltageCTRL.pipe >> ../files/BuildingSystems_BuildingSystems.Electrical.Utilities.Examples.TestVoltageCTRL.sim & ./BuildingSystems_BuildingSystems.Electrical.Utilities.Examples.TestVoltageCTRL -abortSlowSimulation -alarm=480 -lv LOG_STATS > BuildingSystems_BuildingSystems.Electrical.Utilities.Examples.TestVoltageCTRL.pipe 2>&1)