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.001069/0.001069, allocations: 106.5 kB / 16.35 MB, free: 5.824 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.001023/0.001023, allocations: 189.4 kB / 17.29 MB, free: 5.48 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.273/1.273, allocations: 222.9 MB / 241 MB, free: 15.16 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002145/0.002145, allocations: 297.7 kB / 291.4 MB, free: 14.48 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.917/0.917, allocations: 169.2 MB / 0.4989 GB, free: 4.445 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002938/0.002938, allocations: 94.66 kB / 0.5967 GB, free: 14.43 MB / 414.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1674/0.1703, allocations: 86.97 MB / 0.6816 GB, free: 7.438 MB / 494.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Electrical.DC.Sensors.Examples.GeneralizedSensor): time 0.004207/0.1746, allocations: 2.494 MB / 0.684 GB, free: 4.93 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.00133/0.1759, allocations: 0.7906 MB / 0.6848 GB, free: 4.137 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001139/0.1761, allocations: 0 / 0.6848 GB, free: 4.137 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00123/0.1774, allocations: 0.5258 MB / 0.6853 GB, free: 3.605 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002925/0.1777, allocations: 103.5 kB / 0.6854 GB, free: 3.504 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003279/0.178, allocations: 115.8 kB / 0.6855 GB, free: 3.391 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002529/0.1783, allocations: 195.4 kB / 0.6857 GB, free: 3.199 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003432/0.1786, allocations: 166.1 kB / 0.6859 GB, free: 3.031 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 9.328e-05/0.1787, allocations: 83.67 kB / 0.6859 GB, free: 2.949 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002033/0.1789, allocations: 95.66 kB / 0.686 GB, free: 2.855 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 2.336e-05/0.179, allocations: 12 kB / 0.686 GB, free: 2.844 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000182/0.1792, allocations: 111.8 kB / 0.6861 GB, free: 2.734 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 5.978e-05/0.1792, allocations: 47.89 kB / 0.6862 GB, free: 2.688 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 7.62e-05/0.1793, allocations: 75.61 kB / 0.6863 GB, free: 2.613 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002735/0.1796, allocations: 223.3 kB / 0.6865 GB, free: 2.395 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.669e-06/0.1796, allocations: 0 / 0.6865 GB, free: 2.395 MB / 494.1 MB Notification: Performance of FrontEnd: time 1.723e-06/0.1796, allocations: 8 kB / 0.6865 GB, free: 2.387 MB / 494.1 MB Notification: Performance of Transformations before backend: time 7.524e-06/0.1796, allocations: 0 / 0.6865 GB, free: 2.387 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.0005713/0.1802, allocations: 447.2 kB / 0.6869 GB, free: 1.898 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.605e-05/0.1802, allocations: 8.031 kB / 0.6869 GB, free: 1.891 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00037/0.1806, allocations: 48.7 kB / 0.687 GB, free: 1.844 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002445/0.1809, allocations: 216.1 kB / 0.6872 GB, free: 1.594 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.356e-05/0.1809, allocations: 8.656 kB / 0.6872 GB, free: 1.586 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.456e-05/0.1809, allocations: 20.38 kB / 0.6872 GB, free: 1.566 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003431/0.1813, allocations: 240.5 kB / 0.6874 GB, free: 1.312 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.107e-06/0.1813, allocations: 0 / 0.6874 GB, free: 1.312 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.89e-05/0.1813, allocations: 4 kB / 0.6874 GB, free: 1.309 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.916e-05/0.1814, allocations: 12.28 kB / 0.6874 GB, free: 1.297 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002179/0.1816, allocations: 152.7 kB / 0.6876 GB, free: 1.148 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.262/0.4436, allocations: 1.117 MB / 0.6887 GB, free: 18.2 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001049/0.4437, allocations: 40.56 kB / 0.6887 GB, free: 18.18 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.876e-05/0.4438, allocations: 23.16 kB / 0.6887 GB, free: 18.17 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.374e-05/0.4438, allocations: 4.438 kB / 0.6887 GB, free: 18.17 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.177e-05/0.4438, allocations: 32.33 kB / 0.6888 GB, free: 18.13 MB / 494.1 MB Notification: Performance of pre-optimization done (n=4): time 2.705e-06/0.4438, allocations: 0 / 0.6888 GB, free: 18.13 MB / 494.1 MB Notification: Performance of matching and sorting (n=4): time 0.0002158/0.4441, allocations: 77.69 kB / 0.6889 GB, free: 18.1 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.682e-05/0.4441, allocations: 52.69 kB / 0.6889 GB, free: 18.04 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001516/0.4443, allocations: 175.1 kB / 0.6891 GB, free: 17.94 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 8.766e-06/0.4443, allocations: 31.08 kB / 0.6891 GB, free: 17.91 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.782e-05/0.4444, allocations: 136.6 kB / 0.6892 GB, free: 17.81 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.334e-05/0.4444, allocations: 17.94 kB / 0.6892 GB, free: 17.8 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.12e-05/0.4444, allocations: 33.39 kB / 0.6893 GB, free: 17.79 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 4.729e-05/0.4445, allocations: 323.4 kB / 0.6896 GB, free: 17.47 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.842e-05/0.4445, allocations: 27.66 kB / 0.6896 GB, free: 17.46 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.368e-05/0.4446, allocations: 89.38 kB / 0.6897 GB, free: 17.38 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001141/0.4447, allocations: 127 kB / 0.6898 GB, free: 17.29 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.485e-06/0.4447, allocations: 0 / 0.6898 GB, free: 17.29 MB / 494.1 MB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0001872/0.4449, allocations: 133.7 kB / 0.6899 GB, free: 17.25 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.758e-05/0.445, allocations: 7.594 kB / 0.69 GB, free: 17.25 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.624e-06/0.445, allocations: 3.688 kB / 0.69 GB, free: 17.25 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.655e-05/0.445, allocations: 8.5 kB / 0.69 GB, free: 17.25 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001312/0.4451, allocations: 28.02 kB / 0.69 GB, free: 17.25 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.746e-06/0.4451, allocations: 3.875 kB / 0.69 GB, free: 17.25 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.917e-05/0.4452, allocations: 17.06 kB / 0.69 GB, free: 17.24 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.277e-05/0.4452, allocations: 6.625 kB / 0.69 GB, free: 17.24 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 7.88e-05/0.4453, allocations: 121.3 kB / 0.6901 GB, free: 17.16 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 5.614e-05/0.4454, allocations: 90.36 kB / 0.6902 GB, free: 17.07 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 9.521e-05/0.4455, allocations: 123.1 kB / 0.6903 GB, free: 16.98 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 1.813e-06/0.4455, allocations: 0.6562 kB / 0.6903 GB, free: 16.98 MB / 494.1 MB Notification: Performance of matching and sorting (n=14) (initialization_lambda0): time 0.0001784/0.4457, allocations: 138.7 kB / 0.6905 GB, free: 16.93 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.977e-06/0.4457, allocations: 10.02 kB / 0.6905 GB, free: 16.93 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.627e-06/0.4457, allocations: 3.047 kB / 0.6905 GB, free: 16.93 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.657e-06/0.4457, allocations: 8.719 kB / 0.6905 GB, free: 16.92 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.507e-05/0.4458, allocations: 21.89 kB / 0.6905 GB, free: 16.92 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.632e-06/0.4458, allocations: 8.172 kB / 0.6905 GB, free: 16.92 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.801e-05/0.4459, allocations: 16.5 kB / 0.6905 GB, free: 16.91 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.935e-06/0.4459, allocations: 8.125 kB / 0.6905 GB, free: 16.91 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 5.232e-05/0.4459, allocations: 183.7 kB / 0.6907 GB, free: 16.73 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.996e-05/0.446, allocations: 9.141 kB / 0.6907 GB, free: 16.73 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.002e-05/0.446, allocations: 18.06 kB / 0.6907 GB, free: 16.72 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.174e-06/0.446, allocations: 3.594 kB / 0.6907 GB, free: 16.72 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.368e-06/0.446, allocations: 1.141 kB / 0.6908 GB, free: 16.72 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.557e-06/0.446, allocations: 5.062 kB / 0.6908 GB, free: 16.72 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003543/0.4464, allocations: 474.6 kB / 0.6912 GB, free: 16.3 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.424e-06/0.4464, allocations: 1.156 kB / 0.6912 GB, free: 16.3 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.345e-05/0.4465, allocations: 12.03 kB / 0.6912 GB, free: 16.3 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.144e-06/0.4465, allocations: 0.6875 kB / 0.6912 GB, free: 16.3 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.646e-06/0.4465, allocations: 4.672 kB / 0.6912 GB, free: 16.3 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.264e-06/0.4465, allocations: 1.969 kB / 0.6912 GB, free: 16.3 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.504e-06/0.4465, allocations: 1.781 kB / 0.6912 GB, free: 16.3 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 9.312e-05/0.4466, allocations: 115.7 kB / 0.6913 GB, free: 16.21 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.283e-05/0.4466, allocations: 95.55 kB / 0.6914 GB, free: 16.11 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.071e-05/0.4467, allocations: 6.297 kB / 0.6914 GB, free: 16.11 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.474e-05/0.4467, allocations: 2.281 kB / 0.6914 GB, free: 16.11 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.389e-05/0.4467, allocations: 2.078 kB / 0.6914 GB, free: 16.11 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.197e-06/0.4467, allocations: 3.406 kB / 0.6914 GB, free: 16.11 MB / 494.1 MB Notification: Performance of sorting global known variables: time 7.791e-05/0.4468, allocations: 131 kB / 0.6916 GB, free: 16.03 MB / 494.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.4468, allocations: 0 / 0.6916 GB, free: 16.03 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.0003485/0.4472, allocations: 62.28 kB / 0.6916 GB, free: 16.02 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 8.053e-05/0.4473, allocations: 100.2 kB / 0.6917 GB, free: 15.93 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.0002099/0.4475, allocations: 106.3 kB / 0.6918 GB, free: 15.91 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 2.214e-06/0.4475, allocations: 0 / 0.6918 GB, free: 15.91 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 2.835e-05/0.4475, allocations: 23.41 kB / 0.6918 GB, free: 15.91 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002662/0.4478, allocations: 24.86 kB / 0.6919 GB, free: 15.91 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004177/0.4482, allocations: 273 kB / 0.6921 GB, free: 15.73 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001386/0.4484, allocations: 0.7233 MB / 0.6928 GB, free: 15.04 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 8.016e-05/0.4485, allocations: 26.28 kB / 0.6929 GB, free: 15.04 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.62e-05/0.4485, allocations: 15.19 kB / 0.6929 GB, free: 15.04 MB / 494.1 MB Notification: Performance of SimCode: time 2.11e-07/0.4485, allocations: 0 / 0.6929 GB, free: 15.04 MB / 494.1 MB Notification: Performance of Templates: time 0.003415/0.4519, allocations: 0.8517 MB / 0.6937 GB, free: 14.96 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 -s gbode -lv LOG_STATS > BuildingSystems_BuildingSystems.Electrical.DC.Sensors.Examples.GeneralizedSensor.pipe 2>&1)