Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_7.0.0_Buildings.Electrical.DC.Sensors.Examples.GeneralizedSensor.conf.json 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 7.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.1/package.mo) Running command: "" <> buildModelFMU(Buildings.Electrical.DC.Sensors.Examples.GeneralizedSensor,fileNamePrefix="Buildings_7_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 7.0.1/package.mo): time 2.271/2.271, allocations: 248.6 MB / 255.9 MB, free: 7.074 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001694/0.001693, allocations: 192 kB / 315.1 MB, free: 4.293 MB / 250.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.996/1.996, allocations: 205.1 MB / 0.5658 GB, free: 388 kB / 410.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001308/0.001308, allocations: 93.61 kB / 0.67 GB, free: 5.598 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.4923/0.4936, allocations: 112.4 MB / 0.7797 GB, free: 103.7 MB / 0.5417 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2211/0.7148, allocations: 106.3 MB / 0.8835 GB, free: 13.39 MB / 0.5573 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.7542/1.469, allocations: 153.7 MB / 1.034 GB, free: 4.637 MB / 0.6511 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003507/1.47, allocations: 88.56 kB / 1.034 GB, free: 4.586 MB / 0.6511 GB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.1/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 7.0.1/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.03531/1.505, allocations: 9.521 MB / 1.043 GB, free: 12.85 MB / 0.6667 GB Notification: Performance of prepare preOptimizeDAE: time 4.621e-05/1.505, allocations: 15.94 kB / 1.043 GB, free: 12.84 MB / 0.6667 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007575/1.506, allocations: 51.77 kB / 1.043 GB, free: 12.79 MB / 0.6667 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003384/1.506, allocations: 213.2 kB / 1.043 GB, free: 12.55 MB / 0.6667 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.622e-05/1.506, allocations: 4 kB / 1.043 GB, free: 12.54 MB / 0.6667 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.376e-05/1.506, allocations: 8 kB / 1.043 GB, free: 12.54 MB / 0.6667 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0003938/1.506, allocations: 130.7 kB / 1.043 GB, free: 12.45 MB / 0.6667 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004526/1.507, allocations: 214.5 kB / 1.044 GB, free: 12.26 MB / 0.6667 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.16e-05/1.507, allocations: 0 / 1.044 GB, free: 12.26 MB / 0.6667 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.754e-05/1.507, allocations: 4 kB / 1.044 GB, free: 12.25 MB / 0.6667 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.218e-05/1.507, allocations: 20.08 kB / 1.044 GB, free: 12.24 MB / 0.6667 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001553/1.509, allocations: 1.158 MB / 1.045 GB, free: 11.01 MB / 0.6667 GB Notification: Performance of preOpt comSubExp (simulation): time 6.614e-05/1.509, allocations: 26.02 kB / 1.045 GB, free: 10.98 MB / 0.6667 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.646e-05/1.509, allocations: 20.88 kB / 1.045 GB, free: 10.96 MB / 0.6667 GB Notification: Performance of preOpt evalFunc (simulation): time 6.923e-06/1.509, allocations: 4 kB / 1.045 GB, free: 10.96 MB / 0.6667 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.791e-05/1.509, allocations: 30.56 kB / 1.045 GB, free: 10.92 MB / 0.6667 GB Notification: Performance of pre-optimization done (n=3): time 2.755e-06/1.509, allocations: 0 / 1.045 GB, free: 10.92 MB / 0.6667 GB Notification: Performance of matching and sorting (n=3): time 0.0002074/1.509, allocations: 53.28 kB / 1.045 GB, free: 10.86 MB / 0.6667 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.829e-05/1.509, allocations: 55.31 kB / 1.045 GB, free: 10.8 MB / 0.6667 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002213/1.509, allocations: 132.8 kB / 1.045 GB, free: 10.67 MB / 0.6667 GB Notification: Performance of collectPreVariables (initialization): time 2.074e-05/1.509, allocations: 25.7 kB / 1.045 GB, free: 10.64 MB / 0.6667 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001471/1.51, allocations: 153.1 kB / 1.045 GB, free: 10.5 MB / 0.6667 GB Notification: Performance of collectInitialBindings (initialization): time 2.147e-05/1.51, allocations: 11.91 kB / 1.045 GB, free: 10.48 MB / 0.6667 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.568e-06/1.51, allocations: 0 / 1.045 GB, free: 10.48 MB / 0.6667 GB Notification: Performance of setup shared object (initialization): time 0.0001221/1.51, allocations: 321.9 kB / 1.046 GB, free: 10.16 MB / 0.6667 GB Notification: Performance of preBalanceInitialSystem (initialization): time 5.668e-05/1.51, allocations: 14 kB / 1.046 GB, free: 10.16 MB / 0.6667 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001125/1.51, allocations: 92.94 kB / 1.046 GB, free: 10.04 MB / 0.6667 GB Notification: Performance of analyzeInitialSystem (initialization): time 9.278e-05/1.51, allocations: 27.05 kB / 1.046 GB, free: 10.02 MB / 0.6667 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.591e-06/1.51, allocations: 4 kB / 1.046 GB, free: 10.02 MB / 0.6667 GB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0002859/1.51, allocations: 122.5 kB / 1.046 GB, free: 9.906 MB / 0.6667 GB Notification: Performance of prepare postOptimizeDAE: time 0.000442/1.511, allocations: 0.9568 MB / 1.047 GB, free: 8.891 MB / 0.6667 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.037e-05/1.511, allocations: 4 kB / 1.047 GB, free: 8.887 MB / 0.6667 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.307e-05/1.511, allocations: 4 kB / 1.047 GB, free: 8.883 MB / 0.6667 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000218/1.511, allocations: 34.11 kB / 1.047 GB, free: 8.852 MB / 0.6667 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.388e-06/1.511, allocations: 4 kB / 1.047 GB, free: 8.848 MB / 0.6667 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000129/1.511, allocations: 11.84 kB / 1.047 GB, free: 8.836 MB / 0.6667 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.77e-05/1.511, allocations: 11.94 kB / 1.047 GB, free: 8.824 MB / 0.6667 GB Notification: Performance of prepare postOptimizeDAE: time 1.211e-05/1.511, allocations: 7.906 kB / 1.047 GB, free: 8.816 MB / 0.6667 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0002139/1.512, allocations: 85.12 kB / 1.047 GB, free: 8.746 MB / 0.6667 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.721e-06/1.512, allocations: 8.031 kB / 1.047 GB, free: 8.738 MB / 0.6667 GB Notification: Performance of postOpt tearingSystem (initialization): time 4.769e-06/1.512, allocations: 0 / 1.047 GB, free: 8.738 MB / 0.6667 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001439/1.512, allocations: 20 kB / 1.047 GB, free: 8.719 MB / 0.6667 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.668e-06/1.512, allocations: 11.92 kB / 1.047 GB, free: 8.707 MB / 0.6667 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.03e-05/1.512, allocations: 7.938 kB / 1.047 GB, free: 8.699 MB / 0.6667 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.373e-05/1.512, allocations: 8 kB / 1.047 GB, free: 8.691 MB / 0.6667 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.948e-05/1.512, allocations: 108.4 kB / 1.047 GB, free: 8.582 MB / 0.6667 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.411e-05/1.512, allocations: 7.906 kB / 1.047 GB, free: 8.574 MB / 0.6667 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.771e-05/1.512, allocations: 8.125 kB / 1.047 GB, free: 8.566 MB / 0.6667 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.838e-06/1.512, allocations: 4 kB / 1.047 GB, free: 8.562 MB / 0.6667 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.34e-06/1.512, allocations: 0 / 1.047 GB, free: 8.562 MB / 0.6667 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.779e-06/1.512, allocations: 0 / 1.047 GB, free: 8.562 MB / 0.6667 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005171/1.513, allocations: 419.2 kB / 1.047 GB, free: 8.125 MB / 0.6667 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.265e-06/1.513, allocations: 0 / 1.047 GB, free: 8.125 MB / 0.6667 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.104e-05/1.513, allocations: 11.94 kB / 1.047 GB, free: 8.113 MB / 0.6667 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.29e-06/1.513, allocations: 4 kB / 1.047 GB, free: 8.109 MB / 0.6667 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.505e-06/1.513, allocations: 4 kB / 1.047 GB, free: 8.105 MB / 0.6667 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.964e-06/1.513, allocations: 0 / 1.047 GB, free: 8.105 MB / 0.6667 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.791e-06/1.513, allocations: 4 kB / 1.047 GB, free: 8.102 MB / 0.6667 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0001569/1.513, allocations: 115.6 kB / 1.048 GB, free: 7.961 MB / 0.6667 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.0002923/1.513, allocations: 0.4902 MB / 1.048 GB, free: 7.441 MB / 0.6667 GB Notification: Performance of postOpt removeConstants (simulation): time 7.453e-05/1.513, allocations: 88.52 kB / 1.048 GB, free: 7.34 MB / 0.6667 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.89e-05/1.513, allocations: 8 kB / 1.048 GB, free: 7.332 MB / 0.6667 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.424e-05/1.513, allocations: 3.906 kB / 1.048 GB, free: 7.328 MB / 0.6667 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.367e-05/1.514, allocations: 0 / 1.048 GB, free: 7.328 MB / 0.6667 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.217e-06/1.514, allocations: 7.984 kB / 1.048 GB, free: 7.32 MB / 0.6667 GB Notification: Performance of sort global known variables: time 9.809e-05/1.514, allocations: 100.7 kB / 1.048 GB, free: 7.23 MB / 0.6667 GB Notification: Performance of remove unused functions: time 0.002233/1.516, allocations: 63.67 kB / 1.048 GB, free: 7.168 MB / 0.6667 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.0001579/1.516, allocations: 98.88 kB / 1.048 GB, free: 7.066 MB / 0.6667 GB Notification: Performance of simCode: created initialization part: time 0.0002969/1.516, allocations: 94.48 kB / 1.048 GB, free: 6.988 MB / 0.6667 GB Notification: Performance of simCode: created event and clocks part: time 3.056e-06/1.516, allocations: 3.938 kB / 1.048 GB, free: 6.984 MB / 0.6667 GB Notification: Performance of simCode: created simulation system equations: time 3.822e-05/1.516, allocations: 19.67 kB / 1.049 GB, free: 6.969 MB / 0.6667 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000294/1.517, allocations: 20.36 kB / 1.049 GB, free: 6.953 MB / 0.6667 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000559/1.517, allocations: 164.8 kB / 1.049 GB, free: 6.777 MB / 0.6667 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004012/1.518, allocations: 0.7386 MB / 1.049 GB, free: 6.02 MB / 0.6667 GB Notification: Performance of SimCode: time 1.082e-06/1.518, allocations: 0 / 1.049 GB, free: 6.02 MB / 0.6667 GB