Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Modelica_3.2.1_cpp_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit.conf.json Using package ModelicaServices with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.1/package.mo) Using package Complex with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.1.mo) Using package Modelica with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.1/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.SimpleTriacCircuit,fileNamePrefix="Modelica_3_2_1_cpp_Modelica_Electrical_Analog_Examples_SimpleTriacCircuit",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.574/1.574, allocations: 171.1 MB / 186.7 MB, free: 1.133 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003436/0.0003436, allocations: 8 kB / 233.3 MB, free: 2.934 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08042/0.0808, allocations: 38.76 MB / 272.1 MB, free: 12.09 MB / 234.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3293/0.4102, allocations: 70.96 MB / 343.1 MB, free: 2.918 MB / 266.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002612/0.4105, allocations: 70.59 kB / 343.1 MB, free: 2.883 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.04075/0.4513, allocations: 8.303 MB / 351.4 MB, free: 11.74 MB / 282.7 MB Notification: Performance of FrontEnd: time 2.615e-06/0.4513, allocations: 0 / 351.4 MB, free: 11.74 MB / 282.7 MB Notification: Performance of Transformations before backend: time 4.313e-05/0.4514, allocations: 16.38 kB / 351.5 MB, free: 11.73 MB / 282.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 88 * Number of variables: 88 Notification: Performance of Generate backend data structure: time 0.003366/0.4547, allocations: 0.9099 MB / 352.4 MB, free: 10.8 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.77e-05/0.4548, allocations: 8.031 kB / 352.4 MB, free: 10.79 MB / 282.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001449/0.455, allocations: 75.91 kB / 352.4 MB, free: 10.73 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000186/0.4552, allocations: 55.34 kB / 352.5 MB, free: 10.67 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006913/0.4559, allocations: 378.7 kB / 352.9 MB, free: 10.32 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.554e-05/0.4559, allocations: 27 kB / 352.9 MB, free: 10.3 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001178/0.456, allocations: 37.44 kB / 352.9 MB, free: 10.28 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002214/0.4583, allocations: 0.5966 MB / 353.5 MB, free: 9.816 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.717e-05/0.4583, allocations: 0 / 353.5 MB, free: 9.816 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.677e-05/0.4584, allocations: 14 kB / 353.5 MB, free: 9.812 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.421e-05/0.4584, allocations: 8 kB / 353.6 MB, free: 9.805 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003121/0.4615, allocations: 0.6415 MB / 354.2 MB, free: 9.316 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005622/0.4672, allocations: 2.047 MB / 356.2 MB, free: 7.645 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007636/0.4749, allocations: 0.9566 MB / 357.2 MB, free: 6.875 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.393e-05/0.475, allocations: 7.938 kB / 357.2 MB, free: 6.867 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001842/0.4768, allocations: 426.1 kB / 357.6 MB, free: 6.523 MB / 282.7 MB Notification: Performance of pre-optimization done (n=39): time 2.986e-06/0.4768, allocations: 0 / 357.6 MB, free: 6.523 MB / 282.7 MB Notification: Performance of matching and sorting (n=39): time 0.01667/0.4935, allocations: 1.983 MB / 359.6 MB, free: 4.77 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.061e-05/0.4936, allocations: 85.11 kB / 359.7 MB, free: 4.668 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005806/0.4942, allocations: 331.2 kB / 360 MB, free: 4.402 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 9.136e-05/0.4943, allocations: 32.02 kB / 360 MB, free: 4.371 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002026/0.4946, allocations: 266 kB / 360.3 MB, free: 4.16 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001896/0.4948, allocations: 135.4 kB / 360.4 MB, free: 4.043 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.174e-05/0.4948, allocations: 7 kB / 360.4 MB, free: 4.043 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 0.0001374/0.495, allocations: 326.1 kB / 360.8 MB, free: 3.719 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00156/0.4965, allocations: 306.4 kB / 361.1 MB, free: 3.492 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00156/0.4981, allocations: 338.2 kB / 361.4 MB, free: 3.23 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001541/0.4997, allocations: 332.2 kB / 361.7 MB, free: 2.98 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.488e-06/0.4997, allocations: 4 kB / 361.7 MB, free: 2.977 MB / 282.7 MB Notification: Performance of matching and sorting (n=47) (initialization): time 0.004216/0.5039, allocations: 0.8813 MB / 362.6 MB, free: 2.281 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.015e-05/0.504, allocations: 37.31 kB / 362.6 MB, free: 2.242 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.205e-06/0.504, allocations: 0 / 362.6 MB, free: 2.242 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002061/0.5061, allocations: 419.5 kB / 363 MB, free: 1.914 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008204/0.5069, allocations: 99.05 kB / 363.1 MB, free: 1.82 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01533/0.5223, allocations: 3.6 MB / 366.7 MB, free: 14.82 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00126/0.5236, allocations: 103.2 kB / 366.8 MB, free: 14.73 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.461e-05/0.5237, allocations: 8 kB / 366.8 MB, free: 14.72 MB / 298.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 7 ($whenCondition1,simpleTriac.idealDiode.off,simpleTriac.idealDiode1.off,$PRE.pulseCurrent.signalSource.T_start,pulseCurrent.signalSource.T_start,$PRE.pulseCurrent.signalSource.count,pulseCurrent.signalSource.count) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (31): * Single equations (assignments): 29 * Array equations: 0 * Algorithm blocks: 1 * 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 {4 12} Notification: Performance of prepare postOptimizeDAE: time 0.0003819/0.524, allocations: 172 kB / 367 MB, free: 14.58 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001214/0.5242, allocations: 43.44 kB / 367.1 MB, free: 14.54 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001526/0.5243, allocations: 59.25 kB / 367.1 MB, free: 14.5 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.834e-06/0.5244, allocations: 4 kB / 367.1 MB, free: 14.5 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.613e-06/0.5244, allocations: 3.953 kB / 367.1 MB, free: 14.5 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.027e-05/0.5244, allocations: 3.984 kB / 367.1 MB, free: 14.49 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009503/0.5254, allocations: 0.5844 MB / 367.7 MB, free: 14.02 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.868e-06/0.5254, allocations: 0 / 367.7 MB, free: 14.02 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008035/0.5262, allocations: 83.92 kB / 367.8 MB, free: 13.93 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002014/0.5282, allocations: 425.5 kB / 368.2 MB, free: 13.6 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.641e-05/0.5283, allocations: 7.688 kB / 368.2 MB, free: 13.6 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01503/0.5433, allocations: 3.599 MB / 371.8 MB, free: 10.6 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.274e-06/0.5434, allocations: 0 / 371.8 MB, free: 10.6 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006084/0.5495, allocations: 1.287 MB / 373.1 MB, free: 9.605 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003393/0.5499, allocations: 178.2 kB / 373.3 MB, free: 9.445 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001293/0.55, allocations: 10.5 kB / 373.3 MB, free: 9.441 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001096/0.5511, allocations: 90.23 kB / 373.4 MB, free: 9.359 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002208/0.5513, allocations: 57.59 kB / 373.4 MB, free: 9.312 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.463e-05/0.5514, allocations: 11.98 kB / 373.4 MB, free: 9.301 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0004295/0.5518, allocations: 258.7 kB / 373.7 MB, free: 9.109 MB / 298.7 MB Notification: Performance of sort global known variables: time 5.01e-07/0.5519, allocations: 0 / 373.7 MB, free: 9.109 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0008824/0.5528, allocations: 165.5 kB / 373.9 MB, free: 8.961 MB / 298.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 3 (L.i,simpleTriac.thyristor.vControl,simpleTriac.thyristor1.vControl) * Number of discrete variables: 5 ($whenCondition1,simpleTriac.idealDiode.off,simpleTriac.idealDiode1.off,pulseCurrent.signalSource.T_start,pulseCurrent.signalSource.count) * Number of discrete states: 1 (pulseCurrent.signalSource.count) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (24): * Single equations (assignments): 21 * 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 {4 12} Notification: Performance of Backend phase and start with SimCode phase: time 0.006563/0.5593, allocations: 1.852 MB / 375.7 MB, free: 7.402 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.004391/0.5638, allocations: 0.9395 MB / 376.6 MB, free: 6.625 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 6.793e-06/0.5638, allocations: 0 / 376.6 MB, free: 6.625 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002597/0.5664, allocations: 0.5746 MB / 377.2 MB, free: 6.152 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006855/0.5671, allocations: 61.91 kB / 377.3 MB, free: 6.09 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01899/0.5862, allocations: 4.035 MB / 381.3 MB, free: 1.992 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005335/0.5867, allocations: 0.8436 MB / 382.2 MB, free: 1.125 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004474/0.5872, allocations: 151.4 kB / 382.3 MB, free: 0.9766 MB / 298.7 MB Notification: Performance of SimCode: time 9.51e-07/0.5872, allocations: 3.938 kB / 382.3 MB, free: 0.9727 MB / 298.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.705/3.292, allocations: 10.35 MB / 392.7 MB, free: 6.637 MB / 314.7 MB