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.001046/0.001046, allocations: 111.3 kB / 15.23 MB, free: 0.6406 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.001096/0.001096, allocations: 196.7 kB / 16.14 MB, free: 6.715 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.276/1.276, allocations: 222.9 MB / 239.8 MB, free: 4.637 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002023/0.002023, allocations: 277 kB / 290.2 MB, free: 2.242 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 1.026/1.026, allocations: 169.2 MB / 0.4977 GB, free: 14.16 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001664/0.001664, allocations: 90.89 kB / 0.5945 GB, free: 28.51 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1567/0.1584, allocations: 86.99 MB / 0.6794 GB, free: 1.18 MB / 478.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Electrical.DC.Sensors.Examples.GeneralizedSensor): time 0.003682/0.1621, allocations: 2.532 MB / 0.6819 GB, free: 14.64 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.001207/0.1634, allocations: 0.7946 MB / 0.6827 GB, free: 13.85 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.666e-05/0.1635, allocations: 0 / 0.6827 GB, free: 13.85 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001053/0.1645, allocations: 0.5104 MB / 0.6832 GB, free: 13.33 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000222/0.1648, allocations: 99.66 kB / 0.6833 GB, free: 13.23 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002637/0.165, allocations: 94.2 kB / 0.6834 GB, free: 13.14 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 0.000292/0.1653, allocations: 295.2 kB / 0.6837 GB, free: 12.86 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002206/0.1656, allocations: 110.1 kB / 0.6838 GB, free: 12.75 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 8.17e-05/0.1657, allocations: 67.77 kB / 0.6838 GB, free: 12.68 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001844/0.1658, allocations: 99.64 kB / 0.6839 GB, free: 12.58 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 2.146e-05/0.1659, allocations: 8 kB / 0.6839 GB, free: 12.57 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002235/0.1661, allocations: 147.7 kB / 0.6841 GB, free: 12.43 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 6.485e-05/0.1662, allocations: 51.83 kB / 0.6841 GB, free: 12.38 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 7.395e-05/0.1663, allocations: 67.66 kB / 0.6842 GB, free: 12.31 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002917/0.1666, allocations: 231.2 kB / 0.6844 GB, free: 12.09 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.971e-06/0.1666, allocations: 4 kB / 0.6844 GB, free: 12.08 MB / 494.1 MB Notification: Performance of FrontEnd: time 9.51e-07/0.1666, allocations: 0 / 0.6844 GB, free: 12.08 MB / 494.1 MB Notification: Performance of Transformations before backend: time 4.629e-06/0.1666, allocations: 0 / 0.6844 GB, free: 12.08 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.0006259/0.1672, allocations: 443.3 kB / 0.6848 GB, free: 11.6 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.592e-05/0.1673, allocations: 8.031 kB / 0.6848 GB, free: 11.59 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003843/0.1677, allocations: 48.7 kB / 0.6849 GB, free: 11.54 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002431/0.1679, allocations: 220 kB / 0.6851 GB, free: 11.29 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.745e-05/0.1679, allocations: 12.59 kB / 0.6851 GB, free: 11.28 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.765e-05/0.168, allocations: 16.38 kB / 0.6851 GB, free: 11.26 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003698/0.1683, allocations: 235.2 kB / 0.6853 GB, free: 11.01 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.095e-05/0.1684, allocations: 0 / 0.6853 GB, free: 11.01 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.231e-05/0.1684, allocations: 7.984 kB / 0.6854 GB, free: 11 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.296e-05/0.1684, allocations: 16.28 kB / 0.6854 GB, free: 10.99 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002403/0.1687, allocations: 152.6 kB / 0.6855 GB, free: 10.84 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001147/0.1698, allocations: 1.127 MB / 0.6866 GB, free: 9.582 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 7.954e-05/0.1699, allocations: 38.56 kB / 0.6867 GB, free: 9.535 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.879e-05/0.17, allocations: 20.94 kB / 0.6867 GB, free: 9.512 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.271e-05/0.17, allocations: 0 / 0.6867 GB, free: 9.512 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.682e-05/0.17, allocations: 34.56 kB / 0.6867 GB, free: 9.469 MB / 494.1 MB Notification: Performance of pre-optimization done (n=4): time 1.052e-06/0.17, allocations: 0 / 0.6867 GB, free: 9.469 MB / 494.1 MB Notification: Performance of matching and sorting (n=4): time 0.0002269/0.1703, allocations: 81.45 kB / 0.6868 GB, free: 9.383 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.787e-05/0.1703, allocations: 55.41 kB / 0.6868 GB, free: 9.316 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001622/0.1705, allocations: 168.7 kB / 0.687 GB, free: 9.145 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 1.497e-05/0.1705, allocations: 25.7 kB / 0.687 GB, free: 9.113 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001039/0.1706, allocations: 147.3 kB / 0.6872 GB, free: 8.965 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.934e-05/0.1706, allocations: 15.8 kB / 0.6872 GB, free: 8.949 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.839e-05/0.1707, allocations: 29.72 kB / 0.6872 GB, free: 8.914 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 0.0001409/0.1708, allocations: 318.8 kB / 0.6875 GB, free: 8.594 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.772e-05/0.1709, allocations: 28.84 kB / 0.6875 GB, free: 8.562 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001088/0.171, allocations: 89.44 kB / 0.6876 GB, free: 8.441 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001617/0.1712, allocations: 121.2 kB / 0.6877 GB, free: 8.289 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.888e-06/0.1712, allocations: 4 kB / 0.6877 GB, free: 8.285 MB / 494.1 MB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0001957/0.1714, allocations: 133.4 kB / 0.6879 GB, free: 8.148 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.611e-05/0.1714, allocations: 7.984 kB / 0.6879 GB, free: 8.141 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.336e-06/0.1714, allocations: 4 kB / 0.6879 GB, free: 8.137 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.813e-05/0.1715, allocations: 8.25 kB / 0.6879 GB, free: 8.129 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001041/0.1716, allocations: 27.94 kB / 0.6879 GB, free: 8.102 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.294e-06/0.1716, allocations: 3.984 kB / 0.6879 GB, free: 8.098 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.905e-05/0.1717, allocations: 15.84 kB / 0.6879 GB, free: 8.082 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.498e-06/0.1717, allocations: 4 kB / 0.6879 GB, free: 8.078 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0001039/0.1718, allocations: 120.8 kB / 0.6881 GB, free: 7.957 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 8.827e-05/0.1719, allocations: 105.2 kB / 0.6882 GB, free: 7.82 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.00013/0.172, allocations: 121.5 kB / 0.6883 GB, free: 7.668 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 1.072e-06/0.172, allocations: 0 / 0.6883 GB, free: 7.668 MB / 494.1 MB Notification: Performance of matching and sorting (n=14) (initialization_lambda0): time 0.0001851/0.1722, allocations: 141.4 kB / 0.6884 GB, free: 7.523 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.395e-06/0.1722, allocations: 8 kB / 0.6884 GB, free: 7.516 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.814e-06/0.1722, allocations: 0 / 0.6884 GB, free: 7.516 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 5.35e-06/0.1723, allocations: 4 kB / 0.6884 GB, free: 7.512 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.232e-05/0.1723, allocations: 27.92 kB / 0.6884 GB, free: 7.484 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.961e-06/0.1723, allocations: 7.938 kB / 0.6884 GB, free: 7.477 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.566e-05/0.1724, allocations: 7.938 kB / 0.6885 GB, free: 7.469 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.815e-06/0.1724, allocations: 8 kB / 0.6885 GB, free: 7.461 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 0.0001015/0.1725, allocations: 189 kB / 0.6886 GB, free: 7.27 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.843e-05/0.1726, allocations: 7.906 kB / 0.6887 GB, free: 7.262 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.301e-05/0.1726, allocations: 16.92 kB / 0.6887 GB, free: 7.242 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.417e-06/0.1726, allocations: 3.938 kB / 0.6887 GB, free: 7.238 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.809e-06/0.1726, allocations: 4 kB / 0.6887 GB, free: 7.234 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.094e-06/0.1726, allocations: 0 / 0.6887 GB, free: 7.234 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004242/0.173, allocations: 473.1 kB / 0.6891 GB, free: 6.703 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.513e-06/0.1731, allocations: 0 / 0.6891 GB, free: 6.703 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.523e-05/0.1731, allocations: 15.94 kB / 0.6891 GB, free: 6.688 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.863e-06/0.1731, allocations: 0 / 0.6891 GB, free: 6.688 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.301e-05/0.1731, allocations: 0 / 0.6891 GB, free: 6.688 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.537e-06/0.1731, allocations: 4 kB / 0.6891 GB, free: 6.684 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.756e-06/0.1731, allocations: 3.984 kB / 0.6891 GB, free: 6.68 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001211/0.1733, allocations: 115.6 kB / 0.6893 GB, free: 6.539 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.322e-05/0.1733, allocations: 92.94 kB / 0.6893 GB, free: 6.43 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.1e-05/0.1734, allocations: 4 kB / 0.6894 GB, free: 6.426 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.356e-05/0.1734, allocations: 0 / 0.6894 GB, free: 6.426 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.503e-05/0.1734, allocations: 3.938 kB / 0.6894 GB, free: 6.422 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.168e-06/0.1734, allocations: 8 kB / 0.6894 GB, free: 6.414 MB / 494.1 MB Notification: Performance of sorting global known variables: time 9.279e-05/0.1735, allocations: 123.2 kB / 0.6895 GB, free: 6.297 MB / 494.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.1735, allocations: 4 kB / 0.6895 GB, free: 6.293 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.000333/0.1739, allocations: 59.75 kB / 0.6895 GB, free: 6.234 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.000126/0.174, allocations: 103.2 kB / 0.6896 GB, free: 6.121 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.0001965/0.1742, allocations: 112.8 kB / 0.6897 GB, free: 6.012 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 2.124e-06/0.1742, allocations: 4.062 kB / 0.6898 GB, free: 6.008 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 2.358e-05/0.1742, allocations: 12 kB / 0.6898 GB, free: 5.996 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000272/0.1745, allocations: 23.97 kB / 0.6898 GB, free: 5.973 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005176/0.175, allocations: 323.4 kB / 0.6901 GB, free: 5.621 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003068/0.1754, allocations: 0.7202 MB / 0.6908 GB, free: 4.875 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 8.698e-05/0.1755, allocations: 32.55 kB / 0.6908 GB, free: 4.844 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.208e-05/0.1755, allocations: 15.44 kB / 0.6908 GB, free: 4.828 MB / 494.1 MB Notification: Performance of SimCode: time 4.71e-07/0.1755, allocations: 0 / 0.6908 GB, free: 4.828 MB / 494.1 MB Notification: Performance of Templates: time 0.002973/0.1785, allocations: 0.8183 MB / 0.6916 GB, free: 4.016 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)