Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_3.0.0_Buildings.Electrical.DC.Sensors.Examples.GeneralizedSensor.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_StateGraph2 2.0.2/package.mo", uses=false) 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 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 3.0.0/package.mo", uses=false) Using package Buildings with version 3.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 3.0.0/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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) Using package Modelica_StateGraph2 with version 2.0.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_StateGraph2 2.0.2/package.mo) Running command: translateModel(Buildings.Electrical.DC.Sensors.Examples.GeneralizedSensor,tolerance=1e-05,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_3.0.0_Buildings.Electrical.DC.Sensors.Examples.GeneralizedSensor") translateModel(Buildings.Electrical.DC.Sensors.Examples.GeneralizedSensor,tolerance=1e-05,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_3.0.0_Buildings.Electrical.DC.Sensors.Examples.GeneralizedSensor") [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_StateGraph2 2.0.2/package.mo:257:38-257:110:writable] Warning: The file was not encoded in UTF-8: "

An important practical aspect of state machines is the abilit...". Defaulting to 7-bit ASCII with unknown characters replaced by '?'. To change encoding when loading a file: loadFile(encoding="ISO-XXXX-YY"). To change it in a package: add a file package.encoding at the top-level. Note: The Modelica Language Specification only allows files encoded in UTF-8. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_StateGraph2 2.0.2/package.mo:761:36-761:108:writable] Warning: The file was not encoded in UTF-8: "

