Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr BuildingSystems_BuildingSystems.Electrical.DC.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.DC.Sensors.Examples.GeneralizedSensor,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Electrical.DC.Sensors.Examples.GeneralizedSensor") translateModel(BuildingSystems.Electrical.DC.Sensors.Examples.GeneralizedSensor,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Electrical.DC.Sensors.Examples.GeneralizedSensor") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001614/0.001613, 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.001939/0.001939, allocations: 190.8 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.323/1.323, allocations: 222.9 MB / 239.9 MB, free: 4.531 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002131/0.002132, allocations: 290.4 kB / 290.4 MB, free: 2.137 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9812/0.9812, allocations: 169.2 MB / 0.4978 GB, free: 14.11 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001632/0.001632, allocations: 97.23 kB / 0.5947 GB, free: 28.3 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1672/0.1688, allocations: 86.99 MB / 0.6796 GB, free: 1.086 MB / 478.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Electrical.DC.Sensors.Examples.GeneralizedSensor): time 0.00413/0.173, allocations: 2.533 MB / 0.6821 GB, free: 14.55 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.001259/0.1743, allocations: 0.7694 MB / 0.6829 GB, free: 13.78 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.799e-05/0.1744, allocations: 4 kB / 0.6829 GB, free: 13.78 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001125/0.1755, allocations: 0.5135 MB / 0.6834 GB, free: 13.26 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002483/0.1758, allocations: 99.61 kB / 0.6835 GB, free: 13.16 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002591/0.1761, allocations: 103.8 kB / 0.6836 GB, free: 13.06 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002373/0.1763, allocations: 199.4 kB / 0.6837 GB, free: 12.87 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003505/0.1767, allocations: 183.7 kB / 0.6839 GB, free: 12.69 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 9.073e-05/0.1768, allocations: 83.69 kB / 0.684 GB, free: 12.61 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001997/0.177, allocations: 99.64 kB / 0.6841 GB, free: 12.51 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 2.107e-05/0.177, allocations: 12 kB / 0.6841 GB, free: 12.5 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001722/0.1772, allocations: 111.8 kB / 0.6842 GB, free: 12.39 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 6.959e-05/0.1773, allocations: 51.89 kB / 0.6843 GB, free: 12.34 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 7.274e-05/0.1773, allocations: 71.61 kB / 0.6843 GB, free: 12.27 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002731/0.1776, allocations: 235.2 kB / 0.6846 GB, free: 12.04 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.646e-06/0.1776, allocations: 0 / 0.6846 GB, free: 12.04 MB / 494.1 MB Notification: Performance of FrontEnd: time 1.403e-06/0.1776, allocations: 0 / 0.6846 GB, free: 12.04 MB / 494.1 MB Notification: Performance of Transformations before backend: time 5.41e-06/0.1776, allocations: 0 / 0.6846 GB, free: 12.04 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: 37 * Number of variables: 37 Notification: Performance of Generate backend data structure: time 0.0005967/0.1782, allocations: 447.3 kB / 0.685 GB, free: 11.55 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.645e-05/0.1783, allocations: 12.03 kB / 0.685 GB, free: 11.54 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003594/0.1787, allocations: 44.7 kB / 0.685 GB, free: 11.49 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002376/0.1789, allocations: 212.1 kB / 0.6852 GB, free: 11.25 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.789e-05/0.1789, allocations: 12.66 kB / 0.6853 GB, free: 11.23 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.532e-05/0.179, allocations: 12.36 kB / 0.6853 GB, free: 11.22 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003541/0.1793, allocations: 231.3 kB / 0.6855 GB, free: 10.98 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.233e-05/0.1793, allocations: 7.938 kB / 0.6855 GB, free: 10.97 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.946e-05/0.1794, allocations: 4 kB / 0.6855 GB, free: 10.96 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.239e-05/0.1794, allocations: 16.27 kB / 0.6855 GB, free: 10.95 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002132/0.1796, allocations: 144.7 kB / 0.6857 GB, free: 10.81 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001087/0.1807, allocations: 1.127 MB / 0.6868 GB, free: 9.551 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 8.409e-05/0.1808, allocations: 42.58 kB / 0.6868 GB, free: 9.5 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.452e-05/0.1809, allocations: 20.94 kB / 0.6868 GB, free: 9.477 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.402e-05/0.1809, allocations: 0 / 0.6868 GB, free: 9.477 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.216e-05/0.1809, allocations: 30.56 kB / 0.6868 GB, free: 9.438 MB / 494.1 MB Notification: Performance of pre-optimization done (n=4): time 8.62e-07/0.1809, allocations: 0 / 0.6868 GB, free: 9.438 MB / 494.1 MB Notification: Performance of matching and sorting (n=4): time 0.0002122/0.1811, allocations: 85.45 kB / 0.6869 GB, free: 9.348 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.525e-05/0.1812, allocations: 59.28 kB / 0.687 GB, free: 9.277 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001421/0.1814, allocations: 176.7 kB / 0.6871 GB, free: 9.098 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 1.384e-05/0.1814, allocations: 25.7 kB / 0.6872 GB, free: 9.066 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.206e-05/0.1815, allocations: 147.3 kB / 0.6873 GB, free: 8.918 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.416e-05/0.1815, allocations: 15.8 kB / 0.6873 GB, free: 8.902 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.54e-05/0.1816, allocations: 25.72 kB / 0.6874 GB, free: 8.871 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 0.0001296/0.1817, allocations: 322.8 kB / 0.6877 GB, free: 8.547 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.785e-05/0.1818, allocations: 32.84 kB / 0.6877 GB, free: 8.512 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.933e-05/0.1818, allocations: 86.06 kB / 0.6878 GB, free: 8.395 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001458/0.182, allocations: 129.2 kB / 0.6879 GB, free: 8.234 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.903e-06/0.182, allocations: 0 / 0.6879 GB, free: 8.234 MB / 494.1 MB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0001876/0.1822, allocations: 141.3 kB / 0.688 GB, free: 8.09 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.603e-05/0.1822, allocations: 10.19 kB / 0.688 GB, free: 8.082 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.24e-06/0.1822, allocations: 0 / 0.688 GB, free: 8.082 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.651e-05/0.1823, allocations: 7.938 kB / 0.688 GB, free: 8.074 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001019/0.1824, allocations: 20 kB / 0.6881 GB, free: 8.055 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.329e-05/0.1824, allocations: 16.22 kB / 0.6881 GB, free: 8.039 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.915e-05/0.1825, allocations: 19.84 kB / 0.6881 GB, free: 8.02 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.237e-06/0.1825, allocations: 8 kB / 0.6881 GB, free: 8.012 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0001054/0.1826, allocations: 120.8 kB / 0.6882 GB, free: 7.891 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 7.691e-05/0.1827, allocations: 88.06 kB / 0.6883 GB, free: 7.773 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0001317/0.1828, allocations: 121.3 kB / 0.6884 GB, free: 7.621 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 1.032e-06/0.1828, allocations: 0 / 0.6884 GB, free: 7.621 MB / 494.1 MB Notification: Performance of matching and sorting (n=14) (initialization_lambda0): time 0.0001672/0.183, allocations: 137.2 kB / 0.6886 GB, free: 7.48 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.376e-06/0.183, allocations: 4.312 kB / 0.6886 GB, free: 7.477 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.986e-06/0.183, allocations: 8.281 kB / 0.6886 GB, free: 7.469 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.547e-06/0.183, allocations: 4 kB / 0.6886 GB, free: 7.465 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.746e-05/0.1831, allocations: 27.92 kB / 0.6886 GB, free: 7.438 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.95e-06/0.1831, allocations: 7.938 kB / 0.6886 GB, free: 7.43 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.076e-05/0.1832, allocations: 11.94 kB / 0.6886 GB, free: 7.418 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.271e-06/0.1832, allocations: 7.938 kB / 0.6886 GB, free: 7.41 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: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (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 prepare postOptimizeDAE: time 8.531e-05/0.1833, allocations: 188.9 kB / 0.6888 GB, free: 7.219 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.532e-05/0.1833, allocations: 11.89 kB / 0.6888 GB, free: 7.207 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.335e-05/0.1834, allocations: 16.92 kB / 0.6888 GB, free: 7.188 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.956e-06/0.1834, allocations: 7.938 kB / 0.6888 GB, free: 7.18 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.178e-06/0.1834, allocations: 0 / 0.6888 GB, free: 7.18 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.524e-06/0.1834, allocations: 0 / 0.6888 GB, free: 7.18 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003946/0.1838, allocations: 473.1 kB / 0.6893 GB, free: 6.648 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.333e-06/0.1838, allocations: 0 / 0.6893 GB, free: 6.648 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.175e-05/0.1838, allocations: 8.062 kB / 0.6893 GB, free: 6.641 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.208e-06/0.1838, allocations: 8 kB / 0.6893 GB, free: 6.633 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.003e-06/0.1839, allocations: 0 / 0.6893 GB, free: 6.633 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.865e-06/0.1839, allocations: 7.922 kB / 0.6893 GB, free: 6.625 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.92e-07/0.1839, allocations: 4 kB / 0.6893 GB, free: 6.621 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000115/0.184, allocations: 115.5 kB / 0.6894 GB, free: 6.48 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.178e-05/0.184, allocations: 92.94 kB / 0.6895 GB, free: 6.371 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.938e-05/0.1841, allocations: 4 kB / 0.6895 GB, free: 6.367 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.402e-05/0.1841, allocations: 4 kB / 0.6895 GB, free: 6.363 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.337e-05/0.1841, allocations: 0 / 0.6895 GB, free: 6.363 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.215e-06/0.1841, allocations: 8 kB / 0.6895 GB, free: 6.355 MB / 494.1 MB Notification: Performance of sorting global known variables: time 9.245e-05/0.1842, allocations: 123.2 kB / 0.6896 GB, free: 6.238 MB / 494.1 MB Notification: Performance of sort global known variables: time 1.61e-07/0.1842, allocations: 0 / 0.6896 GB, free: 6.238 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.0003263/0.1846, allocations: 55.75 kB / 0.6897 GB, free: 6.184 MB / 494.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * 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 (4): * Single equations (assignments): 4 * 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.0001077/0.1847, allocations: 107.2 kB / 0.6898 GB, free: 6.066 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.0002021/0.1849, allocations: 111.6 kB / 0.6899 GB, free: 5.957 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 2.034e-06/0.1849, allocations: 1.25 kB / 0.6899 GB, free: 5.957 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 2.419e-05/0.1849, allocations: 16.12 kB / 0.6899 GB, free: 5.941 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002662/0.1852, allocations: 28.05 kB / 0.69 GB, free: 5.914 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005212/0.1857, allocations: 319.2 kB / 0.6903 GB, free: 5.566 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003153/0.1861, allocations: 0.728 MB / 0.691 GB, free: 4.812 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 8.38e-05/0.1862, allocations: 24.62 kB / 0.691 GB, free: 4.789 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.097e-05/0.1862, allocations: 15.44 kB / 0.691 GB, free: 4.773 MB / 494.1 MB Notification: Performance of SimCode: time 1.663e-06/0.1862, allocations: 0 / 0.691 GB, free: 4.773 MB / 494.1 MB Notification: Performance of Templates: time 0.003254/0.1895, allocations: 0.8468 MB / 0.6918 GB, free: 3.934 MB / 494.1 MB make -j1 -f BuildingSystems_BuildingSystems.Electrical.DC.Sensors.Examples.GeneralizedSensor.makefile (rm -f BuildingSystems_BuildingSystems.Electrical.DC.Sensors.Examples.GeneralizedSensor.pipe ; mkfifo BuildingSystems_BuildingSystems.Electrical.DC.Sensors.Examples.GeneralizedSensor.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Electrical.DC.Sensors.Examples.GeneralizedSensor.pipe >> ../files/BuildingSystems_BuildingSystems.Electrical.DC.Sensors.Examples.GeneralizedSensor.sim & ./BuildingSystems_BuildingSystems.Electrical.DC.Sensors.Examples.GeneralizedSensor -abortSlowSimulation -alarm=480 -lv LOG_STATS > BuildingSystems_BuildingSystems.Electrical.DC.Sensors.Examples.GeneralizedSensor.pipe 2>&1)