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.2062/0.2074, allocations: 82.21 MB / 0.5935 GB, free: 5.992 MB / 446.1 MB Notification: Performance of NFInst.instantiate(Buildings.Electrical.DC.Sensors.Examples.GeneralizedSensor): time 0.002928/0.2104, allocations: 2.129 MB / 0.5955 GB, free: 3.848 MB / 446.1 MB Notification: Performance of NFInst.instExpressions: time 0.001209/0.2116, allocations: 0.7716 MB / 0.5963 GB, free: 3.074 MB / 446.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.555e-05/0.2117, allocations: 7.938 kB / 0.5963 GB, free: 3.066 MB / 446.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001443/0.2119, allocations: 23.8 kB / 0.5963 GB, free: 3.043 MB / 446.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.0003129/0.2122, allocations: 87.61 kB / 0.5964 GB, free: 2.957 MB / 446.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002956/0.2125, allocations: 91.83 kB / 0.5965 GB, free: 2.867 MB / 446.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002802/0.2128, allocations: 227.3 kB / 0.5967 GB, free: 2.645 MB / 446.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002997/0.2131, allocations: 171.2 kB / 0.5969 GB, free: 2.453 MB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 8.685e-05/0.2132, allocations: 59.77 kB / 0.5969 GB, free: 2.395 MB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002497/0.2135, allocations: 95.7 kB / 0.597 GB, free: 2.301 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 2.45e-05/0.2135, allocations: 4 kB / 0.597 GB, free: 2.297 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001349/0.2136, allocations: 51.91 kB / 0.5971 GB, free: 2.246 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 6.426e-05/0.2137, allocations: 47.88 kB / 0.5971 GB, free: 2.199 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 4.249e-05/0.2138, allocations: 49.58 kB / 0.5972 GB, free: 2.145 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002088/0.214, allocations: 167.9 kB / 0.5973 GB, free: 1.98 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.41e-06/0.214, allocations: 0 / 0.5973 GB, free: 1.98 MB / 446.1 MB Notification: Performance of FrontEnd: time 3.517e-06/0.214, allocations: 0 / 0.5973 GB, free: 1.98 MB / 446.1 MB Notification: Performance of Transformations before backend: time 5.29e-06/0.214, allocations: 3.938 kB / 0.5973 GB, free: 1.977 MB / 446.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.0006103/0.2146, allocations: 419.1 kB / 0.5977 GB, free: 1.516 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.771e-05/0.2147, allocations: 16.02 kB / 0.5978 GB, free: 1.5 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003467/0.215, allocations: 43.78 kB / 0.5978 GB, free: 1.457 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002319/0.2153, allocations: 206.9 kB / 0.598 GB, free: 1.215 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.699e-05/0.2153, allocations: 16.27 kB / 0.598 GB, free: 1.199 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.418e-05/0.2153, allocations: 15.95 kB / 0.598 GB, free: 1.184 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003602/0.2157, allocations: 222.9 kB / 0.5982 GB, free: 0.9453 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.272e-05/0.2157, allocations: 4 kB / 0.5982 GB, free: 0.9414 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.876e-05/0.2157, allocations: 0 / 0.5982 GB, free: 0.9414 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.316e-05/0.2158, allocations: 20.27 kB / 0.5983 GB, free: 0.9219 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002318/0.216, allocations: 144.7 kB / 0.5984 GB, free: 0.7812 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001016/0.217, allocations: 0.9258 MB / 0.5993 GB, free: 15.77 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 8.537e-05/0.2171, allocations: 46.55 kB / 0.5993 GB, free: 15.71 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.525e-05/0.2172, allocations: 20.88 kB / 0.5994 GB, free: 15.69 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.286e-05/0.2172, allocations: 0 / 0.5994 GB, free: 15.69 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.232e-05/0.2172, allocations: 34.56 kB / 0.5994 GB, free: 15.65 MB / 462.1 MB Notification: Performance of pre-optimization done (n=4): time 1.042e-06/0.2172, allocations: 4 kB / 0.5994 GB, free: 15.64 MB / 462.1 MB Notification: Performance of matching and sorting (n=4): time 0.0001957/0.2174, allocations: 77.48 kB / 0.5995 GB, free: 15.56 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.686e-05/0.2175, allocations: 55.36 kB / 0.5995 GB, free: 15.5 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001573/0.2176, allocations: 168.7 kB / 0.5997 GB, free: 15.32 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 1.514e-05/0.2177, allocations: 25.7 kB / 0.5997 GB, free: 15.29 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001041/0.2178, allocations: 147.4 kB / 0.5999 GB, free: 15.14 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.756e-05/0.2178, allocations: 19.73 kB / 0.5999 GB, free: 15.12 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.16e-06/0.2178, allocations: 0 / 0.5999 GB, free: 15.12 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 0.0001472/0.218, allocations: 322.8 kB / 0.6002 GB, free: 14.8 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.3e-05/0.218, allocations: 27.92 kB / 0.6002 GB, free: 14.77 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.181e-05/0.2181, allocations: 89.36 kB / 0.6003 GB, free: 14.65 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 6.43e-05/0.2182, allocations: 32 kB / 0.6003 GB, free: 14.62 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.418e-06/0.2182, allocations: 4 kB / 0.6003 GB, free: 14.61 MB / 462.1 MB Notification: Performance of matching and sorting (n=14) (initialization): time 0.000196/0.2184, allocations: 133.4 kB / 0.6005 GB, free: 14.48 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 9.654e-05/0.2185, allocations: 161.8 kB / 0.6006 GB, free: 14.28 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.492e-06/0.2185, allocations: 0 / 0.6006 GB, free: 14.28 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.928e-05/0.2185, allocations: 8.188 kB / 0.6006 GB, free: 14.27 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001049/0.2187, allocations: 23.94 kB / 0.6006 GB, free: 14.25 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.111e-05/0.2187, allocations: 7.984 kB / 0.6006 GB, free: 14.24 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.949e-05/0.2188, allocations: 23.75 kB / 0.6007 GB, free: 14.22 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.049e-05/0.2188, allocations: 8 kB / 0.6007 GB, free: 14.21 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.652e-06/0.2188, allocations: 6.188 kB / 0.6007 GB, free: 14.21 MB / 462.1 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0001425/0.2189, allocations: 95.7 kB / 0.6008 GB, free: 14.11 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.396e-05/0.219, allocations: 4 kB / 0.6008 GB, free: 14.11 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 6.663e-06/0.219, allocations: 8.297 kB / 0.6008 GB, free: 14.1 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.229e-05/0.219, allocations: 23.94 kB / 0.6008 GB, free: 14.08 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.545e-06/0.2191, allocations: 4 kB / 0.6008 GB, free: 14.07 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.703e-05/0.2191, allocations: 15.94 kB / 0.6008 GB, free: 14.06 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.707e-06/0.2191, allocations: 11.98 kB / 0.6008 GB, free: 14.05 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.0001698/0.2193, allocations: 221.9 kB / 0.601 GB, free: 13.82 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.315e-05/0.2194, allocations: 11.81 kB / 0.6011 GB, free: 13.81 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.294e-05/0.2194, allocations: 12.94 kB / 0.6011 GB, free: 13.79 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.074e-06/0.2194, allocations: 0 / 0.6011 GB, free: 13.79 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.46e-06/0.2194, allocations: 0 / 0.6011 GB, free: 13.79 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.536e-06/0.2194, allocations: 4 kB / 0.6011 GB, free: 13.79 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004691/0.2199, allocations: 469.1 kB / 0.6015 GB, free: 13.26 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.713e-06/0.2199, allocations: 0 / 0.6015 GB, free: 13.26 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.51e-05/0.22, allocations: 11.98 kB / 0.6015 GB, free: 13.25 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.078e-06/0.22, allocations: 4 kB / 0.6015 GB, free: 13.25 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.224e-06/0.22, allocations: 128 / 0.6015 GB, free: 13.25 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.563e-06/0.22, allocations: 4 kB / 0.6015 GB, free: 13.24 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.566e-06/0.22, allocations: 4 kB / 0.6015 GB, free: 13.24 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001422/0.2201, allocations: 115.4 kB / 0.6017 GB, free: 13.1 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.452e-05/0.2202, allocations: 89 kB / 0.6017 GB, free: 12.99 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.903e-05/0.2202, allocations: 4 kB / 0.6017 GB, free: 12.99 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.481e-05/0.2203, allocations: 7.938 kB / 0.6018 GB, free: 12.98 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.532e-05/0.2203, allocations: 7.953 kB / 0.6018 GB, free: 12.97 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.299e-06/0.2203, allocations: 7.938 kB / 0.6018 GB, free: 12.96 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.0001046/0.2204, allocations: 123.9 kB / 0.6019 GB, free: 12.84 MB / 462.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.2204, allocations: 0 / 0.6019 GB, free: 12.84 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.0003396/0.2208, allocations: 55.78 kB / 0.6019 GB, free: 12.79 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 0.0001167/0.2209, allocations: 95.25 kB / 0.602 GB, free: 12.69 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.0002115/0.2211, allocations: 107.7 kB / 0.6021 GB, free: 12.58 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 2.495e-06/0.2211, allocations: 0 / 0.6021 GB, free: 12.58 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 2.914e-05/0.2212, allocations: 21.19 kB / 0.6022 GB, free: 12.56 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002685/0.2214, allocations: 15.98 kB / 0.6022 GB, free: 12.55 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005167/0.222, allocations: 328.4 kB / 0.6025 GB, free: 12.19 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003478/0.2223, allocations: 0.7241 MB / 0.6032 GB, free: 11.44 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 8.734e-05/0.2224, allocations: 24.62 kB / 0.6032 GB, free: 11.42 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.027e-05/0.2225, allocations: 15.44 kB / 0.6032 GB, free: 11.4 MB / 462.1 MB Notification: Performance of SimCode: time 3.91e-07/0.2225, allocations: 0 / 0.6032 GB, free: 11.4 MB / 462.1 MB Notification: Performance of Templates: time 0.003102/0.2256, allocations: 0.784 MB / 0.604 GB, free: 10.63 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: