Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/../OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Buildings_6.0.0_Buildings.Electrical.DC.Lines.Examples.Resistance.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.Lines.Examples.Resistance,fileNamePrefix="Buildings_6_0_0_Buildings_Electrical_DC_Lines_Examples_Resistance",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 3.813/3.813, allocations: 433 MB / 440.3 MB, free: 4.805 MB / 346.7 MB Notification: Performance of FrontEnd - loaded program: time 0.5455/4.359, allocations: 104.3 MB / 0.5319 GB, free: 13.01 MB / 442.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2459/4.605, allocations: 98.73 MB / 0.6283 GB, free: 9.801 MB / 0.5105 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.2983/4.903, allocations: 149.8 MB / 0.7746 GB, free: 3.805 MB / 0.6511 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003418/4.904, allocations: 87.59 kB / 0.7746 GB, free: 3.723 MB / 0.6511 GB [/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/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/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: 50 * Number of variables: 50 Notification: Performance of Generate backend data structure: time 0.4471/5.351, allocations: 11.37 MB / 0.7857 GB, free: 146.2 MB / 0.6511 GB Notification: Performance of prepare preOptimizeDAE: time 5.933e-05/5.351, allocations: 9.031 kB / 0.7858 GB, free: 146.2 MB / 0.6511 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001259/5.352, allocations: 81.11 kB / 0.7858 GB, free: 146.2 MB / 0.6511 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005021/5.352, allocations: 246.9 kB / 0.7861 GB, free: 146 MB / 0.6511 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.059e-05/5.353, allocations: 6.531 kB / 0.7861 GB, free: 146 MB / 0.6511 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.572e-05/5.353, allocations: 17.98 kB / 0.7861 GB, free: 146 MB / 0.6511 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0005372/5.353, allocations: 170.4 kB / 0.7863 GB, free: 146 MB / 0.6511 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006328/5.354, allocations: 264.8 kB / 0.7865 GB, free: 145.9 MB / 0.6511 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.55e-05/5.354, allocations: 0 / 0.7865 GB, free: 145.9 MB / 0.6511 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.878e-05/5.354, allocations: 1.25 kB / 0.7865 GB, free: 145.9 MB / 0.6511 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.314e-05/5.354, allocations: 15.5 kB / 0.7865 GB, free: 145.9 MB / 0.6511 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002063/5.356, allocations: 1.409 MB / 0.7879 GB, free: 144.7 MB / 0.6511 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002964/5.356, allocations: 91.5 kB / 0.788 GB, free: 144.7 MB / 0.6511 GB Notification: Performance of preOpt resolveLoops (simulation): time 8.933e-05/5.356, allocations: 31 kB / 0.788 GB, free: 144.7 MB / 0.6511 GB Notification: Performance of preOpt evalFunc (simulation): time 1.144e-05/5.356, allocations: 8.203 kB / 0.788 GB, free: 144.7 MB / 0.6511 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.757e-05/5.356, allocations: 35.88 kB / 0.7881 GB, free: 144.6 MB / 0.6511 GB Notification: Performance of pre-optimization done (n=7): time 2.505e-06/5.356, allocations: 0 / 0.7881 GB, free: 144.6 MB / 0.6511 GB Notification: Performance of matching and sorting (n=7): time 0.0004245/5.357, allocations: 115.6 kB / 0.7882 GB, free: 144.6 MB / 0.6511 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.239e-05/5.357, allocations: 51.41 kB / 0.7882 GB, free: 144.5 MB / 0.6511 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002101/5.357, allocations: 161.5 kB / 0.7884 GB, free: 144.4 MB / 0.6511 GB Notification: Performance of collectPreVariables (initialization): time 2.724e-05/5.357, allocations: 26.73 kB / 0.7884 GB, free: 144.4 MB / 0.6511 GB Notification: Performance of collectInitialEqns (initialization): time 9.77e-05/5.357, allocations: 160.7 kB / 0.7885 GB, free: 144.3 MB / 0.6511 GB Notification: Performance of collectInitialBindings (initialization): time 2.829e-05/5.357, allocations: 25.27 kB / 0.7886 GB, free: 144.2 MB / 0.6511 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.977e-06/5.357, allocations: 0 / 0.7886 GB, free: 144.2 MB / 0.6511 GB Notification: Performance of setup shared object (initialization): time 7.578e-05/5.357, allocations: 324.6 kB / 0.7889 GB, free: 143.9 MB / 0.6511 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001036/5.358, allocations: 43.09 kB / 0.7889 GB, free: 143.9 MB / 0.6511 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001353/5.358, allocations: 91.77 kB / 0.789 GB, free: 143.8 MB / 0.6511 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001419/5.358, allocations: 54.28 kB / 0.7891 GB, free: 143.8 MB / 0.6511 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.288e-06/5.358, allocations: 1.219 kB / 0.7891 GB, free: 143.8 MB / 0.6511 GB Notification: Performance of matching and sorting (n=18) (initialization): time 0.0004649/5.358, allocations: 174.5 kB / 0.7892 GB, free: 143.8 MB / 0.6511 GB Notification: Performance of prepare postOptimizeDAE: time 1.789e-05/5.358, allocations: 4.891 kB / 0.7892 GB, free: 143.8 MB / 0.6511 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.097e-06/5.358, allocations: 2.688 kB / 0.7892 GB, free: 143.8 MB / 0.6511 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002141/5.359, allocations: 29.7 kB / 0.7893 GB, free: 143.8 MB / 0.6511 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002152/5.359, allocations: 25.91 kB / 0.7893 GB, free: 143.8 MB / 0.6511 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001184/5.36, allocations: 1.253 MB / 0.7905 GB, free: 142.6 MB / 0.6511 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002297/5.36, allocations: 13.19 kB / 0.7905 GB, free: 142.6 MB / 0.6511 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.89e-05/5.36, allocations: 6.656 kB / 0.7905 GB, free: 142.6 MB / 0.6511 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 10 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (17): * Single equations (assignments): 16 * 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 9.082e-05/5.36, allocations: 111.6 kB / 0.7906 GB, free: 142.4 MB / 0.6511 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.629e-05/5.361, allocations: 14.55 kB / 0.7907 GB, free: 142.4 MB / 0.6511 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.667e-05/5.361, allocations: 18.12 kB / 0.7907 GB, free: 142.4 MB / 0.6511 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.769e-06/5.361, allocations: 1.609 kB / 0.7907 GB, free: 142.4 MB / 0.6511 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.851e-06/5.361, allocations: 1.844 kB / 0.7907 GB, free: 142.4 MB / 0.6511 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.669e-06/5.361, allocations: 0.7031 kB / 0.7907 GB, free: 142.4 MB / 0.6511 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003357/5.361, allocations: 217.5 kB / 0.7909 GB, free: 142.3 MB / 0.6511 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.465e-06/5.361, allocations: 0 / 0.7909 GB, free: 142.3 MB / 0.6511 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.875e-05/5.361, allocations: 8.656 kB / 0.7909 GB, free: 142.3 MB / 0.6511 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001701/5.361, allocations: 26.31 kB / 0.7909 GB, free: 142.3 MB / 0.6511 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.106e-05/5.361, allocations: 0 / 0.7909 GB, free: 142.3 MB / 0.6511 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001031/5.362, allocations: 1.256 MB / 0.7921 GB, free: 141 MB / 0.6511 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.697e-06/5.362, allocations: 7.875 kB / 0.7921 GB, free: 141 MB / 0.6511 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0003163/5.363, allocations: 204.1 kB / 0.7923 GB, free: 140.9 MB / 0.6511 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.0003747/5.363, allocations: 0.584 MB / 0.7929 GB, free: 140.4 MB / 0.6511 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001028/5.363, allocations: 101.6 kB / 0.793 GB, free: 140.3 MB / 0.6511 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.151e-05/5.363, allocations: 0 / 0.793 GB, free: 140.3 MB / 0.6511 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001945/5.363, allocations: 4.312 kB / 0.793 GB, free: 140.3 MB / 0.6511 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.183e-05/5.364, allocations: 4.062 kB / 0.793 GB, free: 140.3 MB / 0.6511 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.067e-05/5.364, allocations: 6.297 kB / 0.793 GB, free: 140.3 MB / 0.6511 GB Notification: Performance of sort global known variables: time 0.0001373/5.364, allocations: 130.3 kB / 0.7931 GB, free: 140.2 MB / 0.6511 GB Notification: Performance of remove unused functions: time 0.00307/5.367, allocations: 52.19 kB / 0.7932 GB, free: 140.2 MB / 0.6511 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (6): * Single equations (assignments): 5 * 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.0001997/5.367, allocations: 96.38 kB / 0.7933 GB, free: 140.1 MB / 0.6511 GB Notification: Performance of simCode: created initialization part: time 0.0005688/5.368, allocations: 192.8 kB / 0.7935 GB, free: 140 MB / 0.6511 GB Notification: Performance of simCode: created event and clocks part: time 4.258e-06/5.368, allocations: 0.5625 kB / 0.7935 GB, free: 140 MB / 0.6511 GB Notification: Performance of simCode: created simulation system equations: time 0.0002085/5.368, allocations: 142.1 kB / 0.7936 GB, free: 139.9 MB / 0.6511 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004039/5.368, allocations: 24.31 kB / 0.7936 GB, free: 139.9 MB / 0.6511 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009202/5.369, allocations: 213 kB / 0.7938 GB, free: 139.8 MB / 0.6511 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003754/5.37, allocations: 0.7694 MB / 0.7946 GB, free: 139.1 MB / 0.6511 GB Notification: Performance of SimCode: time 1.082e-06/5.37, allocations: 0 / 0.7946 GB, free: 139.1 MB / 0.6511 GB