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.WindTurbine.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.WindTurbine,fileNamePrefix="Buildings_6_0_0_Buildings_Electrical_DC_Sources_Examples_WindTurbine",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Buildings): time 4.232/4.232, allocations: 433.2 MB / 440.8 MB, free: 4.543 MB / 346.7 MB Notification: Performance of FrontEnd - loaded program: time 2.67e-05/2.685e-05, allocations: 2.875 kB / 0.5325 GB, free: 12.79 MB / 442.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2783/0.2783, allocations: 98.75 MB / 0.6289 GB, free: 9.098 MB / 0.5105 GB Notification: Performance of FrontEnd - scodeFlatten: time 7.197/7.475, allocations: 2.214 GB / 2.843 GB, free: 121.9 MB / 0.823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000329/7.475, allocations: 99 kB / 2.843 GB, free: 121.8 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: Performance of FrontEnd - DAE generated: time 0.2013/7.677, allocations: 48.4 MB / 2.89 GB, free: 81.55 MB / 0.823 GB Notification: Performance of FrontEnd: time 2.334e-06/7.677, allocations: 0 / 2.89 GB, free: 81.55 MB / 0.823 GB Notification: Performance of Transformations before backend: time 0.0001144/7.677, allocations: 35.5 kB / 2.89 GB, free: 81.52 MB / 0.823 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 253 * Number of variables: 253 Notification: Performance of Generate backend data structure: time 0.003223/7.68, allocations: 1.365 MB / 2.892 GB, free: 80.16 MB / 0.823 GB Notification: Performance of prepare preOptimizeDAE: time 5.089e-05/7.68, allocations: 8.031 kB / 2.892 GB, free: 80.15 MB / 0.823 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004044/7.684, allocations: 389.5 kB / 2.892 GB, free: 79.77 MB / 0.823 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002353/7.687, allocations: 0.7283 MB / 2.893 GB, free: 79.13 MB / 0.823 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.122e-05/7.687, allocations: 32.69 kB / 2.893 GB, free: 79.1 MB / 0.823 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000196/7.687, allocations: 56 kB / 2.893 GB, free: 79.05 MB / 0.823 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.003298/7.69, allocations: 1.256 MB / 2.894 GB, free: 78.11 MB / 0.823 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002499/7.693, allocations: 1.01 MB / 2.895 GB, free: 77.32 MB / 0.823 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.751e-05/7.693, allocations: 3.938 kB / 2.895 GB, free: 77.31 MB / 0.823 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000149/7.693, allocations: 11.98 kB / 2.895 GB, free: 77.3 MB / 0.823 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.997e-05/7.693, allocations: 44.94 kB / 2.895 GB, free: 77.26 MB / 0.823 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01021/7.703, allocations: 4.242 MB / 2.899 GB, free: 73.61 MB / 0.823 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002132/7.706, allocations: 0.8018 MB / 2.9 GB, free: 73.05 MB / 0.823 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008088/7.706, allocations: 319.1 kB / 2.9 GB, free: 72.74 MB / 0.823 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0008858/7.707, allocations: 482.2 kB / 2.901 GB, free: 72.18 MB / 0.823 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0009751/7.708, allocations: 470.3 kB / 2.901 GB, free: 71.69 MB / 0.823 GB Notification: Performance of pre-optimization done (n=80): time 4.007e-06/7.708, allocations: 0 / 2.901 GB, free: 71.69 MB / 0.823 GB Notification: Performance of matching and sorting (n=80): time 0.007715/7.716, allocations: 1.097 MB / 2.902 GB, free: 70.58 MB / 0.823 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001148/7.716, allocations: 317.2 kB / 2.903 GB, free: 70.2 MB / 0.823 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001315/7.717, allocations: 0.7189 MB / 2.903 GB, free: 69.47 MB / 0.823 GB Notification: Performance of collectPreVariables (initialization): time 0.0001333/7.718, allocations: 25.7 kB / 2.903 GB, free: 69.44 MB / 0.823 GB Notification: Performance of collectInitialEqns (initialization): time 0.0004707/7.718, allocations: 0.4958 MB / 2.904 GB, free: 68.93 MB / 0.823 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002503/7.718, allocations: 248.2 kB / 2.904 GB, free: 68.69 MB / 0.823 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.174e-05/7.718, allocations: 64 / 2.904 GB, free: 68.69 MB / 0.823 GB Notification: Performance of setup shared object (initialization): time 0.0001348/7.719, allocations: 398.7 kB / 2.905 GB, free: 68.29 MB / 0.823 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006076/7.719, allocations: 249.5 kB / 2.905 GB, free: 68.05 MB / 0.823 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000741/7.72, allocations: 428.1 kB / 2.905 GB, free: 67.57 MB / 0.823 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.006345/7.726, allocations: 0.6873 MB / 2.906 GB, free: 66.88 MB / 0.823 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.156e-05/7.726, allocations: 0 / 2.906 GB, free: 66.88 MB / 0.823 GB Notification: Performance of matching and sorting (n=98) (initialization): time 0.007911/7.734, allocations: 1.226 MB / 2.907 GB, free: 65.64 MB / 0.823 GB Notification: Performance of prepare postOptimizeDAE: time 0.0002611/7.735, allocations: 1.05 MB / 2.908 GB, free: 64.5 MB / 0.823 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.211e-05/7.735, allocations: 0 / 2.908 GB, free: 64.5 MB / 0.823 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002286/7.735, allocations: 28.84 kB / 2.908 GB, free: 64.47 MB / 0.823 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001573/7.737, allocations: 187.8 kB / 2.908 GB, free: 64.29 MB / 0.823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0003467/7.737, allocations: 0.5406 MB / 2.909 GB, free: 63.72 MB / 0.823 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001433/7.738, allocations: 95.16 kB / 2.909 GB, free: 63.62 MB / 0.823 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001122/7.738, allocations: 35.98 kB / 2.909 GB, free: 63.59 MB / 0.823 GB Notification: Performance of prepare postOptimizeDAE: time 1.187e-05/7.738, allocations: 8.062 kB / 2.909 GB, free: 63.58 MB / 0.823 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.007344/7.746, allocations: 1.107 MB / 2.91 GB, free: 62.47 MB / 0.823 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.137e-05/7.746, allocations: 4 kB / 2.91 GB, free: 62.47 MB / 0.823 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.517e-05/7.746, allocations: 8 kB / 2.91 GB, free: 62.46 MB / 0.823 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00161/7.748, allocations: 196 kB / 2.91 GB, free: 62.27 MB / 0.823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.131e-05/7.748, allocations: 15.98 kB / 2.91 GB, free: 62.25 MB / 0.823 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001371/7.749, allocations: 75.39 kB / 2.91 GB, free: 62.18 MB / 0.823 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001121/7.749, allocations: 39.98 kB / 2.91 GB, free: 62.14 MB / 0.823 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 11 * 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 (97): * Single equations (assignments): 93 * Array equations: 0 * Algorithm blocks: 3 * 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.0003115/7.749, allocations: 136.7 kB / 2.91 GB, free: 62 MB / 0.823 GB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.007578/7.757, allocations: 1.093 MB / 2.912 GB, free: 60.9 MB / 0.823 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002038/7.757, allocations: 94.83 kB / 2.912 GB, free: 60.8 MB / 0.823 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008319/7.766, allocations: 1.291 MB / 2.913 GB, free: 59.5 MB / 0.823 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.553e-05/7.766, allocations: 8 kB / 2.913 GB, free: 59.49 MB / 0.823 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.926e-06/7.766, allocations: 11.94 kB / 2.913 GB, free: 59.48 MB / 0.823 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.434e-05/7.766, allocations: 3.984 kB / 2.913 GB, free: 59.47 MB / 0.823 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01004/7.776, allocations: 2.52 MB / 2.915 GB, free: 56.88 MB / 0.823 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.638e-06/7.776, allocations: 0 / 2.915 GB, free: 56.88 MB / 0.823 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001434/7.777, allocations: 171.9 kB / 2.916 GB, free: 56.71 MB / 0.823 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001577/7.777, allocations: 32.8 kB / 2.916 GB, free: 56.68 MB / 0.823 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.806e-05/7.778, allocations: 15.98 kB / 2.916 GB, free: 56.66 MB / 0.823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008927/7.778, allocations: 1.236 MB / 2.917 GB, free: 55.31 MB / 0.823 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.709e-06/7.778, allocations: 4.031 kB / 2.917 GB, free: 55.3 MB / 0.823 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007625/7.786, allocations: 1.323 MB / 2.918 GB, free: 53.92 MB / 0.823 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0006843/7.787, allocations: 323.6 kB / 2.918 GB, free: 53.59 MB / 0.823 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001999/7.787, allocations: 7.984 kB / 2.918 GB, free: 53.58 MB / 0.823 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001278/7.788, allocations: 63.94 kB / 2.918 GB, free: 53.52 MB / 0.823 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001702/7.789, allocations: 68.64 kB / 2.919 GB, free: 53.45 MB / 0.823 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000103/7.789, allocations: 31.98 kB / 2.919 GB, free: 53.41 MB / 0.823 GB Notification: Performance of sorting global known variables: time 0.0009579/7.79, allocations: 0.5538 MB / 2.919 GB, free: 52.86 MB / 0.823 GB Notification: Performance of sort global known variables: time 7.12e-07/7.79, allocations: 4 kB / 2.919 GB, free: 52.86 MB / 0.823 GB Notification: Performance of remove unused functions: time 0.002065/7.792, allocations: 0.5565 MB / 2.92 GB, free: 52.3 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 (88): * Single equations (assignments): 85 * 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.009688/7.801, allocations: 2.637 MB / 2.922 GB, free: 49.67 MB / 0.823 GB Notification: Performance of simCode: created initialization part: time 0.002781/7.804, allocations: 1.391 MB / 2.924 GB, free: 48.2 MB / 0.823 GB Notification: Performance of simCode: created event and clocks part: time 8.606e-06/7.804, allocations: 3.938 kB / 2.924 GB, free: 48.2 MB / 0.823 GB Notification: Performance of simCode: created simulation system equations: time 0.0009372/7.805, allocations: 474 kB / 2.924 GB, free: 47.73 MB / 0.823 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001758/7.807, allocations: 205.3 kB / 2.924 GB, free: 47.54 MB / 0.823 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005057/7.812, allocations: 1.725 MB / 2.926 GB, free: 45.76 MB / 0.823 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007472/7.813, allocations: 1.139 MB / 2.927 GB, free: 44.59 MB / 0.823 GB Notification: Performance of simCode: alias equations: time 0.003327/7.816, allocations: 0.5369 MB / 2.928 GB, free: 44.04 MB / 0.823 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000942/7.817, allocations: 407.3 kB / 2.928 GB, free: 43.64 MB / 0.823 GB Notification: Performance of SimCode: time 1.563e-06/7.817, allocations: 0 / 2.928 GB, free: 43.64 MB / 0.823 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.08745/7.905, allocations: 22.21 MB / 2.95 GB, free: 21.57 MB / 0.823 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002257/7.905, allocations: 180 kB / 2.95 GB, free: 21.38 MB / 0.823 GB Notification: Performance of buildModelFMU: Generate platform static: time 3.62/11.53, allocations: 0 / 2.95 GB, free: 21.38 MB / 0.823 GB