Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_8.0.0_Buildings.Electrical.DC.Sensors.Examples.GeneralizedSensor.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.0/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+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/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/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 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Using package Buildings with version 8.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.0/package.mo) Running command: "" <> buildModelFMU(Buildings.Electrical.DC.Sensors.Examples.GeneralizedSensor,fileNamePrefix="Buildings_8_0_0_Buildings_Electrical_DC_Sensors_Examples_GeneralizedSensor",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Electrical.DC.Sensors.Examples.GeneralizedSensor,fileNamePrefix="Buildings_8_0_0_Buildings_Electrical_DC_Sensors_Examples_GeneralizedSensor",fmuType="me",version="2.0",platforms={"static"}) [: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 8.0.0/package.mo): time 2.113/2.113, allocations: 284.8 MB / 292.1 MB, free: 10.81 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001583/0.001582, allocations: 185.2 kB / 360.3 MB, free: 7.574 MB / 298.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.606/1.606, allocations: 205.1 MB / 0.6187 GB, free: 13.29 MB / 474.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001207/0.001206, allocations: 91.7 kB / 0.7317 GB, free: 45.16 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.242/0.2433, allocations: 121.4 MB / 0.8502 GB, free: 3.953 MB / 0.5886 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5431/0.7865, allocations: 115.2 MB / 0.9627 GB, free: 78.57 MB / 0.6667 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.2364/1.023, allocations: 159 MB / 1.118 GB, free: 13.84 MB / 0.7292 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000329/1.023, allocations: 88.88 kB / 1.118 GB, free: 13.75 MB / 0.7292 GB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.0/Electrical/DC/Sensors/GeneralizedSensor.mo:39:3-39: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 8.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: 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.03434/1.058, allocations: 9.51 MB / 1.127 GB, free: 4.191 MB / 0.7292 GB Notification: Performance of prepare preOptimizeDAE: time 4.291e-05/1.058, allocations: 13.09 kB / 1.127 GB, free: 4.18 MB / 0.7292 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006633/1.058, allocations: 48.39 kB / 1.127 GB, free: 4.133 MB / 0.7292 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003502/1.059, allocations: 224.2 kB / 1.128 GB, free: 3.875 MB / 0.7292 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.595e-05/1.059, allocations: 4 kB / 1.128 GB, free: 3.871 MB / 0.7292 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.284e-05/1.059, allocations: 12 kB / 1.128 GB, free: 3.859 MB / 0.7292 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0003833/1.059, allocations: 124.2 kB / 1.128 GB, free: 3.738 MB / 0.7292 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004698/1.06, allocations: 208.1 kB / 1.128 GB, free: 3.516 MB / 0.7292 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.448e-05/1.06, allocations: 3.938 kB / 1.128 GB, free: 3.512 MB / 0.7292 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.911e-05/1.06, allocations: 4.938 kB / 1.128 GB, free: 3.508 MB / 0.7292 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.573e-05/1.06, allocations: 8.281 kB / 1.128 GB, free: 3.5 MB / 0.7292 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001595/1.061, allocations: 1.17 MB / 1.129 GB, free: 2.195 MB / 0.7292 GB Notification: Performance of preOpt comSubExp (simulation): time 5.707e-05/1.061, allocations: 22.58 kB / 1.129 GB, free: 2.164 MB / 0.7292 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.214e-05/1.062, allocations: 16.86 kB / 1.129 GB, free: 2.145 MB / 0.7292 GB Notification: Performance of preOpt evalFunc (simulation): time 5.901e-06/1.062, allocations: 0 / 1.129 GB, free: 2.145 MB / 0.7292 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.389e-05/1.062, allocations: 34.66 kB / 1.129 GB, free: 2.102 MB / 0.7292 GB Notification: Performance of pre-optimization done (n=3): time 1.904e-06/1.062, allocations: 0 / 1.129 GB, free: 2.102 MB / 0.7292 GB Notification: Performance of matching and sorting (n=3): time 0.0002017/1.062, allocations: 61.52 kB / 1.129 GB, free: 2.035 MB / 0.7292 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.027e-05/1.062, allocations: 51.41 kB / 1.129 GB, free: 1.973 MB / 0.7292 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001897/1.062, allocations: 133.7 kB / 1.129 GB, free: 1.836 MB / 0.7292 GB Notification: Performance of collectPreVariables (initialization): time 1.511e-05/1.062, allocations: 25.7 kB / 1.129 GB, free: 1.805 MB / 0.7292 GB Notification: Performance of collectInitialEqns (initialization): time 0.000102/1.062, allocations: 147.3 kB / 1.13 GB, free: 1.656 MB / 0.7292 GB Notification: Performance of collectInitialBindings (initialization): time 1.743e-05/1.062, allocations: 15.8 kB / 1.13 GB, free: 1.641 MB / 0.7292 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.292e-06/1.062, allocations: 0 / 1.13 GB, free: 1.641 MB / 0.7292 GB Notification: Performance of setup shared object (initialization): time 0.0001277/1.062, allocations: 322.8 kB / 1.13 GB, free: 1.316 MB / 0.7292 GB Notification: Performance of preBalanceInitialSystem (initialization): time 6.077e-05/1.062, allocations: 15.98 kB / 1.13 GB, free: 1.301 MB / 0.7292 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001092/1.063, allocations: 81.39 kB / 1.13 GB, free: 1.188 MB / 0.7292 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001012/1.063, allocations: 39.91 kB / 1.13 GB, free: 1.148 MB / 0.7292 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.5e-06/1.063, allocations: 4 kB / 1.13 GB, free: 1.145 MB / 0.7292 GB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0002838/1.063, allocations: 113.4 kB / 1.13 GB, free: 1.027 MB / 0.7292 GB Notification: Performance of prepare postOptimizeDAE: time 0.0004782/1.063, allocations: 0.9612 MB / 1.131 GB, free: 15.99 MB / 0.7448 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.01e-05/1.064, allocations: 4 kB / 1.131 GB, free: 15.99 MB / 0.7448 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.012e-05/1.064, allocations: 5.031 kB / 1.131 GB, free: 15.98 MB / 0.7448 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002105/1.064, allocations: 28.02 kB / 1.131 GB, free: 15.96 MB / 0.7448 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.032e-05/1.064, allocations: 4 kB / 1.131 GB, free: 15.95 MB / 0.7448 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001248/1.064, allocations: 15.84 kB / 1.131 GB, free: 15.94 MB / 0.7448 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.566e-05/1.064, allocations: 7.984 kB / 1.131 GB, free: 15.93 MB / 0.7448 GB Notification: Performance of prepare postOptimizeDAE: time 8.527e-06/1.064, allocations: 4 kB / 1.131 GB, free: 15.93 MB / 0.7448 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0001977/1.064, allocations: 75.78 kB / 1.131 GB, free: 15.85 MB / 0.7448 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.693e-06/1.064, allocations: 5.875 kB / 1.131 GB, free: 15.84 MB / 0.7448 GB Notification: Performance of postOpt tearingSystem (initialization): time 6.953e-06/1.064, allocations: 4 kB / 1.131 GB, free: 15.84 MB / 0.7448 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001515/1.064, allocations: 28.23 kB / 1.131 GB, free: 15.81 MB / 0.7448 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.657e-06/1.064, allocations: 4 kB / 1.131 GB, free: 15.81 MB / 0.7448 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.58e-05/1.064, allocations: 13.06 kB / 1.131 GB, free: 15.8 MB / 0.7448 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.319e-05/1.065, allocations: 8 kB / 1.131 GB, free: 15.79 MB / 0.7448 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 8.901e-05/1.065, allocations: 112.7 kB / 1.131 GB, free: 15.67 MB / 0.7448 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.847e-05/1.065, allocations: 15.8 kB / 1.131 GB, free: 15.66 MB / 0.7448 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.787e-05/1.065, allocations: 12.12 kB / 1.131 GB, free: 15.64 MB / 0.7448 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.807e-06/1.065, allocations: 0 / 1.131 GB, free: 15.64 MB / 0.7448 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.379e-06/1.065, allocations: 0 / 1.131 GB, free: 15.64 MB / 0.7448 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.286e-06/1.065, allocations: 4 kB / 1.131 GB, free: 15.64 MB / 0.7448 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005186/1.065, allocations: 412.8 kB / 1.132 GB, free: 15.18 MB / 0.7448 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.455e-06/1.065, allocations: 0 / 1.132 GB, free: 15.18 MB / 0.7448 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.603e-05/1.065, allocations: 8 kB / 1.132 GB, free: 15.17 MB / 0.7448 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.146e-06/1.065, allocations: 0 / 1.132 GB, free: 15.17 MB / 0.7448 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.736e-06/1.065, allocations: 1.125 kB / 1.132 GB, free: 15.17 MB / 0.7448 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.605e-06/1.065, allocations: 3.031 kB / 1.132 GB, free: 15.17 MB / 0.7448 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.95e-06/1.065, allocations: 8.094 kB / 1.132 GB, free: 15.16 MB / 0.7448 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.000163/1.066, allocations: 118 kB / 1.132 GB, free: 15.01 MB / 0.7448 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.0003266/1.066, allocations: 0.4946 MB / 1.132 GB, free: 14.48 MB / 0.7448 GB Notification: Performance of postOpt removeConstants (simulation): time 9.265e-05/1.066, allocations: 85 kB / 1.133 GB, free: 14.38 MB / 0.7448 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.576e-05/1.066, allocations: 4 kB / 1.133 GB, free: 14.37 MB / 0.7448 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.453e-05/1.066, allocations: 0 / 1.133 GB, free: 14.37 MB / 0.7448 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.791e-05/1.066, allocations: 13.44 kB / 1.133 GB, free: 14.36 MB / 0.7448 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.101e-06/1.066, allocations: 4 kB / 1.133 GB, free: 14.36 MB / 0.7448 GB Notification: Performance of sort global known variables: time 0.0001066/1.066, allocations: 107.7 kB / 1.133 GB, free: 14.25 MB / 0.7448 GB Notification: Performance of remove unused functions: time 0.00222/1.069, allocations: 59.69 kB / 1.133 GB, free: 14.2 MB / 0.7448 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.0001401/1.069, allocations: 99.14 kB / 1.133 GB, free: 14.09 MB / 0.7448 GB Notification: Performance of simCode: created initialization part: time 0.0002714/1.069, allocations: 92.98 kB / 1.133 GB, free: 14 MB / 0.7448 GB Notification: Performance of simCode: created event and clocks part: time 2.976e-06/1.069, allocations: 4.062 kB / 1.133 GB, free: 13.99 MB / 0.7448 GB Notification: Performance of simCode: created simulation system equations: time 3.669e-05/1.069, allocations: 15.98 kB / 1.133 GB, free: 13.98 MB / 0.7448 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002761/1.069, allocations: 12.78 kB / 1.133 GB, free: 13.96 MB / 0.7448 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005386/1.07, allocations: 169.9 kB / 1.133 GB, free: 13.77 MB / 0.7448 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004315/1.07, allocations: 0.7442 MB / 1.134 GB, free: 13 MB / 0.7448 GB Notification: Performance of SimCode: time 8.51e-07/1.07, allocations: 0 / 1.134 GB, free: 13 MB / 0.7448 GB (rm -f Buildings_8.0.0_Buildings.Electrical.DC.Sensors.Examples.GeneralizedSensor.pipe ; mkfifo Buildings_8.0.0_Buildings.Electrical.DC.Sensors.Examples.GeneralizedSensor.pipe ; head -c 1048576 < Buildings_8.0.0_Buildings.Electrical.DC.Sensors.Examples.GeneralizedSensor.pipe >> ../files/Buildings_8.0.0_Buildings.Electrical.DC.Sensors.Examples.GeneralizedSensor.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_Buildings_8_0_0_Buildings_Electrical_DC_Sensors_Examples_GeneralizedSensor_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Buildings_8_0_0_Buildings_Electrical_DC_Sensors_Examples_GeneralizedSensor.fmu > Buildings_8.0.0_Buildings.Electrical.DC.Sensors.Examples.GeneralizedSensor.pipe 2>&1)