The Modelica_StateGraph2 library is described in detail in (O...". Defaulting to 7-bit ASCII with unknown characters replaced by '?'. To change encoding when loading a file: loadFile(encoding="ISO-XXXX-YY"). To change it in a package: add a file package.encoding at the top-level. Note: The Modelica Language Specification only allows files encoded in UTF-8. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_StateGraph2 2.0.2/package.mo:1435:36-1435:108:writable] Warning: The file was not encoded in UTF-8: "

Main Authors:
SCode: time 0.1561/0.1568, allocations: 82.22 MB / 0.5934 GB, free: 15.5 MB / 462.1 MB Notification: Performance of NFInst.instantiate(Buildings.Electrical.DC.Sensors.Examples.GeneralizedSensor): time 0.002827/0.1596, allocations: 2.104 MB / 0.5954 GB, free: 13.38 MB / 462.1 MB Notification: Performance of NFInst.instExpressions: time 0.001163/0.1608, allocations: 0.7561 MB / 0.5962 GB, free: 12.62 MB / 462.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001026/0.161, allocations: 4 kB / 0.5962 GB, free: 12.62 MB / 462.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001271/0.1611, allocations: 27.78 kB / 0.5962 GB, free: 12.59 MB / 462.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 3.0.0/Electrical/DC/Sensors/GeneralizedSensor.mo:29:54-29:70:writable] Warning: 'each' used when modifying non-array element P. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 3.0.0/Electrical/DC/Sensors/GeneralizedSensor.mo:30:13-30:21:writable] Warning: 'each' used when modifying non-array element P. Notification: Performance of NFTyping.typeBindings: time 0.000259/0.1614, allocations: 71.75 kB / 0.5963 GB, free: 12.52 MB / 462.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002906/0.1617, allocations: 87.75 kB / 0.5963 GB, free: 12.43 MB / 462.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001676/0.1618, allocations: 103.8 kB / 0.5964 GB, free: 12.33 MB / 462.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002554/0.1621, allocations: 171.2 kB / 0.5966 GB, free: 12.14 MB / 462.1 MB Notification: Performance of NFEvalConstants.evaluate: time 6.721e-05/0.1622, allocations: 47.84 kB / 0.5966 GB, free: 12.09 MB / 462.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001604/0.1624, allocations: 63.75 kB / 0.5967 GB, free: 12.03 MB / 462.1 MB Notification: Performance of NFPackage.collectConstants: time 1.758e-05/0.1624, allocations: 8 kB / 0.5967 GB, free: 12.02 MB / 462.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001141/0.1625, allocations: 47.91 kB / 0.5968 GB, free: 11.98 MB / 462.1 MB Notification: Performance of NFScalarize.scalarize: time 4.508e-05/0.1626, allocations: 47.91 kB / 0.5968 GB, free: 11.93 MB / 462.1 MB Notification: Performance of NFVerifyModel.verify: time 3.907e-05/0.1626, allocations: 45.64 kB / 0.5969 GB, free: 11.88 MB / 462.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001891/0.1628, allocations: 163.8 kB / 0.597 GB, free: 11.72 MB / 462.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.218e-06/0.1628, allocations: 0 / 0.597 GB, free: 11.72 MB / 462.1 MB Notification: Performance of FrontEnd: time 1.232e-06/0.1628, allocations: 3.938 kB / 0.597 GB, free: 11.71 MB / 462.1 MB Notification: Performance of Transformations before backend: time 4.058e-06/0.1628, allocations: 0 / 0.597 GB, free: 11.71 MB / 462.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.0005365/0.1634, allocations: 419.1 kB / 0.5974 GB, free: 11.25 MB / 462.1 MB Notification: Performance of prepare preOptimizeDAE: time 2.938e-05/0.1634, allocations: 8.031 kB / 0.5974 GB, free: 11.25 MB / 462.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003636/0.1638, allocations: 55.77 kB / 0.5975 GB, free: 11.19 MB / 462.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002207/0.164, allocations: 210.8 kB / 0.5977 GB, free: 10.95 MB / 462.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.405e-05/0.164, allocations: 8.281 kB / 0.5977 GB, free: 10.94 MB / 462.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.686e-05/0.1641, allocations: 19.95 kB / 0.5977 GB, free: 10.92 MB / 462.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003189/0.1644, allocations: 219 kB / 0.5979 GB, free: 10.68 MB / 462.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.636e-06/0.1644, allocations: 0 / 0.5979 GB, free: 10.68 MB / 462.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.904e-05/0.1644, allocations: 11.97 kB / 0.5979 GB, free: 10.67 MB / 462.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.35e-05/0.1645, allocations: 20.22 kB / 0.5979 GB, free: 10.65 MB / 462.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002048/0.1647, allocations: 144.7 kB / 0.5981 GB, free: 10.51 MB / 462.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009442/0.1656, allocations: 0.9297 MB / 0.599 GB, free: 9.5 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 7.277e-05/0.1657, allocations: 42.56 kB / 0.599 GB, free: 9.449 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.477e-05/0.1657, allocations: 0 / 0.599 GB, free: 9.449 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.122e-05/0.1658, allocations: 34.56 kB / 0.5991 GB, free: 9.406 MB / 462.1 MB Notification: Performance of pre-optimization done (n=4): time 1.042e-06/0.1658, allocations: 0 / 0.5991 GB, free: 9.406 MB / 462.1 MB Notification: Performance of matching and sorting (n=4): time 0.0002106/0.166, allocations: 85.52 kB / 0.5991 GB, free: 9.316 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.38e-05/0.166, allocations: 51.41 kB / 0.5992 GB, free: 9.254 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001508/0.1662, allocations: 176.4 kB / 0.5994 GB, free: 9.07 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 1.338e-05/0.1662, allocations: 25.7 kB / 0.5994 GB, free: 9.039 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.426e-05/0.1663, allocations: 135.4 kB / 0.5995 GB, free: 8.902 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.714e-05/0.1663, allocations: 23.73 kB / 0.5995 GB, free: 8.879 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.508e-06/0.1663, allocations: 3.938 kB / 0.5995 GB, free: 8.875 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 0.0001099/0.1664, allocations: 322.8 kB / 0.5998 GB, free: 8.551 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.502e-05/0.1665, allocations: 20 kB / 0.5999 GB, free: 8.531 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.272e-05/0.1665, allocations: 89.36 kB / 0.5999 GB, free: 8.41 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 6.923e-05/0.1666, allocations: 43.92 kB / 0.6 GB, free: 8.367 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.094e-06/0.1666, allocations: 0 / 0.6 GB, free: 8.367 MB / 462.1 MB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0001739/0.1668, allocations: 133.3 kB / 0.6001 GB, free: 8.23 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0003593/0.1672, allocations: 0.959 MB / 0.6011 GB, free: 7.199 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.304e-06/0.1672, allocations: 4 kB / 0.6011 GB, free: 7.195 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.229e-05/0.1672, allocations: 4 kB / 0.6011 GB, free: 7.191 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001033/0.1673, allocations: 27.92 kB / 0.6011 GB, free: 7.164 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.558e-06/0.1673, allocations: 4 kB / 0.6011 GB, free: 7.16 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.187e-05/0.1674, allocations: 23.75 kB / 0.6011 GB, free: 7.137 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.386e-05/0.1674, allocations: 11.95 kB / 0.6011 GB, free: 7.125 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.713e-06/0.1675, allocations: 0 / 0.6011 GB, free: 7.125 MB / 462.1 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0001297/0.1676, allocations: 99.7 kB / 0.6012 GB, free: 7.027 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.064e-06/0.1676, allocations: 0 / 0.6012 GB, free: 7.027 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 4.939e-06/0.1676, allocations: 4.312 kB / 0.6012 GB, free: 7.023 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.625e-05/0.1677, allocations: 35.92 kB / 0.6013 GB, free: 6.988 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.888e-06/0.1677, allocations: 4 kB / 0.6013 GB, free: 6.984 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.39e-05/0.1678, allocations: 7.938 kB / 0.6013 GB, free: 6.977 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.265e-06/0.1678, allocations: 8 kB / 0.6013 GB, free: 6.969 MB / 462.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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.000142/0.1679, allocations: 209.1 kB / 0.6015 GB, free: 6.754 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.459e-05/0.168, allocations: 19.77 kB / 0.6015 GB, free: 6.734 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.823e-05/0.168, allocations: 20.86 kB / 0.6015 GB, free: 6.711 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.823e-06/0.168, allocations: 0 / 0.6015 GB, free: 6.711 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.947e-06/0.168, allocations: 0 / 0.6015 GB, free: 6.711 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.514e-06/0.168, allocations: 4 kB / 0.6015 GB, free: 6.707 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003977/0.1684, allocations: 465.2 kB / 0.602 GB, free: 6.184 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.603e-06/0.1684, allocations: 0 / 0.602 GB, free: 6.184 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.082e-05/0.1685, allocations: 8 kB / 0.602 GB, free: 6.176 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.686e-06/0.1685, allocations: 0 / 0.602 GB, free: 6.176 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.036e-05/0.1685, allocations: 4.125 kB / 0.602 GB, free: 6.172 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.296e-06/0.1685, allocations: 7.938 kB / 0.602 GB, free: 6.164 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.552e-06/0.1685, allocations: 0 / 0.602 GB, free: 6.164 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001459/0.1687, allocations: 153 kB / 0.6021 GB, free: 5.969 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.257e-05/0.1687, allocations: 88.92 kB / 0.6022 GB, free: 5.863 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.972e-05/0.1688, allocations: 7.984 kB / 0.6022 GB, free: 5.855 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.568e-05/0.1688, allocations: 7.891 kB / 0.6022 GB, free: 5.848 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.946e-05/0.1688, allocations: 11.94 kB / 0.6022 GB, free: 5.836 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.895e-06/0.1688, allocations: 0 / 0.6022 GB, free: 5.836 MB / 462.1 MB Notification: Performance of sorting global known variables: time 8.818e-05/0.1689, allocations: 120 kB / 0.6024 GB, free: 5.719 MB / 462.1 MB Notification: Performance of sort global known variables: time 1.21e-07/0.1689, allocations: 7.938 kB / 0.6024 GB, free: 5.711 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.0003254/0.1693, allocations: 55.78 kB / 0.6024 GB, free: 5.656 MB / 462.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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 8.691e-05/0.1694, allocations: 99.23 kB / 0.6025 GB, free: 5.551 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.0001825/0.1695, allocations: 108.8 kB / 0.6026 GB, free: 5.445 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 2.324e-06/0.1696, allocations: 0 / 0.6026 GB, free: 5.445 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 2.691e-05/0.1696, allocations: 24.23 kB / 0.6026 GB, free: 5.422 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000186/0.1698, allocations: 15.98 kB / 0.6027 GB, free: 5.406 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004525/0.1702, allocations: 315.9 kB / 0.603 GB, free: 5.062 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002666/0.1705, allocations: 0.728 MB / 0.6037 GB, free: 4.309 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 8.491e-05/0.1706, allocations: 32.41 kB / 0.6037 GB, free: 4.277 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.481e-05/0.1706, allocations: 11.44 kB / 0.6037 GB, free: 4.266 MB / 462.1 MB Notification: Performance of SimCode: time 3.31e-07/0.1706, allocations: 0 / 0.6037 GB, free: 4.266 MB / 462.1 MB Notification: Performance of Templates: time 0.002871/0.1735, allocations: 0.785 MB / 0.6045 GB, free: 3.492 MB / 462.1 MB make -j1 -f Buildings_3.0.0_Buildings.Electrical.DC.Sensors.Examples.GeneralizedSensor.makefile Environment - environmentSimulation: (rm -f Buildings_3.0.0_Buildings.Electrical.DC.Sensors.Examples.GeneralizedSensor.pipe ; mkfifo Buildings_3.0.0_Buildings.Electrical.DC.Sensors.Examples.GeneralizedSensor.pipe ; head -c 1048576 < Buildings_3.0.0_Buildings.Electrical.DC.Sensors.Examples.GeneralizedSensor.pipe >> ../files/Buildings_3.0.0_Buildings.Electrical.DC.Sensors.Examples.GeneralizedSensor.sim & ./Buildings_3.0.0_Buildings.Electrical.DC.Sensors.Examples.GeneralizedSensor -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_3.0.0_Buildings.Electrical.DC.Sensors.Examples.GeneralizedSensor.pipe 2>&1) Environment - environmentSimulation: