Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/../OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Buildings_6.0.0_Buildings.Electrical.DC.Sensors.Examples.GeneralizedSensor.conf.json Using package ModelicaServices with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.2/package.mo) Using package Complex with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OMCompiler/build/lib/omlibrary/Complex 3.2.2.mo) Using package Modelica with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/package.mo) Using package Buildings with version 6.0.0 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OMCompiler/build/lib/omlibrary/Buildings 6.0.0/package.mo) Running command: "" <> buildModelFMU(Buildings.Electrical.DC.Sensors.Examples.GeneralizedSensor,fileNamePrefix="Buildings_6_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 loadModel(Buildings): time 4.527/4.527, allocations: 433 MB / 440.3 MB, free: 24.71 MB / 354.8 MB Notification: Performance of FrontEnd - loaded program: time 0.2422/4.769, allocations: 104.3 MB / 0.5319 GB, free: 4.496 MB / 434.8 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5926/5.362, allocations: 98.69 MB / 0.6283 GB, free: 0.6289 MB / 0.5027 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.3004/5.663, allocations: 145.7 MB / 0.7706 GB, free: 15.37 MB / 0.6433 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003542/5.663, allocations: 87.95 kB / 0.7707 GB, free: 15.28 MB / 0.6433 GB [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OMCompiler/build/lib/omlibrary/Buildings 6.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);. [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OMCompiler/build/lib/omlibrary/Buildings 6.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.0443/5.707, allocations: 9.524 MB / 0.78 GB, free: 5.582 MB / 0.6433 GB Notification: Performance of prepare preOptimizeDAE: time 5.903e-05/5.707, allocations: 8 kB / 0.78 GB, free: 5.574 MB / 0.6433 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001111/5.709, allocations: 51.75 kB / 0.78 GB, free: 5.523 MB / 0.6433 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005281/5.709, allocations: 214.8 kB / 0.7802 GB, free: 5.273 MB / 0.6433 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.807e-05/5.709, allocations: 7.906 kB / 0.7802 GB, free: 5.266 MB / 0.6433 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.365e-05/5.709, allocations: 8 kB / 0.7802 GB, free: 5.258 MB / 0.6433 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.000571/5.71, allocations: 132.2 kB / 0.7804 GB, free: 5.129 MB / 0.6433 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006566/5.71, allocations: 210.4 kB / 0.7806 GB, free: 4.902 MB / 0.6433 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.839e-05/5.711, allocations: 0 / 0.7806 GB, free: 4.902 MB / 0.6433 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.52e-05/5.711, allocations: 0 / 0.7806 GB, free: 4.902 MB / 0.6433 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.187e-05/5.711, allocations: 16.28 kB / 0.7806 GB, free: 4.887 MB / 0.6433 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002578/5.713, allocations: 1.159 MB / 0.7817 GB, free: 3.59 MB / 0.6433 GB Notification: Performance of preOpt comSubExp (simulation): time 9.061e-05/5.713, allocations: 26.58 kB / 0.7817 GB, free: 3.555 MB / 0.6433 GB Notification: Performance of preOpt resolveLoops (simulation): time 6.791e-05/5.714, allocations: 8.859 kB / 0.7818 GB, free: 3.543 MB / 0.6433 GB Notification: Performance of preOpt evalFunc (simulation): time 1.017e-05/5.714, allocations: 0 / 0.7818 GB, free: 3.543 MB / 0.6433 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.078e-05/5.714, allocations: 42.64 kB / 0.7818 GB, free: 3.492 MB / 0.6433 GB Notification: Performance of pre-optimization done (n=3): time 7.084e-06/5.714, allocations: 0 / 0.7818 GB, free: 3.492 MB / 0.6433 GB Notification: Performance of matching and sorting (n=3): time 0.0002761/5.714, allocations: 57.44 kB / 0.7819 GB, free: 3.43 MB / 0.6433 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.836e-05/5.714, allocations: 59.41 kB / 0.7819 GB, free: 3.359 MB / 0.6433 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002421/5.714, allocations: 127.6 kB / 0.782 GB, free: 3.227 MB / 0.6433 GB Notification: Performance of collectPreVariables (initialization): time 2.275e-05/5.714, allocations: 25.7 kB / 0.7821 GB, free: 3.195 MB / 0.6433 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001323/5.714, allocations: 147.2 kB / 0.7822 GB, free: 3.047 MB / 0.6433 GB Notification: Performance of collectInitialBindings (initialization): time 2.559e-05/5.715, allocations: 15.89 kB / 0.7822 GB, free: 3.031 MB / 0.6433 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.062e-05/5.715, allocations: 0 / 0.7822 GB, free: 3.031 MB / 0.6433 GB Notification: Performance of setup shared object (initialization): time 0.000168/5.715, allocations: 314.8 kB / 0.7825 GB, free: 2.715 MB / 0.6433 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.495e-05/5.715, allocations: 19.98 kB / 0.7825 GB, free: 2.695 MB / 0.6433 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001646/5.715, allocations: 81.45 kB / 0.7826 GB, free: 2.582 MB / 0.6433 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001548/5.715, allocations: 39.91 kB / 0.7826 GB, free: 2.543 MB / 0.6433 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.43e-06/5.715, allocations: 3.938 kB / 0.7827 GB, free: 2.539 MB / 0.6433 GB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0004305/5.716, allocations: 113.4 kB / 0.7828 GB, free: 2.422 MB / 0.6433 GB Notification: Performance of prepare postOptimizeDAE: time 0.000564/5.716, allocations: 0.9729 MB / 0.7837 GB, free: 1.375 MB / 0.6433 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.183e-05/5.716, allocations: 0 / 0.7837 GB, free: 1.375 MB / 0.6433 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.782e-05/5.716, allocations: 4 kB / 0.7837 GB, free: 1.371 MB / 0.6433 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003275/5.717, allocations: 31.92 kB / 0.7837 GB, free: 1.34 MB / 0.6433 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.285e-05/5.717, allocations: 4 kB / 0.7837 GB, free: 1.336 MB / 0.6433 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002127/5.717, allocations: 15.75 kB / 0.7838 GB, free: 1.32 MB / 0.6433 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.782e-05/5.717, allocations: 8 kB / 0.7838 GB, free: 1.312 MB / 0.6433 GB Notification: Performance of prepare postOptimizeDAE: time 1.728e-05/5.717, allocations: 4 kB / 0.7838 GB, free: 1.309 MB / 0.6433 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0003495/5.717, allocations: 75.78 kB / 0.7838 GB, free: 1.234 MB / 0.6433 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.473e-06/5.717, allocations: 4 kB / 0.7838 GB, free: 1.23 MB / 0.6433 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.719e-05/5.717, allocations: 7.984 kB / 0.7839 GB, free: 1.223 MB / 0.6433 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002284/5.718, allocations: 23.94 kB / 0.7839 GB, free: 1.199 MB / 0.6433 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.109e-05/5.718, allocations: 4 kB / 0.7839 GB, free: 1.195 MB / 0.6433 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001571/5.718, allocations: 11.84 kB / 0.7839 GB, free: 1.184 MB / 0.6433 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.154e-05/5.718, allocations: 4.312 kB / 0.7839 GB, free: 1.18 MB / 0.6433 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.0001406/5.718, allocations: 116.9 kB / 0.784 GB, free: 1.059 MB / 0.6433 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.377e-05/5.718, allocations: 11.91 kB / 0.784 GB, free: 1.047 MB / 0.6433 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.04e-05/5.718, allocations: 4.125 kB / 0.784 GB, free: 1.043 MB / 0.6433 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.891e-06/5.718, allocations: 0 / 0.784 GB, free: 1.043 MB / 0.6433 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.853e-06/5.718, allocations: 4 kB / 0.784 GB, free: 1.039 MB / 0.6433 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.761e-06/5.718, allocations: 0 / 0.784 GB, free: 1.039 MB / 0.6433 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008864/5.719, allocations: 416.8 kB / 0.7844 GB, free: 0.5781 MB / 0.6433 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.667e-06/5.719, allocations: 3.906 kB / 0.7844 GB, free: 0.5742 MB / 0.6433 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.963e-05/5.719, allocations: 8 kB / 0.7844 GB, free: 0.5664 MB / 0.6433 GB Notification: Performance of postOpt tearingSystem (simulation): time 9.167e-06/5.719, allocations: 0 / 0.7844 GB, free: 0.5664 MB / 0.6433 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.735e-05/5.719, allocations: 4 kB / 0.7844 GB, free: 0.5625 MB / 0.6433 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.931e-06/5.72, allocations: 0 / 0.7844 GB, free: 0.5625 MB / 0.6433 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.278e-06/5.72, allocations: 3.938 kB / 0.7844 GB, free: 0.5586 MB / 0.6433 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0002493/5.72, allocations: 122.2 kB / 0.7846 GB, free: 412 kB / 0.6433 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.0004413/5.72, allocations: 498.6 kB / 0.785 GB, free: 15.88 MB / 0.6589 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001364/5.72, allocations: 89 kB / 0.7851 GB, free: 15.77 MB / 0.6589 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.577e-05/5.721, allocations: 7.844 kB / 0.7851 GB, free: 15.76 MB / 0.6589 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001401/5.721, allocations: 4 kB / 0.7851 GB, free: 15.76 MB / 0.6589 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.813e-05/5.721, allocations: 0 / 0.7851 GB, free: 15.76 MB / 0.6589 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.156e-06/5.721, allocations: 0 / 0.7851 GB, free: 15.76 MB / 0.6589 GB Notification: Performance of sort global known variables: time 0.0001714/5.721, allocations: 111.4 kB / 0.7852 GB, free: 15.65 MB / 0.6589 GB Notification: Performance of remove unused functions: time 0.003726/5.725, allocations: 67.62 kB / 0.7853 GB, free: 15.59 MB / 0.6589 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.0002443/5.725, allocations: 103.2 kB / 0.7854 GB, free: 15.48 MB / 0.6589 GB Notification: Performance of simCode: created initialization part: time 0.0004753/5.725, allocations: 87.8 kB / 0.7855 GB, free: 15.39 MB / 0.6589 GB Notification: Performance of simCode: created event and clocks part: time 4.999e-06/5.726, allocations: 1.25 kB / 0.7855 GB, free: 15.39 MB / 0.6589 GB Notification: Performance of simCode: created simulation system equations: time 6.121e-05/5.726, allocations: 19.92 kB / 0.7855 GB, free: 15.37 MB / 0.6589 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004229/5.726, allocations: 12.8 kB / 0.7855 GB, free: 15.36 MB / 0.6589 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008237/5.727, allocations: 180.3 kB / 0.7857 GB, free: 15.16 MB / 0.6589 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005486/5.727, allocations: 0.7393 MB / 0.7864 GB, free: 14.39 MB / 0.6589 GB Notification: Performance of SimCode: time 1.403e-06/5.728, allocations: 0 / 0.7864 GB, free: 14.39 MB / 0.6589 GB