Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr BuildingSystems_BuildingSystems.Electrical.AC.ThreePhasesBalanced.Sensors.Examples.GeneralizedSensor.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.ThreePhasesBalanced.Sensors.Examples.GeneralizedSensor,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Electrical.AC.ThreePhasesBalanced.Sensors.Examples.GeneralizedSensor") translateModel(BuildingSystems.Electrical.AC.ThreePhasesBalanced.Sensors.Examples.GeneralizedSensor,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Electrical.AC.ThreePhasesBalanced.Sensors.Examples.GeneralizedSensor") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009834/0.0009834, allocations: 104.7 kB / 15.99 MB, free: 6.355 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.0009833/0.0009833, allocations: 198.3 kB / 16.91 MB, free: 6.195 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.249/1.249, allocations: 222.9 MB / 240.6 MB, free: 15.44 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002123/0.002123, allocations: 291.2 kB / 291 MB, free: 14.7 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.8943/0.8943, allocations: 169.2 MB / 0.4985 GB, free: 4.711 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001675/0.001675, allocations: 87.8 kB / 0.5953 GB, free: 4.406 MB / 446.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1595/0.1612, allocations: 86.97 MB / 0.6803 GB, free: 13.43 MB / 0.5294 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Electrical.AC.ThreePhasesBalanced.Sensors.Examples.GeneralizedSensor): time 0.003619/0.1649, allocations: 2.656 MB / 0.6829 GB, free: 10.75 MB / 0.5294 GB Notification: Performance of NFInst.instExpressions: time 0.001956/0.1668, allocations: 1.472 MB / 0.6843 GB, free: 9.273 MB / 0.5294 GB Notification: Performance of NFInst.updateImplicitVariability: time 7.325e-05/0.1669, allocations: 0 / 0.6843 GB, free: 9.273 MB / 0.5294 GB Notification: Performance of NFTyping.typeComponents: time 0.0006636/0.1676, allocations: 219.2 kB / 0.6845 GB, free: 9.059 MB / 0.5294 GB Notification: Performance of NFTyping.typeBindings: time 0.0003514/0.168, allocations: 179.4 kB / 0.6847 GB, free: 8.883 MB / 0.5294 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002909/0.1683, allocations: 131.8 kB / 0.6848 GB, free: 8.754 MB / 0.5294 GB Notification: Performance of NFFlatten.flatten: time 0.0002402/0.1685, allocations: 231.3 kB / 0.685 GB, free: 8.527 MB / 0.5294 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0003269/0.1689, allocations: 190.7 kB / 0.6852 GB, free: 8.336 MB / 0.5294 GB Notification: Performance of NFEvalConstants.evaluate: time 0.00013/0.169, allocations: 103.6 kB / 0.6853 GB, free: 8.234 MB / 0.5294 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001961/0.1692, allocations: 123.5 kB / 0.6854 GB, free: 8.113 MB / 0.5294 GB Notification: Performance of NFPackage.collectConstants: time 2.468e-05/0.1692, allocations: 16 kB / 0.6855 GB, free: 8.098 MB / 0.5294 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002772/0.1695, allocations: 215.6 kB / 0.6857 GB, free: 7.887 MB / 0.5294 GB Notification: Performance of NFScalarize.scalarize: time 7.521e-05/0.1696, allocations: 75.8 kB / 0.6857 GB, free: 7.812 MB / 0.5294 GB Notification: Performance of NFVerifyModel.verify: time 9.31e-05/0.1697, allocations: 87.53 kB / 0.6858 GB, free: 7.727 MB / 0.5294 GB Notification: Performance of NFConvertDAE.convert: time 0.0002639/0.17, allocations: 251.5 kB / 0.6861 GB, free: 7.48 MB / 0.5294 GB Notification: Performance of FrontEnd - DAE generated: time 3.587e-06/0.17, allocations: 0 / 0.6861 GB, free: 7.48 MB / 0.5294 GB Notification: Performance of FrontEnd: time 1.122e-06/0.17, allocations: 0 / 0.6861 GB, free: 7.48 MB / 0.5294 GB Notification: Performance of Transformations before backend: time 5.16e-06/0.17, allocations: 0 / 0.6861 GB, free: 7.48 MB / 0.5294 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 46 * Number of variables: 46 Notification: Performance of Generate backend data structure: time 0.0006078/0.1706, allocations: 499.1 kB / 0.6865 GB, free: 6.945 MB / 0.5294 GB Notification: Performance of prepare preOptimizeDAE: time 3.246e-05/0.1707, allocations: 8.031 kB / 0.6865 GB, free: 6.938 MB / 0.5294 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005611/0.1712, allocations: 80.56 kB / 0.6866 GB, free: 6.859 MB / 0.5294 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002125/0.1714, allocations: 228 kB / 0.6868 GB, free: 6.598 MB / 0.5294 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.625e-05/0.1715, allocations: 16.7 kB / 0.6869 GB, free: 6.582 MB / 0.5294 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.504e-05/0.1715, allocations: 12.38 kB / 0.6869 GB, free: 6.57 MB / 0.5294 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004245/0.1719, allocations: 324.3 kB / 0.6872 GB, free: 6.219 MB / 0.5294 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.759e-05/0.172, allocations: 4 kB / 0.6872 GB, free: 6.215 MB / 0.5294 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.366e-05/0.172, allocations: 8 kB / 0.6872 GB, free: 6.207 MB / 0.5294 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.514e-05/0.172, allocations: 24.27 kB / 0.6872 GB, free: 6.18 MB / 0.5294 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000348/0.1724, allocations: 252.6 kB / 0.6874 GB, free: 5.934 MB / 0.5294 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001401/0.1738, allocations: 1.634 MB / 0.689 GB, free: 4.152 MB / 0.5294 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005914/0.1744, allocations: 415.1 kB / 0.6894 GB, free: 3.691 MB / 0.5294 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001205/0.1745, allocations: 85.67 kB / 0.6895 GB, free: 3.602 MB / 0.5294 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001304/0.1747, allocations: 93.09 kB / 0.6896 GB, free: 3.492 MB / 0.5294 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.202e-05/0.1747, allocations: 30.56 kB / 0.6896 GB, free: 3.453 MB / 0.5294 GB Notification: Performance of pre-optimization done (n=13): time 1.272e-06/0.1747, allocations: 0 / 0.6896 GB, free: 3.453 MB / 0.5294 GB Notification: Performance of matching and sorting (n=14): time 0.0005927/0.1753, allocations: 320.5 kB / 0.6899 GB, free: 3.133 MB / 0.5294 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.067e-05/0.1753, allocations: 81.11 kB / 0.69 GB, free: 3.035 MB / 0.5294 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001387/0.1755, allocations: 174.8 kB / 0.6902 GB, free: 2.859 MB / 0.5294 GB Notification: Performance of collectPreVariables (initialization): time 1.784e-05/0.1755, allocations: 29.7 kB / 0.6902 GB, free: 2.824 MB / 0.5294 GB Notification: Performance of collectInitialEqns (initialization): time 7.783e-05/0.1756, allocations: 160 kB / 0.6904 GB, free: 2.664 MB / 0.5294 GB Notification: Performance of collectInitialBindings (initialization): time 3.392e-05/0.1756, allocations: 39.36 kB / 0.6904 GB, free: 2.625 MB / 0.5294 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.504e-05/0.1757, allocations: 53.61 kB / 0.6905 GB, free: 2.566 MB / 0.5294 GB Notification: Performance of setup shared object (initialization): time 9.658e-05/0.1758, allocations: 318.8 kB / 0.6908 GB, free: 2.246 MB / 0.5294 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000119/0.176, allocations: 84.8 kB / 0.6908 GB, free: 2.16 MB / 0.5294 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001503/0.1761, allocations: 155.8 kB / 0.691 GB, free: 1.977 MB / 0.5294 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002756/0.1764, allocations: 248.8 kB / 0.6912 GB, free: 1.703 MB / 0.5294 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.402e-06/0.1764, allocations: 0 / 0.6912 GB, free: 1.703 MB / 0.5294 GB Notification: Performance of matching and sorting (n=25) (initialization): time 0.0003728/0.1768, allocations: 277.2 kB / 0.6915 GB, free: 1.426 MB / 0.5294 GB Notification: Performance of prepare postOptimizeDAE: time 1.403e-05/0.1768, allocations: 4 kB / 0.6915 GB, free: 1.422 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.611e-06/0.1768, allocations: 4 kB / 0.6915 GB, free: 1.418 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.393e-05/0.1768, allocations: 7.938 kB / 0.6915 GB, free: 1.41 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002283/0.1771, allocations: 47.97 kB / 0.6916 GB, free: 1.363 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.997e-06/0.1771, allocations: 11.92 kB / 0.6916 GB, free: 1.352 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001424/0.1772, allocations: 19.83 kB / 0.6916 GB, free: 1.332 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.659e-05/0.1773, allocations: 12.31 kB / 0.6916 GB, free: 1.32 MB / 0.5294 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0001552/0.1774, allocations: 180.1 kB / 0.6918 GB, free: 1.141 MB / 0.5294 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0001369/0.1776, allocations: 147.1 kB / 0.6919 GB, free: 0.9609 MB / 0.5294 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0002509/0.1778, allocations: 238 kB / 0.6921 GB, free: 0.6914 MB / 0.5294 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 1.353e-06/0.1778, allocations: 0 / 0.6921 GB, free: 0.6914 MB / 0.5294 GB Notification: Performance of matching and sorting (n=25) (initialization_lambda0): time 0.000326/0.1782, allocations: 245.3 kB / 0.6924 GB, free: 456 kB / 0.5294 GB Notification: Performance of prepare postOptimizeDAE: time 7.965e-06/0.1782, allocations: 8.344 kB / 0.6924 GB, free: 448 kB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.134e-06/0.1782, allocations: 4 kB / 0.6924 GB, free: 444 kB / 0.5294 GB Notification: Performance of postOpt tearingSystem (initialization): time 4.037e-06/0.1782, allocations: 4 kB / 0.6924 GB, free: 440 kB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001793/0.1784, allocations: 55.84 kB / 0.6924 GB, free: 384 kB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.44e-06/0.1784, allocations: 7.984 kB / 0.6924 GB, free: 376 kB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001164/0.1785, allocations: 11.91 kB / 0.6925 GB, free: 364 kB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.624e-05/0.1785, allocations: 15.98 kB / 0.6925 GB, free: 348 kB / 0.5294 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 (25): * Single equations (assignments): 25 * Array equations: 0 * Algorithm blocks: 0 * 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 9.439e-05/0.1786, allocations: 192.1 kB / 0.6927 GB, free: 148 kB / 0.5294 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.213e-05/0.1787, allocations: 11.91 kB / 0.6927 GB, free: 136 kB / 0.5294 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003355/0.179, allocations: 211.6 kB / 0.6929 GB, free: 15.91 MB / 0.545 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.305e-06/0.179, allocations: 192 / 0.6929 GB, free: 15.91 MB / 0.545 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.988e-06/0.179, allocations: 0 / 0.6929 GB, free: 15.91 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.613e-06/0.1791, allocations: 7.938 kB / 0.6929 GB, free: 15.91 MB / 0.545 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001075/0.1801, allocations: 0.9654 MB / 0.6938 GB, free: 14.83 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.997e-06/0.1802, allocations: 8.094 kB / 0.6938 GB, free: 14.82 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001376/0.1803, allocations: 39.91 kB / 0.6939 GB, free: 14.78 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 9.238e-06/0.1803, allocations: 4 kB / 0.6939 GB, free: 14.78 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.513e-05/0.1803, allocations: 8 kB / 0.6939 GB, free: 14.77 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.877e-06/0.1803, allocations: 4 kB / 0.6939 GB, free: 14.77 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.358e-06/0.1804, allocations: 7.875 kB / 0.6939 GB, free: 14.76 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003301/0.1807, allocations: 440.9 kB / 0.6943 GB, free: 14.27 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 7.425e-05/0.1808, allocations: 104.9 kB / 0.6944 GB, free: 14.15 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.142e-05/0.1808, allocations: 11.98 kB / 0.6944 GB, free: 14.14 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001862/0.181, allocations: 11.98 kB / 0.6944 GB, free: 14.13 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.86e-05/0.181, allocations: 19.94 kB / 0.6945 GB, free: 14.11 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.199e-05/0.1811, allocations: 11.98 kB / 0.6945 GB, free: 14.1 MB / 0.545 GB Notification: Performance of sorting global known variables: time 9.932e-05/0.1812, allocations: 129.2 kB / 0.6946 GB, free: 13.97 MB / 0.545 GB Notification: Performance of sort global known variables: time 1.372e-06/0.1812, allocations: 0 / 0.6946 GB, free: 13.97 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.0004707/0.1816, allocations: 79.94 kB / 0.6947 GB, free: 13.89 MB / 0.545 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 14 * 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 (14): * Single equations (assignments): 14 * Array equations: 0 * Algorithm blocks: 0 * 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.0001344/0.1818, allocations: 107.2 kB / 0.6948 GB, free: 13.78 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.0004165/0.1822, allocations: 311.3 kB / 0.6951 GB, free: 13.48 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 4.679e-06/0.1822, allocations: 4 kB / 0.6951 GB, free: 13.48 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 9.853e-05/0.1823, allocations: 77.39 kB / 0.6951 GB, free: 13.4 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004707/0.1828, allocations: 40.19 kB / 0.6952 GB, free: 13.37 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007283/0.1835, allocations: 0.5841 MB / 0.6957 GB, free: 12.71 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002804/0.1838, allocations: 0.744 MB / 0.6965 GB, free: 11.94 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.158e-05/0.1839, allocations: 19.44 kB / 0.6965 GB, free: 11.92 MB / 0.545 GB Notification: Performance of SimCode: time 2.31e-07/0.1839, allocations: 0 / 0.6965 GB, free: 11.92 MB / 0.545 GB Notification: Performance of Templates: time 0.003634/0.1875, allocations: 2.352 MB / 0.6988 GB, free: 9.574 MB / 0.545 GB make -j1 -f BuildingSystems_BuildingSystems.Electrical.AC.ThreePhasesBalanced.Sensors.Examples.GeneralizedSensor.makefile (rm -f BuildingSystems_BuildingSystems.Electrical.AC.ThreePhasesBalanced.Sensors.Examples.GeneralizedSensor.pipe ; mkfifo BuildingSystems_BuildingSystems.Electrical.AC.ThreePhasesBalanced.Sensors.Examples.GeneralizedSensor.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Electrical.AC.ThreePhasesBalanced.Sensors.Examples.GeneralizedSensor.pipe >> ../files/BuildingSystems_BuildingSystems.Electrical.AC.ThreePhasesBalanced.Sensors.Examples.GeneralizedSensor.sim & ./BuildingSystems_BuildingSystems.Electrical.AC.ThreePhasesBalanced.Sensors.Examples.GeneralizedSensor -abortSlowSimulation -alarm=480 -lv LOG_STATS > BuildingSystems_BuildingSystems.Electrical.AC.ThreePhasesBalanced.Sensors.Examples.GeneralizedSensor.pipe 2>&1)