Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Modelica_3.2.2_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_Modelica_Electrical_Analog_Examples_SimpleTriacCircuit",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.959/1.959, allocations: 194.8 MB / 211.1 MB, free: 8.555 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003458/0.0003459, allocations: 16 kB / 264.1 MB, free: 3.473 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2927/0.2931, allocations: 44.51 MB / 308.6 MB, free: 12.76 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.SimpleTriacCircuit): time 0.005196/0.2983, allocations: 3.098 MB / 311.7 MB, free: 9.645 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.002541/0.3009, allocations: 0.991 MB / 312.7 MB, free: 8.648 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003771/0.3014, allocations: 4 kB / 312.7 MB, free: 8.645 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001999/0.3016, allocations: 59.5 kB / 312.7 MB, free: 8.586 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0006481/0.3022, allocations: 191.4 kB / 312.9 MB, free: 8.398 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006235/0.3029, allocations: 123.8 kB / 313 MB, free: 8.277 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.0009557/0.3039, allocations: 454.9 kB / 313.5 MB, free: 7.832 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003599/0.3042, allocations: 136.1 kB / 313.6 MB, free: 7.695 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004519/0.3047, allocations: 227.2 kB / 313.8 MB, free: 7.473 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005399/0.3053, allocations: 267 kB / 314.1 MB, free: 7.211 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001085/0.3054, allocations: 28 kB / 314.1 MB, free: 7.184 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001511/0.3055, allocations: 36 kB / 314.1 MB, free: 7.148 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001456/0.3057, allocations: 103.6 kB / 314.2 MB, free: 7.047 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 0.000165/0.3059, allocations: 117.5 kB / 314.4 MB, free: 6.926 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0008573/0.3068, allocations: 0.5891 MB / 314.9 MB, free: 6.336 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.817e-06/0.3068, allocations: 0 / 314.9 MB, free: 6.336 MB / 250.7 MB Notification: Performance of FrontEnd: time 2.124e-06/0.3068, allocations: 0 / 314.9 MB, free: 6.336 MB / 250.7 MB Notification: Performance of Transformations before backend: time 8.365e-06/0.3068, allocations: 0 / 314.9 MB, free: 6.336 MB / 250.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.003959/0.3108, allocations: 0.937 MB / 315.9 MB, free: 5.34 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.993e-05/0.3108, allocations: 12.03 kB / 315.9 MB, free: 5.328 MB / 250.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001956/0.3111, allocations: 70.53 kB / 316 MB, free: 5.25 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001845/0.3113, allocations: 75.12 kB / 316 MB, free: 5.176 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007456/0.312, allocations: 361.1 kB / 316.4 MB, free: 4.785 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.893e-05/0.3121, allocations: 33 kB / 316.4 MB, free: 4.75 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001326/0.3123, allocations: 39.91 kB / 316.5 MB, free: 4.711 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002362/0.3146, allocations: 0.5826 MB / 317 MB, free: 4.109 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.02e-05/0.3147, allocations: 0 / 317 MB, free: 4.109 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.408e-05/0.3148, allocations: 16 kB / 317.1 MB, free: 4.094 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.065e-05/0.3148, allocations: 16 kB / 317.1 MB, free: 4.078 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003176/0.318, allocations: 0.6479 MB / 317.7 MB, free: 3.426 MB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005908/0.3239, allocations: 2.047 MB / 319.8 MB, free: 1.285 MB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006873/0.3309, allocations: 0.9363 MB / 320.7 MB, free: 352 kB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 8.222e-05/0.331, allocations: 4 kB / 320.7 MB, free: 348 kB / 250.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001936/0.3329, allocations: 431.7 kB / 321.1 MB, free: 15.9 MB / 266.7 MB Notification: Performance of pre-optimization done (n=39): time 3.126e-06/0.333, allocations: 0 / 321.1 MB, free: 15.9 MB / 266.7 MB Notification: Performance of matching and sorting (n=39): time 0.01788/0.3508, allocations: 2.038 MB / 323.2 MB, free: 13.83 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.934e-05/0.351, allocations: 81.11 kB / 323.3 MB, free: 13.73 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000688/0.3517, allocations: 369.6 kB / 323.6 MB, free: 13.36 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 0.000121/0.3518, allocations: 29.7 kB / 323.6 MB, free: 13.33 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002423/0.3521, allocations: 228.6 kB / 323.9 MB, free: 13.1 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002092/0.3523, allocations: 126.1 kB / 324 MB, free: 12.97 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.591e-05/0.3524, allocations: 15.88 kB / 324 MB, free: 12.96 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001841/0.3525, allocations: 354.8 kB / 324.3 MB, free: 12.6 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001633/0.3542, allocations: 308.6 kB / 324.7 MB, free: 12.3 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001643/0.3559, allocations: 342.1 kB / 325 MB, free: 11.95 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001576/0.3575, allocations: 323.6 kB / 325.3 MB, free: 11.63 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.761e-06/0.3575, allocations: 0 / 325.3 MB, free: 11.63 MB / 266.7 MB Notification: Performance of matching and sorting (n=47) (initialization): time 0.008533/0.366, allocations: 1.186 MB / 326.5 MB, free: 10.43 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 8.738e-05/0.3662, allocations: 37.66 kB / 326.5 MB, free: 10.39 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.112e-05/0.3662, allocations: 0 / 326.5 MB, free: 10.39 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002243/0.3685, allocations: 423.9 kB / 326.9 MB, free: 9.973 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008626/0.3694, allocations: 99.86 kB / 327 MB, free: 9.875 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01526/0.3846, allocations: 3.611 MB / 330.6 MB, free: 6.133 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001143/0.3858, allocations: 99.66 kB / 330.7 MB, free: 6.035 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.729e-05/0.3859, allocations: 12 kB / 330.8 MB, free: 6.023 MB / 266.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.0003885/0.3863, allocations: 177.7 kB / 330.9 MB, free: 5.84 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000131/0.3865, allocations: 43.53 kB / 331 MB, free: 5.797 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000176/0.3867, allocations: 60.3 kB / 331 MB, free: 5.738 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.207e-06/0.3867, allocations: 4 kB / 331 MB, free: 5.734 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.258e-06/0.3867, allocations: 0 / 331 MB, free: 5.734 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.664e-06/0.3867, allocations: 0 / 331 MB, free: 5.734 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001651/0.3884, allocations: 0.5833 MB / 331.6 MB, free: 5.102 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.138e-05/0.3884, allocations: 4 kB / 331.6 MB, free: 5.098 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008732/0.3893, allocations: 83.88 kB / 331.7 MB, free: 5.016 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002211/0.3915, allocations: 425.7 kB / 332.1 MB, free: 4.598 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001146/0.3917, allocations: 19.92 kB / 332.1 MB, free: 4.578 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01471/0.4064, allocations: 3.61 MB / 335.7 MB, free: 0.8359 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.585e-06/0.4065, allocations: 4 kB / 335.8 MB, free: 0.832 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008485/0.415, allocations: 1.399 MB / 337.2 MB, free: 15.41 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003857/0.4154, allocations: 168.5 kB / 337.3 MB, free: 15.23 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001225/0.4156, allocations: 8 kB / 337.3 MB, free: 15.22 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009845/0.4166, allocations: 83.92 kB / 337.4 MB, free: 15.14 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002177/0.4168, allocations: 51.88 kB / 337.5 MB, free: 15.09 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.499e-05/0.4169, allocations: 11.98 kB / 337.5 MB, free: 15.07 MB / 282.7 MB Notification: Performance of sorting global known variables: time 0.0004288/0.4173, allocations: 259.2 kB / 337.7 MB, free: 14.82 MB / 282.7 MB Notification: Performance of sort global known variables: time 4e-07/0.4173, allocations: 0 / 337.7 MB, free: 14.82 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.000891/0.4182, allocations: 167.7 kB / 337.9 MB, free: 14.66 MB / 282.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.008765/0.427, allocations: 1.952 MB / 339.8 MB, free: 12.67 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.004516/0.4316, allocations: 0.9429 MB / 340.8 MB, free: 11.7 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 5.07e-06/0.4316, allocations: 0 / 340.8 MB, free: 11.7 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002656/0.4343, allocations: 0.5611 MB / 341.3 MB, free: 11.13 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000664/0.435, allocations: 73.41 kB / 341.4 MB, free: 11.06 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01795/0.4529, allocations: 3.791 MB / 345.2 MB, free: 7.211 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006108/0.4536, allocations: 0.8469 MB / 346.1 MB, free: 6.336 MB / 282.7 MB Notification: Performance of simCode: alias equations: time 0.0004153/0.454, allocations: 35.28 kB / 346.1 MB, free: 6.301 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004852/0.4545, allocations: 147.4 kB / 346.2 MB, free: 6.156 MB / 282.7 MB Notification: Performance of SimCode: time 1.012e-06/0.4546, allocations: 0 / 346.2 MB, free: 6.156 MB / 282.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05681/0.5114, allocations: 15.52 MB / 361.7 MB, free: 6.652 MB / 298.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003417/0.5118, allocations: 214.6 kB / 362 MB, free: 6.41 MB / 298.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.096/3.608, allocations: 0 / 362 MB, free: 6.41 MB / 298.7 MB