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.2127/0.215, allocations: 80.83 MB / 0.6706 GB, free: 2.023 MB / 0.4981 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.DC.Sensors.Examples.GeneralizedSensor): time 0.005143/0.2202, allocations: 2.482 MB / 0.673 GB, free: 15.53 MB / 0.5137 GB Notification: Performance of NFInst.instExpressions: time 0.001652/0.2219, allocations: 0.8295 MB / 0.6738 GB, free: 14.7 MB / 0.5137 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.000188/0.2221, allocations: 7.938 kB / 0.6739 GB, free: 14.69 MB / 0.5137 GB Notification: Performance of NFTyping.typeComponents: time 0.00142/0.2235, allocations: 0.5695 MB / 0.6744 GB, free: 14.11 MB / 0.5137 GB Notification: Performance of NFTyping.typeBindings: time 0.0003588/0.2239, allocations: 119.5 kB / 0.6745 GB, free: 13.99 MB / 0.5137 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003613/0.2243, allocations: 111.4 kB / 0.6746 GB, free: 13.89 MB / 0.5137 GB Notification: Performance of NFFlatten.flatten: time 0.0003171/0.2246, allocations: 191.4 kB / 0.6748 GB, free: 13.7 MB / 0.5137 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0004029/0.225, allocations: 169.8 kB / 0.675 GB, free: 13.53 MB / 0.5137 GB Notification: Performance of NFEvalConstants.evaluate: time 0.000141/0.2252, allocations: 83.69 kB / 0.6751 GB, free: 13.45 MB / 0.5137 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002564/0.2254, allocations: 95.64 kB / 0.6751 GB, free: 13.35 MB / 0.5137 GB Notification: Performance of NFPackage.collectConstants: time 2.916e-05/0.2255, allocations: 16 kB / 0.6752 GB, free: 13.34 MB / 0.5137 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002148/0.2257, allocations: 107.8 kB / 0.6753 GB, free: 13.23 MB / 0.5137 GB Notification: Performance of NFScalarize.scalarize: time 7.231e-05/0.2258, allocations: 51.89 kB / 0.6753 GB, free: 13.18 MB / 0.5137 GB Notification: Performance of NFVerifyModel.verify: time 9.112e-05/0.2259, allocations: 79.53 kB / 0.6754 GB, free: 13.1 MB / 0.5137 GB Notification: Performance of NFConvertDAE.convert: time 0.000333/0.2262, allocations: 215.4 kB / 0.6756 GB, free: 12.89 MB / 0.5137 GB Notification: Performance of FrontEnd - DAE generated: time 4.618e-06/0.2262, allocations: 0 / 0.6756 GB, free: 12.89 MB / 0.5137 GB Notification: Performance of FrontEnd: time 1.183e-06/0.2262, allocations: 4 kB / 0.6756 GB, free: 12.89 MB / 0.5137 GB Notification: Performance of Transformations before backend: time 7.895e-06/0.2262, allocations: 4 kB / 0.6756 GB, free: 12.88 MB / 0.5137 GB 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.0007043/0.227, allocations: 439.3 kB / 0.676 GB, free: 12.41 MB / 0.5137 GB Notification: Performance of prepare preOptimizeDAE: time 3.959e-05/0.227, allocations: 8.031 kB / 0.676 GB, free: 12.4 MB / 0.5137 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004212/0.2274, allocations: 52.64 kB / 0.6761 GB, free: 12.35 MB / 0.5137 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003304/0.2278, allocations: 212.1 kB / 0.6763 GB, free: 12.1 MB / 0.5137 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.202e-05/0.2278, allocations: 16.64 kB / 0.6763 GB, free: 12.09 MB / 0.5137 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.713e-05/0.2278, allocations: 16.38 kB / 0.6763 GB, free: 12.07 MB / 0.5137 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004257/0.2283, allocations: 239.2 kB / 0.6765 GB, free: 11.82 MB / 0.5137 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.496e-05/0.2283, allocations: 0 / 0.6765 GB, free: 11.82 MB / 0.5137 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.191e-05/0.2283, allocations: 0 / 0.6765 GB, free: 11.82 MB / 0.5137 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.294e-05/0.2284, allocations: 16.28 kB / 0.6766 GB, free: 11.8 MB / 0.5137 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002556/0.2286, allocations: 144.7 kB / 0.6767 GB, free: 11.66 MB / 0.5137 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001134/0.2298, allocations: 0.9211 MB / 0.6776 GB, free: 10.65 MB / 0.5137 GB Notification: Performance of preOpt comSubExp (simulation): time 8.874e-05/0.2299, allocations: 58.42 kB / 0.6776 GB, free: 10.59 MB / 0.5137 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.434e-05/0.2299, allocations: 16.94 kB / 0.6777 GB, free: 10.57 MB / 0.5137 GB Notification: Performance of preOpt evalFunc (simulation): time 1.365e-05/0.2299, allocations: 4 kB / 0.6777 GB, free: 10.56 MB / 0.5137 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.398e-05/0.23, allocations: 30.56 kB / 0.6777 GB, free: 10.52 MB / 0.5137 GB Notification: Performance of pre-optimization done (n=4): time 1.243e-06/0.23, allocations: 0 / 0.6777 GB, free: 10.52 MB / 0.5137 GB Notification: Performance of matching and sorting (n=4): time 0.0002231/0.2302, allocations: 73.53 kB / 0.6778 GB, free: 10.45 MB / 0.5137 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.579e-05/0.2303, allocations: 59.34 kB / 0.6778 GB, free: 10.38 MB / 0.5137 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001737/0.2304, allocations: 172 kB / 0.678 GB, free: 10.2 MB / 0.5137 GB Notification: Performance of collectPreVariables (initialization): time 1.686e-05/0.2305, allocations: 29.7 kB / 0.678 GB, free: 10.16 MB / 0.5137 GB Notification: Performance of collectInitialEqns (initialization): time 9.81e-05/0.2306, allocations: 147.3 kB / 0.6782 GB, free: 10.02 MB / 0.5137 GB Notification: Performance of collectInitialBindings (initialization): time 1.607e-05/0.2306, allocations: 11.81 kB / 0.6782 GB, free: 10 MB / 0.5137 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.835e-05/0.2307, allocations: 33.7 kB / 0.6782 GB, free: 9.965 MB / 0.5137 GB Notification: Performance of setup shared object (initialization): time 0.0001444/0.2308, allocations: 322.8 kB / 0.6785 GB, free: 9.641 MB / 0.5137 GB Notification: Performance of preBalanceInitialSystem (initialization): time 5.434e-05/0.2309, allocations: 28.86 kB / 0.6785 GB, free: 9.609 MB / 0.5137 GB Notification: Performance of partitionIndependentBlocks (initialization): time 7.824e-05/0.231, allocations: 93.42 kB / 0.6786 GB, free: 9.484 MB / 0.5137 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001342/0.2311, allocations: 121.2 kB / 0.6787 GB, free: 9.332 MB / 0.5137 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.206e-06/0.2311, allocations: 0 / 0.6787 GB, free: 9.332 MB / 0.5137 GB Notification: Performance of matching and sorting (n=14) (initialization): time 0.000221/0.2313, allocations: 137.4 kB / 0.6789 GB, free: 9.191 MB / 0.5137 GB Notification: Performance of prepare postOptimizeDAE: time 1.994e-05/0.2314, allocations: 4.781 kB / 0.6789 GB, free: 9.188 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.765e-06/0.2314, allocations: 4 kB / 0.6789 GB, free: 9.184 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.995e-05/0.2314, allocations: 7.938 kB / 0.6789 GB, free: 9.176 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000115/0.2315, allocations: 27.92 kB / 0.6789 GB, free: 9.148 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.062e-05/0.2315, allocations: 4 kB / 0.6789 GB, free: 9.145 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.625e-05/0.2316, allocations: 16.39 kB / 0.6789 GB, free: 9.129 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.323e-05/0.2316, allocations: 12 kB / 0.6789 GB, free: 9.117 MB / 0.5137 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0001032/0.2317, allocations: 120.1 kB / 0.6791 GB, free: 8.996 MB / 0.5137 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 8.421e-05/0.2318, allocations: 85.38 kB / 0.6791 GB, free: 8.879 MB / 0.5137 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0001307/0.232, allocations: 129.3 kB / 0.6793 GB, free: 8.719 MB / 0.5137 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 3.136e-06/0.232, allocations: 7.938 kB / 0.6793 GB, free: 8.711 MB / 0.5137 GB Notification: Performance of matching and sorting (n=14) (initialization_lambda0): time 0.0001916/0.2322, allocations: 133.2 kB / 0.6794 GB, free: 8.574 MB / 0.5137 GB Notification: Performance of prepare postOptimizeDAE: time 1.105e-05/0.2322, allocations: 11.94 kB / 0.6794 GB, free: 8.562 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.69e-06/0.2322, allocations: 4.312 kB / 0.6794 GB, free: 8.559 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (initialization): time 4.108e-06/0.2322, allocations: 4 kB / 0.6794 GB, free: 8.555 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.672e-05/0.2323, allocations: 27.92 kB / 0.6794 GB, free: 8.527 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.171e-06/0.2323, allocations: 7.938 kB / 0.6794 GB, free: 8.52 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.936e-05/0.2324, allocations: 7.938 kB / 0.6795 GB, free: 8.512 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.685e-05/0.2324, allocations: 16 kB / 0.6795 GB, free: 8.496 MB / 0.5137 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 (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 9.124e-05/0.2325, allocations: 184.2 kB / 0.6796 GB, free: 8.309 MB / 0.5137 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.394e-05/0.2325, allocations: 7.906 kB / 0.6797 GB, free: 8.301 MB / 0.5137 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.878e-05/0.2326, allocations: 20.88 kB / 0.6797 GB, free: 8.27 MB / 0.5137 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.035e-06/0.2326, allocations: 11.92 kB / 0.6797 GB, free: 8.258 MB / 0.5137 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.551e-06/0.2326, allocations: 0 / 0.6797 GB, free: 8.258 MB / 0.5137 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.817e-06/0.2326, allocations: 0 / 0.6797 GB, free: 8.258 MB / 0.5137 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004329/0.2331, allocations: 465.1 kB / 0.6801 GB, free: 7.734 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.595e-06/0.2331, allocations: 0 / 0.6801 GB, free: 7.734 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.085e-05/0.2331, allocations: 8 kB / 0.6801 GB, free: 7.727 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.775e-06/0.2331, allocations: 4.125 kB / 0.6801 GB, free: 7.723 MB / 0.5137 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.108e-05/0.2331, allocations: 8 kB / 0.6802 GB, free: 7.715 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.857e-06/0.2331, allocations: 3.938 kB / 0.6802 GB, free: 7.711 MB / 0.5137 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.523e-06/0.2332, allocations: 0 / 0.6802 GB, free: 7.711 MB / 0.5137 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001426/0.2333, allocations: 115.5 kB / 0.6803 GB, free: 7.57 MB / 0.5137 GB Notification: Performance of postOpt removeConstants (simulation): time 6.525e-05/0.2334, allocations: 85.02 kB / 0.6803 GB, free: 7.469 MB / 0.5137 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.417e-05/0.2334, allocations: 4 kB / 0.6803 GB, free: 7.465 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.328e-05/0.2334, allocations: 0 / 0.6803 GB, free: 7.465 MB / 0.5137 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.38e-05/0.2335, allocations: 15.92 kB / 0.6804 GB, free: 7.449 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.565e-06/0.2335, allocations: 0 / 0.6804 GB, free: 7.449 MB / 0.5137 GB Notification: Performance of sorting global known variables: time 9.823e-05/0.2336, allocations: 124 kB / 0.6805 GB, free: 7.328 MB / 0.5137 GB Notification: Performance of sort global known variables: time 1.11e-07/0.2336, allocations: 0 / 0.6805 GB, free: 7.328 MB / 0.5137 GB Notification: Performance of remove unused functions: time 0.0003511/0.2339, allocations: 55.69 kB / 0.6805 GB, free: 7.273 MB / 0.5137 GB 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.0001018/0.2341, allocations: 99.25 kB / 0.6806 GB, free: 7.164 MB / 0.5137 GB Notification: Performance of simCode: created initialization part: time 0.000213/0.2343, allocations: 115.6 kB / 0.6807 GB, free: 7.051 MB / 0.5137 GB Notification: Performance of simCode: created event and clocks part: time 1.974e-06/0.2343, allocations: 1.25 kB / 0.6807 GB, free: 7.051 MB / 0.5137 GB Notification: Performance of simCode: created simulation system equations: time 2.575e-05/0.2343, allocations: 15.98 kB / 0.6808 GB, free: 7.035 MB / 0.5137 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002747/0.2346, allocations: 26.42 kB / 0.6808 GB, free: 7.012 MB / 0.5137 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005605/0.2352, allocations: 271 kB / 0.681 GB, free: 6.715 MB / 0.5137 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000299/0.2355, allocations: 0.7241 MB / 0.6817 GB, free: 5.961 MB / 0.5137 GB Notification: Performance of simCode: alias equations: time 8.435e-05/0.2356, allocations: 28.61 kB / 0.6818 GB, free: 5.93 MB / 0.5137 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.355e-05/0.2356, allocations: 15.44 kB / 0.6818 GB, free: 5.914 MB / 0.5137 GB Notification: Performance of SimCode: time 3.81e-07/0.2356, allocations: 3.938 kB / 0.6818 GB, free: 5.91 MB / 0.5137 GB Notification: Performance of Templates: time 0.00379/0.2394, allocations: 0.8835 MB / 0.6827 GB, free: 5.035 MB / 0.5137 GB make -j1 -f Buildings_3.0.0_Buildings.Electrical.DC.Sensors.Examples.GeneralizedSensor.makefile (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)