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/Buildings 3.0.0/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.1+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.1+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.1+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_StateGraph2 2.0.2/package.mo", uses=false) Using package Modelica_StateGraph2 with version 2.0.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_StateGraph2 2.0.2/package.mo) Using package ModelicaServices with version 3.2.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.1+maint.om/package.mo) Using package Modelica with version 3.2.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.1+maint.om/package.mo) Using package Complex with version 3.2.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.1+maint.om/package.mo) Using package Buildings with version 3.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 3.0.0/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") [:1:1-1:32:writable] Error: Class GC_set_max_heap_size not found in scope (looking for a function or record). Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 3.0.0/package.mo): time 0.8145/0.8145, allocations: 132.4 MB / 139.7 MB, free: 15.55 MB / 122.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.1+maint.om/package.mo): time 0.001496/0.001496, allocations: 174.8 kB / 171.6 MB, free: 2.039 MB / 138.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.1+maint.om/package.mo): time 1.664/1.664, allocations: 170.5 MB / 373.9 MB, free: 15.87 MB / 282.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.1+maint.om/package.mo): time 0.001731/0.001731, allocations: 115.8 kB / 444.4 MB, free: 9.41 MB / 346.7 MB [/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.644/0.644, allocations: 73.39 MB / 0.666 GB, free: 62.25 MB / 458.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2075/0.8515, allocations: 122.9 MB / 0.786 GB, free: 13.33 MB / 0.4948 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003019/0.8519, allocations: 87.94 kB / 0.7861 GB, free: 13.24 MB / 0.4948 GB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 3.0.0/Electrical/DC/Sensors/GeneralizedSensor.mo:38:3-38:57:writable] Warning: Ignoring overconstrained operator applied to array components having size zero: Connections.branch(terminal_p.theta, terminal_n.theta);. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 3.0.0/Electrical/Interfaces/Source.mo:30:9-30:50:writable] Warning: Ignoring overconstrained operator applied to array components having size zero: Connections.potentialRoot(terminal.theta);. Notification: Performance of FrontEnd: time 0.02503/0.877, allocations: 9.217 MB / 0.7951 GB, free: 4.039 MB / 0.4948 GB Notification: Performance of Transformations before backend: time 2.447e-05/0.877, allocations: 7.938 kB / 0.7951 GB, free: 4.031 MB / 0.4948 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.00081/0.8779, allocations: 416.4 kB / 0.7955 GB, free: 3.578 MB / 0.4948 GB Notification: Performance of prepare preOptimizeDAE: time 6.217e-05/0.8779, allocations: 8.031 kB / 0.7955 GB, free: 3.57 MB / 0.4948 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006179/0.8786, allocations: 55.67 kB / 0.7956 GB, free: 3.516 MB / 0.4948 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004664/0.879, allocations: 220.1 kB / 0.7958 GB, free: 3.262 MB / 0.4948 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.029e-05/0.8791, allocations: 4 kB / 0.7958 GB, free: 3.258 MB / 0.4948 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.932e-05/0.8791, allocations: 8 kB / 0.7958 GB, free: 3.25 MB / 0.4948 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0003334/0.8795, allocations: 129.3 kB / 0.7959 GB, free: 3.125 MB / 0.4948 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003553/0.8798, allocations: 207.7 kB / 0.7961 GB, free: 2.902 MB / 0.4948 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.361e-05/0.8799, allocations: 4 kB / 0.7961 GB, free: 2.898 MB / 0.4948 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.611e-05/0.8799, allocations: 4 kB / 0.7961 GB, free: 2.895 MB / 0.4948 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.147e-05/0.8799, allocations: 8.281 kB / 0.7961 GB, free: 2.887 MB / 0.4948 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001451/0.8814, allocations: 0.9595 MB / 0.7971 GB, free: 1.84 MB / 0.4948 GB Notification: Performance of preOpt comSubExp (simulation): time 6.422e-05/0.8815, allocations: 30.5 kB / 0.7971 GB, free: 1.801 MB / 0.4948 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.476e-05/0.8815, allocations: 20.86 kB / 0.7971 GB, free: 1.777 MB / 0.4948 GB Notification: Performance of preOpt evalFunc (simulation): time 1.081e-05/0.8815, allocations: 0 / 0.7971 GB, free: 1.777 MB / 0.4948 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.35e-05/0.8816, allocations: 34.47 kB / 0.7971 GB, free: 1.734 MB / 0.4948 GB Notification: Performance of pre-optimization done (n=3): time 1.543e-06/0.8816, allocations: 0 / 0.7971 GB, free: 1.734 MB / 0.4948 GB Notification: Performance of matching and sorting (n=3): time 0.0002407/0.8818, allocations: 55.56 kB / 0.7972 GB, free: 1.676 MB / 0.4948 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.302e-05/0.8819, allocations: 51.41 kB / 0.7972 GB, free: 1.613 MB / 0.4948 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001785/0.8821, allocations: 133.5 kB / 0.7974 GB, free: 1.473 MB / 0.4948 GB Notification: Performance of collectPreVariables (initialization): time 1.886e-05/0.8821, allocations: 25.7 kB / 0.7974 GB, free: 1.441 MB / 0.4948 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001198/0.8822, allocations: 151.2 kB / 0.7975 GB, free: 1.289 MB / 0.4948 GB Notification: Performance of collectInitialBindings (initialization): time 1.887e-05/0.8823, allocations: 11.91 kB / 0.7976 GB, free: 1.277 MB / 0.4948 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.593e-06/0.8823, allocations: 0 / 0.7976 GB, free: 1.277 MB / 0.4948 GB Notification: Performance of setup shared object (initialization): time 0.000165/0.8825, allocations: 322.8 kB / 0.7979 GB, free: 0.9531 MB / 0.4948 GB Notification: Performance of preBalanceInitialSystem (initialization): time 4.104e-05/0.8825, allocations: 12 kB / 0.7979 GB, free: 0.9414 MB / 0.4948 GB Notification: Performance of partitionIndependentBlocks (initialization): time 8.924e-05/0.8826, allocations: 89.38 kB / 0.798 GB, free: 0.8203 MB / 0.4948 GB Notification: Performance of analyzeInitialSystem (initialization): time 6.46e-05/0.8827, allocations: 27.98 kB / 0.798 GB, free: 0.793 MB / 0.4948 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.466e-06/0.8827, allocations: 4 kB / 0.798 GB, free: 0.7891 MB / 0.4948 GB Notification: Performance of matching and sorting (n=14) (initialization): time 0.000206/0.8829, allocations: 117.4 kB / 0.7981 GB, free: 0.668 MB / 0.4948 GB Notification: Performance of prepare postOptimizeDAE: time 0.0007268/0.8836, allocations: 0.9651 MB / 0.799 GB, free: 15.62 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.637e-05/0.8837, allocations: 4 kB / 0.799 GB, free: 15.62 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.701e-05/0.8837, allocations: 8 kB / 0.7991 GB, free: 15.61 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001474/0.8839, allocations: 20.56 kB / 0.7991 GB, free: 15.59 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.967e-05/0.8839, allocations: 15.83 kB / 0.7991 GB, free: 15.58 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.746e-05/0.884, allocations: 11.84 kB / 0.7991 GB, free: 15.57 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.332e-05/0.884, allocations: 4 kB / 0.7991 GB, free: 15.56 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 1.203e-05/0.884, allocations: 8.719 kB / 0.7991 GB, free: 15.55 MB / 0.5105 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0001712/0.8842, allocations: 81.5 kB / 0.7992 GB, free: 15.48 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.666e-06/0.8842, allocations: 0 / 0.7992 GB, free: 15.48 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 4.007e-06/0.8843, allocations: 4 kB / 0.7992 GB, free: 15.47 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.316e-05/0.8843, allocations: 23.98 kB / 0.7992 GB, free: 15.45 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.414e-06/0.8844, allocations: 7.938 kB / 0.7992 GB, free: 15.44 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.163e-05/0.8844, allocations: 7.906 kB / 0.7992 GB, free: 15.43 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.075e-05/0.8845, allocations: 11.83 kB / 0.7992 GB, free: 15.43 MB / 0.5105 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 () * 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.0001108/0.8846, allocations: 109.9 kB / 0.7993 GB, free: 15.31 MB / 0.5105 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.575e-05/0.8846, allocations: 7.906 kB / 0.7994 GB, free: 15.3 MB / 0.5105 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.628e-05/0.8847, allocations: 16.34 kB / 0.7994 GB, free: 15.29 MB / 0.5105 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.372e-06/0.8847, allocations: 3.984 kB / 0.7994 GB, free: 15.28 MB / 0.5105 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.213e-06/0.8847, allocations: 0 / 0.7994 GB, free: 15.28 MB / 0.5105 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.514e-06/0.8847, allocations: 0 / 0.7994 GB, free: 15.28 MB / 0.5105 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004657/0.8852, allocations: 416.8 kB / 0.7998 GB, free: 14.82 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.943e-06/0.8852, allocations: 8.797 kB / 0.7998 GB, free: 14.81 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.833e-05/0.8853, allocations: 8.094 kB / 0.7998 GB, free: 14.8 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.189e-06/0.8853, allocations: 4 kB / 0.7998 GB, free: 14.8 MB / 0.5105 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.267e-06/0.8853, allocations: 0 / 0.7998 GB, free: 14.8 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.393e-06/0.8853, allocations: 0 / 0.7998 GB, free: 14.8 MB / 0.5105 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.442e-06/0.8853, allocations: 4 kB / 0.7998 GB, free: 14.8 MB / 0.5105 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0001783/0.8855, allocations: 116.2 kB / 0.7999 GB, free: 14.65 MB / 0.5105 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001039/0.8856, allocations: 89 kB / 0.8 GB, free: 14.54 MB / 0.5105 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.273e-05/0.8857, allocations: 4 kB / 0.8 GB, free: 14.54 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.538e-05/0.8857, allocations: 0 / 0.8 GB, free: 14.54 MB / 0.5105 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.931e-05/0.8857, allocations: 7.938 kB / 0.8 GB, free: 14.53 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.573e-06/0.8858, allocations: 4 kB / 0.8 GB, free: 14.53 MB / 0.5105 GB Notification: Performance of sort global known variables: time 0.0001186/0.8859, allocations: 106.1 kB / 0.8001 GB, free: 14.43 MB / 0.5105 GB Notification: Performance of remove unused functions: time 0.0004599/0.8863, allocations: 55.69 kB / 0.8002 GB, free: 14.37 MB / 0.5105 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (3): * Single equations (assignments): 3 * 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.0002086/0.8866, allocations: 103.2 kB / 0.8003 GB, free: 14.26 MB / 0.5105 GB Notification: Performance of simCode: created initialization part: time 0.0002758/0.8869, allocations: 87.8 kB / 0.8003 GB, free: 14.18 MB / 0.5105 GB Notification: Performance of simCode: created event and clocks part: time 5.33e-06/0.8869, allocations: 0 / 0.8003 GB, free: 14.18 MB / 0.5105 GB Notification: Performance of simCode: created simulation system equations: time 2.894e-05/0.8869, allocations: 17.3 kB / 0.8004 GB, free: 14.16 MB / 0.5105 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002888/0.8872, allocations: 13.55 kB / 0.8004 GB, free: 14.15 MB / 0.5105 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006774/0.8879, allocations: 174.9 kB / 0.8005 GB, free: 13.95 MB / 0.5105 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000583/0.8885, allocations: 0.7427 MB / 0.8013 GB, free: 13.18 MB / 0.5105 GB Notification: Performance of SimCode: time 5.41e-07/0.8885, allocations: 0 / 0.8013 GB, free: 13.18 MB / 0.5105 GB Notification: Performance of Templates: time 0.004925/0.8934, allocations: 0.9388 MB / 0.8022 GB, free: 12.27 MB / 0.5105 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)