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.2434/0.2456, allocations: 80.83 MB / 0.5897 GB, free: 7.129 MB / 446.1 MB Notification: Performance of NFInst.instantiate(Buildings.Electrical.DC.Sensors.Examples.GeneralizedSensor): time 0.005461/0.2511, allocations: 2.547 MB / 0.5922 GB, free: 4.562 MB / 446.1 MB Notification: Performance of NFInst.instExpressions: time 0.001729/0.2529, allocations: 0.8257 MB / 0.593 GB, free: 3.734 MB / 446.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002995/0.2532, allocations: 7.938 kB / 0.593 GB, free: 3.727 MB / 446.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001679/0.255, allocations: 0.5465 MB / 0.5935 GB, free: 3.172 MB / 446.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004731/0.2554, allocations: 107.6 kB / 0.5936 GB, free: 3.066 MB / 446.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004279/0.2559, allocations: 99.77 kB / 0.5937 GB, free: 2.969 MB / 446.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003542/0.2562, allocations: 291.3 kB / 0.594 GB, free: 2.684 MB / 446.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002814/0.2565, allocations: 106.5 kB / 0.5941 GB, free: 2.578 MB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 9.773e-05/0.2566, allocations: 75.64 kB / 0.5942 GB, free: 2.504 MB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002695/0.2569, allocations: 99.7 kB / 0.5943 GB, free: 2.406 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 2.293e-05/0.257, allocations: 11.94 kB / 0.5943 GB, free: 2.395 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002844/0.2572, allocations: 139.7 kB / 0.5944 GB, free: 2.258 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 7.417e-05/0.2573, allocations: 59.81 kB / 0.5945 GB, free: 2.199 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 8.502e-05/0.2574, allocations: 67.67 kB / 0.5945 GB, free: 2.133 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003276/0.2578, allocations: 227.2 kB / 0.5947 GB, free: 1.91 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.586e-06/0.2578, allocations: 4 kB / 0.5947 GB, free: 1.906 MB / 446.1 MB Notification: Performance of FrontEnd: time 1.072e-06/0.2578, allocations: 0 / 0.5947 GB, free: 1.906 MB / 446.1 MB Notification: Performance of Transformations before backend: time 7.374e-06/0.2578, allocations: 0 / 0.5947 GB, free: 1.906 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.0008665/0.2587, allocations: 443.3 kB / 0.5952 GB, free: 1.426 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.333e-05/0.2587, allocations: 12.03 kB / 0.5952 GB, free: 1.414 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004542/0.2592, allocations: 44.7 kB / 0.5952 GB, free: 1.371 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002979/0.2595, allocations: 208.1 kB / 0.5954 GB, free: 1.129 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.275e-05/0.2595, allocations: 16.66 kB / 0.5954 GB, free: 1.113 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.927e-05/0.2596, allocations: 16.36 kB / 0.5955 GB, free: 1.098 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000418/0.26, allocations: 235.6 kB / 0.5957 GB, free: 0.8477 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.072e-05/0.26, allocations: 0 / 0.5957 GB, free: 0.8477 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.722e-05/0.26, allocations: 7.984 kB / 0.5957 GB, free: 0.8398 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.106e-05/0.2601, allocations: 12.28 kB / 0.5957 GB, free: 0.8281 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002639/0.2604, allocations: 152.6 kB / 0.5958 GB, free: 0.6797 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001334/0.2617, allocations: 0.9249 MB / 0.5967 GB, free: 15.67 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 9.364e-05/0.2618, allocations: 42.56 kB / 0.5968 GB, free: 15.62 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.416e-05/0.2619, allocations: 24.88 kB / 0.5968 GB, free: 15.59 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.579e-05/0.2619, allocations: 0 / 0.5968 GB, free: 15.59 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.163e-05/0.2619, allocations: 30.56 kB / 0.5968 GB, free: 15.55 MB / 462.1 MB Notification: Performance of pre-optimization done (n=4): time 1.022e-06/0.2619, allocations: 0 / 0.5968 GB, free: 15.55 MB / 462.1 MB Notification: Performance of matching and sorting (n=4): time 0.0002543/0.2622, allocations: 85.52 kB / 0.5969 GB, free: 15.46 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.76e-05/0.2622, allocations: 51.41 kB / 0.597 GB, free: 15.4 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000181/0.2624, allocations: 176.6 kB / 0.5971 GB, free: 15.22 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 1.781e-05/0.2625, allocations: 25.7 kB / 0.5972 GB, free: 15.19 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001064/0.2626, allocations: 143.4 kB / 0.5973 GB, free: 15.04 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.545e-05/0.2626, allocations: 11.81 kB / 0.5973 GB, free: 15.03 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.781e-05/0.2627, allocations: 29.7 kB / 0.5973 GB, free: 15 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 0.0001889/0.2628, allocations: 322.8 kB / 0.5976 GB, free: 14.67 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.772e-05/0.2629, allocations: 36.78 kB / 0.5977 GB, free: 14.63 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.461e-05/0.263, allocations: 84.61 kB / 0.5978 GB, free: 14.52 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000162/0.2632, allocations: 125.3 kB / 0.5979 GB, free: 14.36 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.104e-06/0.2632, allocations: 3.938 kB / 0.5979 GB, free: 14.36 MB / 462.1 MB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0002172/0.2634, allocations: 137.2 kB / 0.598 GB, free: 14.22 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.99e-05/0.2634, allocations: 8 kB / 0.598 GB, free: 14.21 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.515e-06/0.2635, allocations: 320 / 0.598 GB, free: 14.21 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.398e-05/0.2635, allocations: 15.92 kB / 0.598 GB, free: 14.2 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001254/0.2636, allocations: 23.94 kB / 0.5981 GB, free: 14.17 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.252e-05/0.2636, allocations: 4 kB / 0.5981 GB, free: 14.17 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.898e-05/0.2637, allocations: 15.84 kB / 0.5981 GB, free: 14.15 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.454e-05/0.2637, allocations: 11.98 kB / 0.5981 GB, free: 14.14 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0001147/0.2639, allocations: 117 kB / 0.5982 GB, free: 14.02 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0001003/0.264, allocations: 97.05 kB / 0.5983 GB, free: 13.9 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0001386/0.2641, allocations: 125.2 kB / 0.5984 GB, free: 13.74 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 1.323e-06/0.2641, allocations: 0 / 0.5984 GB, free: 13.74 MB / 462.1 MB Notification: Performance of matching and sorting (n=14) (initialization_lambda0): time 0.0001995/0.2643, allocations: 137.7 kB / 0.5985 GB, free: 13.6 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.795e-06/0.2644, allocations: 4 kB / 0.5986 GB, free: 13.6 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.517e-06/0.2644, allocations: 4 kB / 0.5986 GB, free: 13.59 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.978e-06/0.2644, allocations: 4 kB / 0.5986 GB, free: 13.59 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.129e-05/0.2644, allocations: 23.98 kB / 0.5986 GB, free: 13.57 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.747e-06/0.2645, allocations: 3.938 kB / 0.5986 GB, free: 13.56 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.129e-05/0.2645, allocations: 27.77 kB / 0.5986 GB, free: 13.54 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.201e-06/0.2645, allocations: 8 kB / 0.5986 GB, free: 13.53 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001242/0.2647, allocations: 188.5 kB / 0.5988 GB, free: 13.34 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.231e-05/0.2647, allocations: 7.906 kB / 0.5988 GB, free: 13.33 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.945e-05/0.2648, allocations: 16.92 kB / 0.5988 GB, free: 13.31 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.069e-06/0.2648, allocations: 3.938 kB / 0.5988 GB, free: 13.3 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.224e-06/0.2648, allocations: 0 / 0.5988 GB, free: 13.3 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.406e-06/0.2648, allocations: 0 / 0.5988 GB, free: 13.3 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004788/0.2653, allocations: 477.1 kB / 0.5993 GB, free: 12.77 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.817e-06/0.2653, allocations: 4 kB / 0.5993 GB, free: 12.77 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.98e-05/0.2653, allocations: 4 kB / 0.5993 GB, free: 12.76 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.328e-06/0.2653, allocations: 4 kB / 0.5993 GB, free: 12.76 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.698e-06/0.2654, allocations: 0 / 0.5993 GB, free: 12.76 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.804e-06/0.2654, allocations: 0 / 0.5993 GB, free: 12.76 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.386e-06/0.2654, allocations: 4 kB / 0.5993 GB, free: 12.75 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001343/0.2655, allocations: 119.5 kB / 0.5994 GB, free: 12.61 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.908e-05/0.2656, allocations: 89.02 kB / 0.5995 GB, free: 12.5 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.574e-05/0.2656, allocations: 7.984 kB / 0.5995 GB, free: 12.5 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.206e-05/0.2657, allocations: 0 / 0.5995 GB, free: 12.5 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.159e-05/0.2657, allocations: 4 kB / 0.5995 GB, free: 12.49 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.675e-06/0.2657, allocations: 0 / 0.5995 GB, free: 12.49 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.0001044/0.2658, allocations: 128 kB / 0.5996 GB, free: 12.37 MB / 462.1 MB Notification: Performance of sort global known variables: time 1.21e-07/0.2658, allocations: 0 / 0.5996 GB, free: 12.37 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.000346/0.2662, allocations: 55.78 kB / 0.5997 GB, free: 12.31 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 (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.0001294/0.2663, allocations: 107.1 kB / 0.5998 GB, free: 12.2 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.0002184/0.2665, allocations: 104.9 kB / 0.5999 GB, free: 12.1 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 3.707e-06/0.2666, allocations: 4.062 kB / 0.5999 GB, free: 12.09 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 3.584e-05/0.2666, allocations: 19.92 kB / 0.5999 GB, free: 12.07 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000335/0.2669, allocations: 31.02 kB / 0.5999 GB, free: 12.05 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007347/0.2677, allocations: 319.5 kB / 0.6002 GB, free: 11.7 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003968/0.2681, allocations: 0.724 MB / 0.601 GB, free: 10.95 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 9.45e-05/0.2682, allocations: 28.61 kB / 0.601 GB, free: 10.92 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.927e-05/0.2682, allocations: 15.44 kB / 0.601 GB, free: 10.91 MB / 462.1 MB Notification: Performance of SimCode: time 1.082e-06/0.2683, allocations: 0 / 0.601 GB, free: 10.91 MB / 462.1 MB Notification: Performance of Templates: time 0.003965/0.2722, allocations: 0.8097 MB / 0.6018 GB, free: 10.11 MB / 462.1 MB 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)