Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/../OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Buildings_6.0.0_Buildings.Electrical.DC.Loads.Examples.Resistor.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.Loads.Examples.Resistor,fileNamePrefix="Buildings_6_0_0_Buildings_Electrical_DC_Loads_Examples_Resistor",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.573/4.573, allocations: 433 MB / 440.3 MB, free: 4.805 MB / 346.7 MB Notification: Performance of FrontEnd - loaded program: time 0.5457/5.118, allocations: 104.3 MB / 0.5319 GB, free: 13.02 MB / 442.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2501/5.368, allocations: 98.72 MB / 0.6283 GB, free: 9.801 MB / 0.5105 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.3063/5.675, allocations: 149.9 MB / 0.7747 GB, free: 3.641 MB / 0.6511 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003567/5.675, allocations: 99.56 kB / 0.7748 GB, free: 3.547 MB / 0.6511 GB [/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);. [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OMCompiler/build/lib/omlibrary/Buildings 6.0.0/Electrical/Transmission/BaseClasses/PartialTwoPortResistance.mo:13:3-13: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/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);. Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 78 * Number of variables: 78 Notification: Performance of Generate backend data structure: time 0.4616/6.137, allocations: 16.21 MB / 0.7906 GB, free: 105.7 MB / 0.6511 GB Notification: Performance of prepare preOptimizeDAE: time 5.179e-05/6.137, allocations: 8.953 kB / 0.7906 GB, free: 105.7 MB / 0.6511 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001885/6.139, allocations: 142.3 kB / 0.7908 GB, free: 105.7 MB / 0.6511 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007596/6.14, allocations: 290 kB / 0.7911 GB, free: 105.4 MB / 0.6511 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.783e-05/6.14, allocations: 10.59 kB / 0.7911 GB, free: 105.4 MB / 0.6511 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.615e-05/6.14, allocations: 15.38 kB / 0.7911 GB, free: 105.4 MB / 0.6511 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0008568/6.141, allocations: 287.1 kB / 0.7914 GB, free: 105.4 MB / 0.6511 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009885/6.142, allocations: 413 kB / 0.7918 GB, free: 105.3 MB / 0.6511 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.841e-05/6.142, allocations: 0 / 0.7918 GB, free: 105.3 MB / 0.6511 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.533e-05/6.142, allocations: 1.312 kB / 0.7918 GB, free: 105.3 MB / 0.6511 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.977e-05/6.142, allocations: 30.53 kB / 0.7918 GB, free: 105.3 MB / 0.6511 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003126/6.145, allocations: 2.116 MB / 0.7938 GB, free: 103.6 MB / 0.6511 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004529/6.146, allocations: 152.3 kB / 0.794 GB, free: 103.6 MB / 0.6511 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000387/6.146, allocations: 108.9 kB / 0.7941 GB, free: 103.6 MB / 0.6511 GB Notification: Performance of preOpt evalFunc (simulation): time 1.517e-05/6.146, allocations: 5.969 kB / 0.7941 GB, free: 103.6 MB / 0.6511 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.002e-05/6.146, allocations: 34.84 kB / 0.7941 GB, free: 103.6 MB / 0.6511 GB Notification: Performance of pre-optimization done (n=14): time 3.727e-06/6.146, allocations: 1.031 kB / 0.7941 GB, free: 103.6 MB / 0.6511 GB Notification: Performance of matching and sorting (n=14): time 0.0005755/6.147, allocations: 161.8 kB / 0.7943 GB, free: 103.5 MB / 0.6511 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.51e-05/6.147, allocations: 53.72 kB / 0.7943 GB, free: 103.4 MB / 0.6511 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002925/6.147, allocations: 198.9 kB / 0.7945 GB, free: 103.3 MB / 0.6511 GB Notification: Performance of collectPreVariables (initialization): time 2.032e-05/6.147, allocations: 25.7 kB / 0.7946 GB, free: 103.3 MB / 0.6511 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001036/6.147, allocations: 197.6 kB / 0.7947 GB, free: 103.1 MB / 0.6511 GB Notification: Performance of collectInitialBindings (initialization): time 4.599e-05/6.147, allocations: 46.06 kB / 0.7948 GB, free: 103.1 MB / 0.6511 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.266e-05/6.147, allocations: 0 / 0.7948 GB, free: 103.1 MB / 0.6511 GB Notification: Performance of setup shared object (initialization): time 8.573e-05/6.147, allocations: 332.7 kB / 0.7951 GB, free: 102.8 MB / 0.6511 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001517/6.147, allocations: 55.61 kB / 0.7952 GB, free: 102.8 MB / 0.6511 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002226/6.148, allocations: 141.1 kB / 0.7953 GB, free: 102.7 MB / 0.6511 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000216/6.148, allocations: 75.69 kB / 0.7954 GB, free: 102.7 MB / 0.6511 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.47e-06/6.148, allocations: 1.062 kB / 0.7954 GB, free: 102.7 MB / 0.6511 GB Notification: Performance of matching and sorting (n=28) (initialization): time 0.0006743/6.149, allocations: 238.8 kB / 0.7956 GB, free: 102.6 MB / 0.6511 GB Notification: Performance of prepare postOptimizeDAE: time 2.002e-05/6.149, allocations: 4.906 kB / 0.7956 GB, free: 102.6 MB / 0.6511 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.18e-05/6.149, allocations: 3.188 kB / 0.7956 GB, free: 102.6 MB / 0.6511 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002195/6.149, allocations: 26.97 kB / 0.7956 GB, free: 102.6 MB / 0.6511 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004271/6.149, allocations: 51.91 kB / 0.7957 GB, free: 102.6 MB / 0.6511 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001187/6.151, allocations: 1.262 MB / 0.7969 GB, free: 101.4 MB / 0.6511 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003645/6.151, allocations: 20.05 kB / 0.7969 GB, free: 101.4 MB / 0.6511 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.756e-05/6.151, allocations: 12.33 kB / 0.7969 GB, free: 101.4 MB / 0.6511 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 13 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (27): * Single equations (assignments): 26 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001133/6.151, allocations: 118.7 kB / 0.7971 GB, free: 101.3 MB / 0.6511 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.026e-05/6.151, allocations: 21 kB / 0.7971 GB, free: 101.2 MB / 0.6511 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.361e-05/6.151, allocations: 25 kB / 0.7971 GB, free: 101.2 MB / 0.6511 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.188e-06/6.151, allocations: 1 kB / 0.7971 GB, free: 101.2 MB / 0.6511 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.516e-06/6.151, allocations: 2.531 kB / 0.7971 GB, free: 101.2 MB / 0.6511 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.24e-06/6.151, allocations: 0 / 0.7971 GB, free: 101.2 MB / 0.6511 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001343/6.153, allocations: 0.6352 MB / 0.7977 GB, free: 100.8 MB / 0.6511 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.183e-06/6.153, allocations: 1.062 kB / 0.7977 GB, free: 100.8 MB / 0.6511 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002069/6.153, allocations: 29.64 kB / 0.7978 GB, free: 100.8 MB / 0.6511 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001735/6.153, allocations: 27.44 kB / 0.7978 GB, free: 100.8 MB / 0.6511 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.901e-05/6.153, allocations: 3.875 kB / 0.7978 GB, free: 100.8 MB / 0.6511 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001067/6.154, allocations: 1.26 MB / 0.799 GB, free: 99.61 MB / 0.6511 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.163e-06/6.154, allocations: 6.656 kB / 0.799 GB, free: 99.61 MB / 0.6511 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0005196/6.155, allocations: 380.8 kB / 0.7994 GB, free: 99.3 MB / 0.6511 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.0005421/6.155, allocations: 0.7358 MB / 0.8001 GB, free: 98.63 MB / 0.6511 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001652/6.156, allocations: 117.9 kB / 0.8002 GB, free: 98.52 MB / 0.6511 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.667e-05/6.156, allocations: 2.219 kB / 0.8002 GB, free: 98.52 MB / 0.6511 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002981/6.156, allocations: 12.62 kB / 0.8002 GB, free: 98.52 MB / 0.6511 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.387e-05/6.156, allocations: 15.84 kB / 0.8002 GB, free: 98.51 MB / 0.6511 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.042e-05/6.156, allocations: 5.25 kB / 0.8002 GB, free: 98.51 MB / 0.6511 GB Notification: Performance of sort global known variables: time 0.0002007/6.156, allocations: 149.8 kB / 0.8004 GB, free: 98.43 MB / 0.6511 GB Notification: Performance of remove unused functions: time 0.001484/6.158, allocations: 74.72 kB / 0.8005 GB, free: 98.42 MB / 0.6511 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 7 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (14): * Single equations (assignments): 13 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001562/6.158, allocations: 102.4 kB / 0.8006 GB, free: 98.33 MB / 0.6511 GB Notification: Performance of simCode: created initialization part: time 0.000711/6.159, allocations: 254.4 kB / 0.8008 GB, free: 98.21 MB / 0.6511 GB Notification: Performance of simCode: created event and clocks part: time 3.937e-06/6.159, allocations: 1 kB / 0.8008 GB, free: 98.21 MB / 0.6511 GB Notification: Performance of simCode: created simulation system equations: time 0.0002958/6.159, allocations: 169.8 kB / 0.801 GB, free: 98.11 MB / 0.6511 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005491/6.159, allocations: 49.19 kB / 0.801 GB, free: 98.1 MB / 0.6511 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001173/6.161, allocations: 375.5 kB / 0.8014 GB, free: 97.92 MB / 0.6511 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005207/6.161, allocations: 0.8214 MB / 0.8022 GB, free: 97.21 MB / 0.6511 GB Notification: Performance of SimCode: time 1.383e-06/6.161, allocations: 0 / 0.8022 GB, free: 97.21 MB / 0.6511 GB