Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_3.0.0_Buildings.Electrical.AC.OnePhase.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.AC.OnePhase.Sensors.Examples.GeneralizedSensor,tolerance=1e-05,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_3.0.0_Buildings.Electrical.AC.OnePhase.Sensors.Examples.GeneralizedSensor") translateModel(Buildings.Electrical.AC.OnePhase.Sensors.Examples.GeneralizedSensor,tolerance=1e-05,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_3.0.0_Buildings.Electrical.AC.OnePhase.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.1769/0.1799, allocations: 80.83 MB / 0.5897 GB, free: 7.145 MB / 446.1 MB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.OnePhase.Sensors.Examples.GeneralizedSensor): time 0.005894/0.1859, allocations: 3.1 MB / 0.5927 GB, free: 4.02 MB / 446.1 MB Notification: Performance of NFInst.instExpressions: time 0.003291/0.1892, allocations: 1.793 MB / 0.5945 GB, free: 2.215 MB / 446.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002321/0.1895, allocations: 4 kB / 0.5945 GB, free: 2.211 MB / 446.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001061/0.1906, allocations: 303 kB / 0.5948 GB, free: 1.914 MB / 446.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006593/0.1913, allocations: 207.3 kB / 0.595 GB, free: 1.711 MB / 446.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006212/0.1919, allocations: 159.7 kB / 0.5951 GB, free: 1.555 MB / 446.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005687/0.1925, allocations: 462.8 kB / 0.5955 GB, free: 1.102 MB / 446.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005571/0.1931, allocations: 248.8 kB / 0.5958 GB, free: 0.8594 MB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002964/0.1934, allocations: 111.6 kB / 0.5959 GB, free: 0.75 MB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004749/0.1939, allocations: 171.4 kB / 0.5961 GB, free: 0.582 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 5.472e-05/0.1939, allocations: 16 kB / 0.5961 GB, free: 0.5664 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0006392/0.1946, allocations: 291.4 kB / 0.5963 GB, free: 288 kB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001628/0.1948, allocations: 87.78 kB / 0.5964 GB, free: 200 kB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001647/0.1949, allocations: 119.3 kB / 0.5965 GB, free: 80 kB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007819/0.1957, allocations: 422.7 kB / 0.5969 GB, free: 15.66 MB / 462.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.055e-06/0.1958, allocations: 7.984 kB / 0.597 GB, free: 15.66 MB / 462.1 MB Notification: Performance of FrontEnd: time 2.174e-06/0.1958, allocations: 0 / 0.597 GB, free: 15.66 MB / 462.1 MB Notification: Performance of Transformations before backend: time 1.385e-05/0.1958, allocations: 0 / 0.597 GB, free: 15.66 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: 58 * Number of variables: 58 Notification: Performance of Generate backend data structure: time 0.00118/0.197, allocations: 0.5381 MB / 0.5975 GB, free: 15.07 MB / 462.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.422e-05/0.197, allocations: 8.031 kB / 0.5975 GB, free: 15.06 MB / 462.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008066/0.1978, allocations: 96.55 kB / 0.5976 GB, free: 14.96 MB / 462.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003588/0.1982, allocations: 255.9 kB / 0.5978 GB, free: 14.68 MB / 462.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.198e-05/0.1983, allocations: 16.81 kB / 0.5978 GB, free: 14.66 MB / 462.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001043/0.1984, allocations: 24.56 kB / 0.5979 GB, free: 14.64 MB / 462.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005702/0.1989, allocations: 372.4 kB / 0.5982 GB, free: 14.26 MB / 462.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.931e-05/0.199, allocations: 3.938 kB / 0.5982 GB, free: 14.25 MB / 462.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.813e-05/0.199, allocations: 11.98 kB / 0.5982 GB, free: 14.24 MB / 462.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001036/0.1991, allocations: 36.3 kB / 0.5983 GB, free: 14.21 MB / 462.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005098/0.1996, allocations: 309.5 kB / 0.5986 GB, free: 13.9 MB / 462.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001742/0.2014, allocations: 1.166 MB / 0.5997 GB, free: 12.67 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004303/0.2018, allocations: 226.3 kB / 0.5999 GB, free: 12.44 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001545/0.202, allocations: 120.8 kB / 0.6 GB, free: 12.32 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001591/0.2022, allocations: 93.08 kB / 0.6001 GB, free: 12.21 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.927e-05/0.2022, allocations: 34.56 kB / 0.6002 GB, free: 12.17 MB / 462.1 MB Notification: Performance of pre-optimization done (n=18): time 1.503e-06/0.2022, allocations: 0 / 0.6002 GB, free: 12.17 MB / 462.1 MB Notification: Performance of matching and sorting (n=19): time 0.001285/0.2035, allocations: 0.7963 MB / 0.6009 GB, free: 11.32 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.596e-05/0.2036, allocations: 55.41 kB / 0.601 GB, free: 11.25 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002121/0.2038, allocations: 203.1 kB / 0.6012 GB, free: 11.04 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 2.386e-05/0.2038, allocations: 29.7 kB / 0.6012 GB, free: 11.01 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.901e-05/0.2039, allocations: 155.9 kB / 0.6014 GB, free: 10.85 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.093e-05/0.204, allocations: 70.98 kB / 0.6014 GB, free: 10.78 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.233e-05/0.2041, allocations: 49.7 kB / 0.6015 GB, free: 10.73 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 0.0001119/0.2042, allocations: 338.8 kB / 0.6018 GB, free: 10.39 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001772/0.2044, allocations: 111.9 kB / 0.6019 GB, free: 10.28 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002098/0.2046, allocations: 177.9 kB / 0.6021 GB, free: 10.08 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00039/0.205, allocations: 304.3 kB / 0.6024 GB, free: 9.766 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.933e-06/0.205, allocations: 0 / 0.6024 GB, free: 9.766 MB / 462.1 MB Notification: Performance of matching and sorting (n=31) (initialization): time 0.0007987/0.2058, allocations: 418.5 kB / 0.6028 GB, free: 9.348 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.179e-05/0.2059, allocations: 11.94 kB / 0.6028 GB, free: 9.336 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.622e-06/0.2059, allocations: 192 / 0.6028 GB, free: 9.336 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004283/0.2063, allocations: 100.8 kB / 0.6029 GB, free: 9.234 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000262/0.2066, allocations: 51.89 kB / 0.6029 GB, free: 9.184 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001885/0.2085, allocations: 1.734 MB / 0.6046 GB, free: 7.316 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002311/0.2087, allocations: 20.08 kB / 0.6046 GB, free: 7.297 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.37e-05/0.2088, allocations: 8 kB / 0.6046 GB, free: 7.289 MB / 462.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 7 * 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 (26): * Single equations (assignments): 25 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(2,4,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0001575/0.2089, allocations: 161.7 kB / 0.6048 GB, free: 7.121 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.909e-05/0.209, allocations: 15.81 kB / 0.6048 GB, free: 7.105 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004786/0.2095, allocations: 307.1 kB / 0.6051 GB, free: 6.801 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.749e-06/0.2095, allocations: 8 kB / 0.6051 GB, free: 6.793 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.423e-06/0.2095, allocations: 0 / 0.6051 GB, free: 6.793 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.186e-06/0.2095, allocations: 0 / 0.6051 GB, free: 6.793 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008797/0.2104, allocations: 0.7085 MB / 0.6058 GB, free: 6.023 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.445e-06/0.2104, allocations: 0 / 0.6058 GB, free: 6.023 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002927/0.2107, allocations: 63.89 kB / 0.6059 GB, free: 5.961 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.217e-06/0.2107, allocations: 0 / 0.6059 GB, free: 5.961 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.225e-05/0.2107, allocations: 8 kB / 0.6059 GB, free: 5.953 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.334e-06/0.2107, allocations: 4.188 kB / 0.6059 GB, free: 5.949 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.92e-06/0.2108, allocations: 8 kB / 0.6059 GB, free: 5.941 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005745/0.2113, allocations: 0.515 MB / 0.6064 GB, free: 5.406 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001015/0.2115, allocations: 120.9 kB / 0.6065 GB, free: 5.27 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.26e-05/0.2115, allocations: 4 kB / 0.6065 GB, free: 5.266 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001765/0.2117, allocations: 12.05 kB / 0.6065 GB, free: 5.254 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.661e-05/0.2117, allocations: 27.86 kB / 0.6065 GB, free: 5.227 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.266e-05/0.2117, allocations: 4 kB / 0.6065 GB, free: 5.223 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.0001206/0.2119, allocations: 148 kB / 0.6067 GB, free: 5.078 MB / 462.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.2119, allocations: 0 / 0.6067 GB, free: 5.078 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.0003494/0.2122, allocations: 64 kB / 0.6067 GB, free: 5.016 MB / 462.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 2 (loa.q[1],loa.q[2]) * 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 (20): * Single equations (assignments): 20 * 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.0001506/0.2124, allocations: 111.2 kB / 0.6069 GB, free: 4.898 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.0006787/0.2131, allocations: 418.3 kB / 0.6073 GB, free: 4.477 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 3.487e-06/0.2131, allocations: 0 / 0.6073 GB, free: 4.477 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000154/0.2133, allocations: 123.9 kB / 0.6074 GB, free: 4.355 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003947/0.2137, allocations: 43.55 kB / 0.6074 GB, free: 4.316 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001196/0.2149, allocations: 0.7142 MB / 0.6081 GB, free: 3.574 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003283/0.2152, allocations: 0.7752 MB / 0.6089 GB, free: 2.77 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.0001853/0.2154, allocations: 65.88 kB / 0.6089 GB, free: 2.703 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.158e-05/0.2155, allocations: 19.44 kB / 0.6089 GB, free: 2.684 MB / 462.1 MB Notification: Performance of SimCode: time 2.2e-07/0.2155, allocations: 3.938 kB / 0.609 GB, free: 2.68 MB / 462.1 MB Notification: Performance of Templates: time 0.006027/0.2215, allocations: 2.679 MB / 0.6116 GB, free: 48 kB / 462.1 MB make -j1 -f Buildings_3.0.0_Buildings.Electrical.AC.OnePhase.Sensors.Examples.GeneralizedSensor.makefile (rm -f Buildings_3.0.0_Buildings.Electrical.AC.OnePhase.Sensors.Examples.GeneralizedSensor.pipe ; mkfifo Buildings_3.0.0_Buildings.Electrical.AC.OnePhase.Sensors.Examples.GeneralizedSensor.pipe ; head -c 1048576 < Buildings_3.0.0_Buildings.Electrical.AC.OnePhase.Sensors.Examples.GeneralizedSensor.pipe >> ../files/Buildings_3.0.0_Buildings.Electrical.AC.OnePhase.Sensors.Examples.GeneralizedSensor.sim & ./Buildings_3.0.0_Buildings.Electrical.AC.OnePhase.Sensors.Examples.GeneralizedSensor -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_3.0.0_Buildings.Electrical.AC.OnePhase.Sensors.Examples.GeneralizedSensor.pipe 2>&1)