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.2306/0.2326, allocations: 80.84 MB / 0.6706 GB, free: 2.02 MB / 0.4981 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.DC.Sensors.Examples.GeneralizedSensor): time 0.00503/0.2377, allocations: 2.482 MB / 0.673 GB, free: 15.52 MB / 0.5137 GB Notification: Performance of NFInst.instExpressions: time 0.001713/0.2394, allocations: 0.8218 MB / 0.6738 GB, free: 14.7 MB / 0.5137 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001269/0.2396, allocations: 4 kB / 0.6738 GB, free: 14.7 MB / 0.5137 GB Notification: Performance of NFTyping.typeComponents: time 0.001438/0.241, allocations: 0.5764 MB / 0.6744 GB, free: 14.11 MB / 0.5137 GB Notification: Performance of NFTyping.typeBindings: time 0.000317/0.2414, allocations: 119.5 kB / 0.6745 GB, free: 14 MB / 0.5137 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003247/0.2417, allocations: 111.7 kB / 0.6746 GB, free: 13.89 MB / 0.5137 GB Notification: Performance of NFFlatten.flatten: time 0.0002676/0.242, allocations: 191.4 kB / 0.6748 GB, free: 13.7 MB / 0.5137 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0004165/0.2424, allocations: 169.8 kB / 0.675 GB, free: 13.53 MB / 0.5137 GB Notification: Performance of NFEvalConstants.evaluate: time 9.915e-05/0.2425, allocations: 83.64 kB / 0.6751 GB, free: 13.45 MB / 0.5137 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002339/0.2428, allocations: 103.6 kB / 0.6752 GB, free: 13.34 MB / 0.5137 GB Notification: Performance of NFPackage.collectConstants: time 2.487e-05/0.2428, allocations: 12 kB / 0.6752 GB, free: 13.33 MB / 0.5137 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001988/0.243, allocations: 107.8 kB / 0.6753 GB, free: 13.23 MB / 0.5137 GB Notification: Performance of NFScalarize.scalarize: time 7.208e-05/0.2431, allocations: 51.89 kB / 0.6753 GB, free: 13.18 MB / 0.5137 GB Notification: Performance of NFVerifyModel.verify: time 9.058e-05/0.2432, allocations: 75.59 kB / 0.6754 GB, free: 13.1 MB / 0.5137 GB Notification: Performance of NFConvertDAE.convert: time 0.0003606/0.2435, allocations: 219.3 kB / 0.6756 GB, free: 12.89 MB / 0.5137 GB Notification: Performance of FrontEnd - DAE generated: time 5.701e-06/0.2436, allocations: 0 / 0.6756 GB, free: 12.89 MB / 0.5137 GB Notification: Performance of FrontEnd: time 1.873e-06/0.2436, allocations: 0 / 0.6756 GB, free: 12.89 MB / 0.5137 GB Notification: Performance of Transformations before backend: time 7.674e-06/0.2436, 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.0008304/0.2444, allocations: 439.3 kB / 0.676 GB, free: 12.41 MB / 0.5137 GB Notification: Performance of prepare preOptimizeDAE: time 5.892e-05/0.2445, allocations: 12.03 kB / 0.676 GB, free: 12.39 MB / 0.5137 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004593/0.2449, allocations: 48.7 kB / 0.6761 GB, free: 12.35 MB / 0.5137 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003281/0.2453, allocations: 216.1 kB / 0.6763 GB, free: 12.1 MB / 0.5137 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.47e-05/0.2453, allocations: 8.656 kB / 0.6763 GB, free: 12.09 MB / 0.5137 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.33e-05/0.2454, allocations: 20.36 kB / 0.6763 GB, free: 12.07 MB / 0.5137 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004381/0.2458, allocations: 231.2 kB / 0.6765 GB, free: 11.82 MB / 0.5137 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.381e-05/0.2458, allocations: 0 / 0.6765 GB, free: 11.82 MB / 0.5137 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.372e-05/0.2458, allocations: 4 kB / 0.6765 GB, free: 11.82 MB / 0.5137 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.978e-05/0.2459, allocations: 20.27 kB / 0.6766 GB, free: 11.8 MB / 0.5137 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002536/0.2462, allocations: 144.7 kB / 0.6767 GB, free: 11.66 MB / 0.5137 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001078/0.2472, allocations: 0.9211 MB / 0.6776 GB, free: 10.65 MB / 0.5137 GB Notification: Performance of preOpt comSubExp (simulation): time 8.733e-05/0.2473, allocations: 50.5 kB / 0.6776 GB, free: 10.59 MB / 0.5137 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.634e-05/0.2474, allocations: 16.86 kB / 0.6777 GB, free: 10.57 MB / 0.5137 GB Notification: Performance of preOpt evalFunc (simulation): time 1.588e-05/0.2474, allocations: 0 / 0.6777 GB, free: 10.57 MB / 0.5137 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.77e-05/0.2475, allocations: 38.5 kB / 0.6777 GB, free: 10.53 MB / 0.5137 GB Notification: Performance of pre-optimization done (n=4): time 9.51e-07/0.2475, allocations: 0 / 0.6777 GB, free: 10.53 MB / 0.5137 GB Notification: Performance of matching and sorting (n=4): time 0.0002471/0.2477, allocations: 81.61 kB / 0.6778 GB, free: 10.44 MB / 0.5137 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.932e-05/0.2478, allocations: 51.41 kB / 0.6778 GB, free: 10.38 MB / 0.5137 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002081/0.248, allocations: 172 kB / 0.678 GB, free: 10.2 MB / 0.5137 GB Notification: Performance of collectPreVariables (initialization): time 1.436e-05/0.248, allocations: 29.7 kB / 0.678 GB, free: 10.17 MB / 0.5137 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001091/0.2481, allocations: 147.3 kB / 0.6782 GB, free: 10.02 MB / 0.5137 GB Notification: Performance of collectInitialBindings (initialization): time 1.95e-05/0.2481, allocations: 19.8 kB / 0.6782 GB, free: 10 MB / 0.5137 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.806e-05/0.2482, allocations: 25.72 kB / 0.6782 GB, free: 9.969 MB / 0.5137 GB Notification: Performance of setup shared object (initialization): time 0.0001531/0.2484, allocations: 322.8 kB / 0.6785 GB, free: 9.645 MB / 0.5137 GB Notification: Performance of preBalanceInitialSystem (initialization): time 5.137e-05/0.2484, allocations: 28.84 kB / 0.6785 GB, free: 9.613 MB / 0.5137 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001087/0.2485, allocations: 97.38 kB / 0.6786 GB, free: 9.484 MB / 0.5137 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001546/0.2487, allocations: 121.3 kB / 0.6787 GB, free: 9.332 MB / 0.5137 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.515e-06/0.2487, allocations: 3.938 kB / 0.6787 GB, free: 9.328 MB / 0.5137 GB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0002025/0.2489, allocations: 141.3 kB / 0.6789 GB, free: 9.184 MB / 0.5137 GB Notification: Performance of prepare postOptimizeDAE: time 2.07e-05/0.2489, allocations: 8 kB / 0.6789 GB, free: 9.176 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.603e-06/0.249, allocations: 0 / 0.6789 GB, free: 9.176 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.349e-05/0.249, allocations: 7.938 kB / 0.6789 GB, free: 9.168 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001199/0.2491, allocations: 27.92 kB / 0.6789 GB, free: 9.141 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.05e-05/0.2491, allocations: 4 kB / 0.6789 GB, free: 9.137 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.453e-05/0.2492, allocations: 16.16 kB / 0.6789 GB, free: 9.121 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.346e-05/0.2492, allocations: 8 kB / 0.6789 GB, free: 9.113 MB / 0.5137 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0001175/0.2494, allocations: 124.1 kB / 0.6791 GB, free: 8.988 MB / 0.5137 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0001009/0.2495, allocations: 81.44 kB / 0.6791 GB, free: 8.875 MB / 0.5137 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0001444/0.2496, allocations: 133.5 kB / 0.6793 GB, free: 8.711 MB / 0.5137 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 1.032e-06/0.2496, allocations: 0 / 0.6793 GB, free: 8.711 MB / 0.5137 GB Notification: Performance of matching and sorting (n=14) (initialization_lambda0): time 0.0001948/0.2498, allocations: 133.3 kB / 0.6794 GB, free: 8.574 MB / 0.5137 GB Notification: Performance of prepare postOptimizeDAE: time 6.753e-06/0.2498, allocations: 7.938 kB / 0.6794 GB, free: 8.566 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.938e-06/0.2499, allocations: 4.312 kB / 0.6794 GB, free: 8.562 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (initialization): time 4.188e-06/0.2499, allocations: 8 kB / 0.6794 GB, free: 8.555 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.555e-05/0.2499, allocations: 27.92 kB / 0.6794 GB, free: 8.527 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.252e-06/0.25, allocations: 7.938 kB / 0.6795 GB, free: 8.52 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.759e-05/0.25, allocations: 7.938 kB / 0.6795 GB, free: 8.512 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.268e-06/0.25, allocations: 8 kB / 0.6795 GB, free: 8.504 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 0.0001129/0.2502, allocations: 192.2 kB / 0.6797 GB, free: 8.309 MB / 0.5137 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.354e-05/0.2502, allocations: 7.906 kB / 0.6797 GB, free: 8.301 MB / 0.5137 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.53e-05/0.2503, allocations: 16.94 kB / 0.6797 GB, free: 8.273 MB / 0.5137 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.128e-06/0.2503, allocations: 7.938 kB / 0.6797 GB, free: 8.266 MB / 0.5137 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.749e-06/0.2503, allocations: 0 / 0.6797 GB, free: 8.266 MB / 0.5137 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.787e-06/0.2503, allocations: 0 / 0.6797 GB, free: 8.266 MB / 0.5137 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004429/0.2507, allocations: 473 kB / 0.6801 GB, free: 7.734 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.563e-06/0.2508, allocations: 0 / 0.6801 GB, free: 7.734 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.729e-05/0.2508, allocations: 7.984 kB / 0.6801 GB, free: 7.727 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.488e-06/0.2508, allocations: 8.125 kB / 0.6801 GB, free: 7.719 MB / 0.5137 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.147e-06/0.2508, allocations: 0 / 0.6801 GB, free: 7.719 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.563e-06/0.2508, allocations: 0 / 0.6801 GB, free: 7.719 MB / 0.5137 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.515e-06/0.2508, allocations: 4 kB / 0.6802 GB, free: 7.715 MB / 0.5137 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001331/0.251, allocations: 115.5 kB / 0.6803 GB, free: 7.574 MB / 0.5137 GB Notification: Performance of postOpt removeConstants (simulation): time 7.969e-05/0.2511, allocations: 97 kB / 0.6804 GB, free: 7.461 MB / 0.5137 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.006e-05/0.2511, allocations: 0 / 0.6804 GB, free: 7.461 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.32e-05/0.2511, allocations: 0 / 0.6804 GB, free: 7.461 MB / 0.5137 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.293e-05/0.2512, allocations: 4 kB / 0.6804 GB, free: 7.457 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.723e-06/0.2512, allocations: 8 kB / 0.6804 GB, free: 7.449 MB / 0.5137 GB Notification: Performance of sorting global known variables: time 0.0001082/0.2513, allocations: 123.9 kB / 0.6805 GB, free: 7.328 MB / 0.5137 GB Notification: Performance of sort global known variables: time 1.31e-07/0.2513, allocations: 0 / 0.6805 GB, free: 7.328 MB / 0.5137 GB Notification: Performance of remove unused functions: time 0.0003576/0.2517, allocations: 63.62 kB / 0.6805 GB, free: 7.266 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.0001392/0.2518, allocations: 99.25 kB / 0.6806 GB, free: 7.156 MB / 0.5137 GB Notification: Performance of simCode: created initialization part: time 0.0002225/0.252, allocations: 111.6 kB / 0.6807 GB, free: 7.047 MB / 0.5137 GB Notification: Performance of simCode: created event and clocks part: time 3.086e-06/0.252, allocations: 1.25 kB / 0.6807 GB, free: 7.047 MB / 0.5137 GB Notification: Performance of simCode: created simulation system equations: time 5.156e-05/0.2521, allocations: 23.92 kB / 0.6808 GB, free: 7.023 MB / 0.5137 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003084/0.2524, allocations: 16.25 kB / 0.6808 GB, free: 7.008 MB / 0.5137 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006142/0.253, allocations: 278.8 kB / 0.6811 GB, free: 6.707 MB / 0.5137 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003939/0.2534, allocations: 0.7241 MB / 0.6818 GB, free: 5.953 MB / 0.5137 GB Notification: Performance of simCode: alias equations: time 8.616e-05/0.2535, allocations: 28.62 kB / 0.6818 GB, free: 5.922 MB / 0.5137 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.304e-05/0.2536, allocations: 11.44 kB / 0.6818 GB, free: 5.91 MB / 0.5137 GB Notification: Performance of SimCode: time 2.61e-07/0.2536, allocations: 0 / 0.6818 GB, free: 5.91 MB / 0.5137 GB Notification: Performance of Templates: time 0.003566/0.2572, allocations: 0.8765 MB / 0.6827 GB, free: 5.039 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)