Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Modelica_3.2.2_cpp_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit.conf.json Using package ModelicaServices with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.2/package.mo) Using package Complex with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.2.mo) Using package Modelica with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.SimpleTriacCircuit,fileNamePrefix="Modelica_3_2_2_cpp_Modelica_Electrical_Analog_Examples_SimpleTriacCircuit",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.997/1.997, allocations: 194.8 MB / 211.7 MB, free: 3.004 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003563/0.0003563, allocations: 8 kB / 264 MB, free: 13.49 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0935/0.0939, allocations: 44.51 MB / 308.5 MB, free: 0.918 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.407/0.501, allocations: 75.94 MB / 384.5 MB, free: 14.5 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003584/0.5014, allocations: 79.56 kB / 384.6 MB, free: 14.5 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.04778/0.5492, allocations: 8.262 MB / 392.8 MB, free: 13.59 MB / 314.7 MB Notification: Performance of FrontEnd: time 2.414e-06/0.5493, allocations: 4 kB / 392.8 MB, free: 13.58 MB / 314.7 MB Notification: Performance of Transformations before backend: time 4.117e-05/0.5493, allocations: 7.75 kB / 392.8 MB, free: 13.58 MB / 314.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.003974/0.5533, allocations: 0.9082 MB / 393.7 MB, free: 13.01 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.026e-05/0.5534, allocations: 7.5 kB / 393.8 MB, free: 13.01 MB / 314.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001945/0.5536, allocations: 74.45 kB / 393.8 MB, free: 12.97 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002055/0.5538, allocations: 58.31 kB / 393.9 MB, free: 12.94 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008079/0.5547, allocations: 373.6 kB / 394.2 MB, free: 12.69 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.401e-05/0.5547, allocations: 27.06 kB / 394.3 MB, free: 12.69 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001525/0.5549, allocations: 44.75 kB / 394.3 MB, free: 12.68 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002774/0.5577, allocations: 0.5856 MB / 394.9 MB, free: 12.59 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.162e-05/0.5577, allocations: 0 / 394.9 MB, free: 12.59 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001038/0.5578, allocations: 18.28 kB / 394.9 MB, free: 12.58 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.407e-05/0.5579, allocations: 7.812 kB / 394.9 MB, free: 12.58 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003903/0.5618, allocations: 0.6463 MB / 395.6 MB, free: 12.55 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00554/0.5674, allocations: 2.042 MB / 397.6 MB, free: 11.71 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00723/0.5746, allocations: 0.9628 MB / 398.6 MB, free: 11.64 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.626e-05/0.5747, allocations: 11.58 kB / 398.6 MB, free: 11.64 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001728/0.5765, allocations: 427.2 kB / 399 MB, free: 11.57 MB / 314.7 MB Notification: Performance of pre-optimization done (n=39): time 3.496e-06/0.5765, allocations: 3.938 kB / 399 MB, free: 11.56 MB / 314.7 MB Notification: Performance of matching and sorting (n=39): time 0.01589/0.5924, allocations: 1.98 MB / 401 MB, free: 11.32 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.273e-05/0.5925, allocations: 80.98 kB / 401.1 MB, free: 11.23 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000519/0.593, allocations: 318.7 kB / 401.4 MB, free: 11.12 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 9.082e-05/0.5931, allocations: 35.61 kB / 401.4 MB, free: 11.09 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001588/0.5933, allocations: 269.2 kB / 401.7 MB, free: 10.91 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001586/0.5935, allocations: 129 kB / 401.8 MB, free: 10.82 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.498e-05/0.5936, allocations: 13.78 kB / 401.8 MB, free: 10.82 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 6.551e-05/0.5936, allocations: 325.1 kB / 402.1 MB, free: 10.51 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001463/0.5951, allocations: 300.5 kB / 402.4 MB, free: 10.5 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001474/0.5966, allocations: 346.4 kB / 402.8 MB, free: 10.46 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001426/0.598, allocations: 329 kB / 403.1 MB, free: 10.41 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.859e-06/0.5981, allocations: 0 / 403.1 MB, free: 10.41 MB / 314.7 MB Notification: Performance of matching and sorting (n=47) (initialization): time 0.003874/0.6019, allocations: 0.8851 MB / 404 MB, free: 10.29 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.294e-05/0.602, allocations: 40.27 kB / 404 MB, free: 10.26 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.017e-06/0.602, allocations: 4 kB / 404 MB, free: 10.25 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001913/0.604, allocations: 416.2 kB / 404.4 MB, free: 10.22 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007566/0.6047, allocations: 98.3 kB / 404.5 MB, free: 10.21 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01435/0.6191, allocations: 3.604 MB / 408.1 MB, free: 8.512 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001234/0.6204, allocations: 104.4 kB / 408.2 MB, free: 8.477 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.769e-05/0.6204, allocations: 10.44 kB / 408.2 MB, free: 8.477 MB / 314.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.0003435/0.6208, allocations: 172.7 kB / 408.4 MB, free: 8.352 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.797e-05/0.6209, allocations: 46.25 kB / 408.4 MB, free: 8.328 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001376/0.6211, allocations: 58.89 kB / 408.5 MB, free: 8.309 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.222e-06/0.6211, allocations: 3.875 kB / 408.5 MB, free: 8.309 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.889e-06/0.6211, allocations: 0 / 408.5 MB, free: 8.309 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.025e-06/0.6211, allocations: 3.984 kB / 408.5 MB, free: 8.305 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007762/0.6219, allocations: 0.5799 MB / 409.1 MB, free: 7.98 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.599e-06/0.6219, allocations: 4 kB / 409.1 MB, free: 7.977 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007392/0.6227, allocations: 90.11 kB / 409.2 MB, free: 7.949 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001814/0.6245, allocations: 423.5 kB / 409.6 MB, free: 7.84 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.333e-05/0.6246, allocations: 10.02 kB / 409.6 MB, free: 7.836 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01373/0.6383, allocations: 3.58 MB / 413.2 MB, free: 6.008 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.456e-06/0.6383, allocations: 3.969 kB / 413.2 MB, free: 6.008 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005583/0.6439, allocations: 1.291 MB / 414.5 MB, free: 5.68 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002624/0.6442, allocations: 170.9 kB / 414.7 MB, free: 5.539 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001168/0.6443, allocations: 14.78 kB / 414.7 MB, free: 5.535 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001038/0.6454, allocations: 84.83 kB / 414.7 MB, free: 5.512 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001861/0.6456, allocations: 46.05 kB / 414.8 MB, free: 5.492 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.139e-05/0.6456, allocations: 15.17 kB / 414.8 MB, free: 5.488 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.0003449/0.646, allocations: 257.9 kB / 415.1 MB, free: 5.379 MB / 314.7 MB Notification: Performance of sort global known variables: time 4.3e-07/0.646, allocations: 0 / 415.1 MB, free: 5.379 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0007863/0.6468, allocations: 161.2 kB / 415.2 MB, free: 5.367 MB / 314.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.005818/0.6526, allocations: 1.855 MB / 417.1 MB, free: 4.504 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.003994/0.6566, allocations: 0.9359 MB / 418 MB, free: 4.164 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 3.607e-06/0.6567, allocations: 0 / 418 MB, free: 4.164 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002346/0.659, allocations: 0.5642 MB / 418.6 MB, free: 3.941 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006446/0.6597, allocations: 70.92 kB / 418.6 MB, free: 3.926 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0166/0.6763, allocations: 4.032 MB / 422.7 MB, free: 2.172 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002969/0.6766, allocations: 0.8446 MB / 423.5 MB, free: 1.398 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003449/0.677, allocations: 143.7 kB / 423.7 MB, free: 1.379 MB / 314.7 MB Notification: Performance of SimCode: time 1.623e-06/0.677, allocations: 0 / 423.7 MB, free: 1.379 MB / 314.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.664/3.341, allocations: 10.37 MB / 434 MB, free: 12.28 MB / 330.7 MB