Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/../OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Buildings_6.0.0_Buildings.Electrical.DC.Sources.Examples.PVSimple.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.Sources.Examples.PVSimple,fileNamePrefix="Buildings_6_0_0_Buildings_Electrical_DC_Sources_Examples_PVSimple",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.982/3.982, allocations: 433 MB / 440.3 MB, free: 4.809 MB / 346.7 MB Notification: Performance of FrontEnd - loaded program: time 0.6049/4.587, allocations: 104.3 MB / 0.5319 GB, free: 13 MB / 442.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2359/4.823, allocations: 98.74 MB / 0.6283 GB, free: 9.75 MB / 0.5105 GB Notification: Performance of FrontEnd - scodeFlatten: time 5.483/10.31, allocations: 2.218 GB / 2.846 GB, free: 129.9 MB / 0.823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003272/10.31, allocations: 97.83 kB / 2.846 GB, free: 129.9 MB / 0.823 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: 369 * Number of variables: 369 Notification: Performance of Generate backend data structure: time 0.2995/10.61, allocations: 69.18 MB / 2.914 GB, free: 70.52 MB / 0.823 GB Notification: Performance of prepare preOptimizeDAE: time 4.458e-05/10.61, allocations: 12 kB / 2.914 GB, free: 70.51 MB / 0.823 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01277/10.62, allocations: 1.028 MB / 2.915 GB, free: 69.48 MB / 0.823 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002544/10.62, allocations: 0.8299 MB / 2.916 GB, free: 68.61 MB / 0.823 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.454e-05/10.62, allocations: 52 kB / 2.916 GB, free: 68.55 MB / 0.823 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00032/10.62, allocations: 80 kB / 2.916 GB, free: 68.48 MB / 0.823 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.006118/10.63, allocations: 1.934 MB / 2.918 GB, free: 66.54 MB / 0.823 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004713/10.63, allocations: 1.551 MB / 2.919 GB, free: 64.92 MB / 0.823 GB Notification: Performance of preOpt findStateOrder (simulation): time 4.632e-05/10.63, allocations: 0 / 2.919 GB, free: 64.92 MB / 0.823 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002632/10.63, allocations: 0 / 2.919 GB, free: 64.92 MB / 0.823 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.25e-05/10.63, allocations: 66.72 kB / 2.919 GB, free: 64.86 MB / 0.823 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01894/10.65, allocations: 6.184 MB / 2.925 GB, free: 58.43 MB / 0.823 GB Notification: Performance of preOpt comSubExp (simulation): time 0.003533/10.66, allocations: 1.258 MB / 2.927 GB, free: 57.15 MB / 0.823 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001703/10.66, allocations: 0.6057 MB / 2.927 GB, free: 56.55 MB / 0.823 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001148/10.66, allocations: 490.4 kB / 2.928 GB, free: 55.98 MB / 0.823 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001934/10.66, allocations: 0.7858 MB / 2.928 GB, free: 55.16 MB / 0.823 GB Notification: Performance of pre-optimization done (n=128): time 4.679e-06/10.66, allocations: 0 / 2.928 GB, free: 55.16 MB / 0.823 GB Notification: Performance of matching and sorting (n=128): time 0.005532/10.67, allocations: 1.358 MB / 2.93 GB, free: 53.79 MB / 0.823 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.00011/10.67, allocations: 329.4 kB / 2.93 GB, free: 53.39 MB / 0.823 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001412/10.67, allocations: 0.6367 MB / 2.931 GB, free: 52.75 MB / 0.823 GB Notification: Performance of collectPreVariables (initialization): time 0.0004207/10.67, allocations: 25.7 kB / 2.931 GB, free: 52.72 MB / 0.823 GB Notification: Performance of collectInitialEqns (initialization): time 0.0004296/10.67, allocations: 471.8 kB / 2.931 GB, free: 52.25 MB / 0.823 GB Notification: Performance of collectInitialBindings (initialization): time 0.00048/10.67, allocations: 413.8 kB / 2.932 GB, free: 51.84 MB / 0.823 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001549/10.67, allocations: 0 / 2.932 GB, free: 51.84 MB / 0.823 GB Notification: Performance of setup shared object (initialization): time 0.0001567/10.67, allocations: 398.6 kB / 2.932 GB, free: 51.44 MB / 0.823 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001466/10.67, allocations: 490.6 kB / 2.932 GB, free: 50.96 MB / 0.823 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001755/10.67, allocations: 0.6571 MB / 2.933 GB, free: 50.24 MB / 0.823 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002766/10.68, allocations: 0.6777 MB / 2.934 GB, free: 49.57 MB / 0.823 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.124e-05/10.68, allocations: 4 kB / 2.934 GB, free: 49.56 MB / 0.823 GB Notification: Performance of matching and sorting (n=150) (initialization): time 0.005429/10.68, allocations: 1.49 MB / 2.935 GB, free: 48.06 MB / 0.823 GB Notification: Performance of prepare postOptimizeDAE: time 0.0002665/10.68, allocations: 1.052 MB / 2.936 GB, free: 46.93 MB / 0.823 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.581e-05/10.68, allocations: 4 kB / 2.936 GB, free: 46.92 MB / 0.823 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002598/10.68, allocations: 28.84 kB / 2.936 GB, free: 46.89 MB / 0.823 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004346/10.69, allocations: 351.6 kB / 2.937 GB, free: 46.55 MB / 0.823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0005503/10.69, allocations: 0.5522 MB / 2.937 GB, free: 45.97 MB / 0.823 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003414/10.69, allocations: 174.9 kB / 2.937 GB, free: 45.8 MB / 0.823 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004481/10.69, allocations: 55.95 kB / 2.937 GB, free: 45.74 MB / 0.823 GB Notification: Performance of prepare postOptimizeDAE: time 1.456e-05/10.69, allocations: 4 kB / 2.937 GB, free: 45.74 MB / 0.823 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.005557/10.7, allocations: 1.348 MB / 2.939 GB, free: 44.39 MB / 0.823 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.604e-05/10.7, allocations: 4 kB / 2.939 GB, free: 44.38 MB / 0.823 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.309e-05/10.7, allocations: 12.34 kB / 2.939 GB, free: 44.37 MB / 0.823 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004137/10.7, allocations: 351.5 kB / 2.939 GB, free: 44.03 MB / 0.823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.563e-05/10.7, allocations: 11.98 kB / 2.939 GB, free: 44.02 MB / 0.823 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003328/10.7, allocations: 167 kB / 2.939 GB, free: 43.85 MB / 0.823 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005074/10.7, allocations: 59.94 kB / 2.939 GB, free: 43.79 MB / 0.823 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 12 * Number of states: 0 () * Number of discrete variables: 6 ($whenCondition2,$whenCondition1,$PRE.weaDat.conTim1.tNext,weaDat.conTim1.tNext,$PRE.weaDat.conTim.tNext,weaDat.conTim.tNext) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (149): * Single equations (assignments): 146 * Array equations: 0 * Algorithm blocks: 2 * 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: 0 * Non-linear torn systems: 1 {1 1} Notification: Performance of prepare postOptimizeDAE: time 0.0005668/10.7, allocations: 132.6 kB / 2.939 GB, free: 43.66 MB / 0.823 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004729/10.71, allocations: 106.7 kB / 2.939 GB, free: 43.55 MB / 0.823 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007717/10.71, allocations: 1.787 MB / 2.941 GB, free: 41.75 MB / 0.823 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.917e-05/10.71, allocations: 16 kB / 2.941 GB, free: 41.73 MB / 0.823 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.15e-05/10.71, allocations: 0 / 2.941 GB, free: 41.73 MB / 0.823 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.83e-05/10.71, allocations: 3.984 kB / 2.941 GB, free: 41.73 MB / 0.823 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0102/10.72, allocations: 3.416 MB / 2.945 GB, free: 38.25 MB / 0.823 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.191e-05/10.72, allocations: 4 kB / 2.945 GB, free: 38.24 MB / 0.823 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003838/10.73, allocations: 323.7 kB / 2.945 GB, free: 37.93 MB / 0.823 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002176/10.73, allocations: 24.84 kB / 2.945 GB, free: 37.9 MB / 0.823 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003727/10.73, allocations: 27.97 kB / 2.945 GB, free: 37.87 MB / 0.823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001044/10.73, allocations: 1.224 MB / 2.946 GB, free: 36.53 MB / 0.823 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.739e-06/10.73, allocations: 4.031 kB / 2.946 GB, free: 36.52 MB / 0.823 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.005655/10.73, allocations: 1.611 MB / 2.948 GB, free: 34.86 MB / 0.823 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.005338/10.74, allocations: 2.006 MB / 2.95 GB, free: 32.79 MB / 0.823 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001464/10.74, allocations: 415.1 kB / 2.95 GB, free: 32.36 MB / 0.823 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005417/10.74, allocations: 7.984 kB / 2.95 GB, free: 32.36 MB / 0.823 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003222/10.75, allocations: 131.9 kB / 2.95 GB, free: 32.23 MB / 0.823 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003924/10.75, allocations: 73.2 kB / 2.95 GB, free: 32.16 MB / 0.823 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002958/10.75, allocations: 55.95 kB / 2.95 GB, free: 32.1 MB / 0.823 GB Notification: Performance of sort global known variables: time 0.001083/10.75, allocations: 0.5069 MB / 2.951 GB, free: 31.6 MB / 0.823 GB Notification: Performance of remove unused functions: time 0.005217/10.75, allocations: 0.7316 MB / 2.952 GB, free: 30.87 MB / 0.823 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 0 () * Number of discrete variables: 4 ($whenCondition2,$whenCondition1,weaDat.conTim1.tNext,weaDat.conTim.tNext) * Number of discrete states: 2 (weaDat.conTim1.tNext,weaDat.conTim.tNext) * Top-level inputs: 0 Notification: Strong component statistics for simulation (138): * Single equations (assignments): 135 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * 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: 0 * Non-linear torn systems: 1 {1 1} Notification: Performance of Backend phase and start with SimCode phase: time 0.002214/10.75, allocations: 0.5313 MB / 2.952 GB, free: 30.38 MB / 0.823 GB Notification: Performance of simCode: created initialization part: time 0.01015/10.76, allocations: 2.077 MB / 2.954 GB, free: 28.28 MB / 0.823 GB Notification: Performance of simCode: created event and clocks part: time 1.439e-05/10.76, allocations: 4.062 kB / 2.954 GB, free: 28.28 MB / 0.823 GB Notification: Performance of simCode: created simulation system equations: time 0.003228/10.77, allocations: 0.768 MB / 2.955 GB, free: 27.5 MB / 0.823 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002804/10.77, allocations: 198.6 kB / 2.955 GB, free: 27.31 MB / 0.823 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007939/10.78, allocations: 1.96 MB / 2.957 GB, free: 25.3 MB / 0.823 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002453/10.78, allocations: 1.413 MB / 2.958 GB, free: 23.86 MB / 0.823 GB Notification: Performance of SimCode: time 1.583e-06/10.78, allocations: 0 / 2.958 GB, free: 23.86 MB / 0.823 GB