Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Modelica_3.2.1_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_Modelica_Electrical_Analog_Examples_SimpleTriacCircuit",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.72/1.72, allocations: 171.2 MB / 186.1 MB, free: 1.035 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003592/0.0003592, allocations: 8 kB / 233.4 MB, free: 2.262 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08997/0.09038, allocations: 38.77 MB / 272.1 MB, free: 11.41 MB / 234.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3655/0.456, allocations: 70.95 MB / 343.1 MB, free: 2.367 MB / 266.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000285/0.4563, allocations: 77.84 kB / 343.2 MB, free: 2.324 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.04148/0.4978, allocations: 8.298 MB / 351.5 MB, free: 11.19 MB / 282.7 MB Notification: Performance of FrontEnd: time 5.13e-06/0.4979, allocations: 0 / 351.5 MB, free: 11.19 MB / 282.7 MB Notification: Performance of Transformations before backend: time 3.951e-05/0.4979, allocations: 11.94 kB / 351.5 MB, free: 11.18 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.003472/0.5014, allocations: 0.9175 MB / 352.4 MB, free: 10.24 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.194e-05/0.5015, allocations: 8.031 kB / 352.4 MB, free: 10.23 MB / 282.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002135/0.5017, allocations: 69.97 kB / 352.5 MB, free: 10.17 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001743/0.5019, allocations: 58.22 kB / 352.5 MB, free: 10.12 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007455/0.5026, allocations: 371.3 kB / 352.9 MB, free: 9.77 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.653e-05/0.5027, allocations: 31.25 kB / 352.9 MB, free: 9.754 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001184/0.5028, allocations: 38.12 kB / 352.9 MB, free: 9.727 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002299/0.5051, allocations: 0.5985 MB / 353.5 MB, free: 9.258 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.002e-05/0.5052, allocations: 0 / 353.5 MB, free: 9.258 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.208e-05/0.5053, allocations: 14.81 kB / 353.6 MB, free: 9.254 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.45e-05/0.5053, allocations: 8 kB / 353.6 MB, free: 9.246 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003217/0.5085, allocations: 0.6413 MB / 354.2 MB, free: 8.762 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006032/0.5146, allocations: 2.043 MB / 356.3 MB, free: 7.09 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007701/0.5224, allocations: 0.964 MB / 357.2 MB, free: 6.316 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 9.857e-05/0.5225, allocations: 5.5 kB / 357.2 MB, free: 6.312 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001954/0.5245, allocations: 433 kB / 357.6 MB, free: 5.961 MB / 282.7 MB Notification: Performance of pre-optimization done (n=39): time 2.986e-06/0.5245, allocations: 0 / 357.6 MB, free: 5.961 MB / 282.7 MB Notification: Performance of matching and sorting (n=39): time 0.01685/0.5414, allocations: 1.975 MB / 359.6 MB, free: 4.215 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.017e-05/0.5415, allocations: 85.11 kB / 359.7 MB, free: 4.113 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006317/0.5422, allocations: 326.6 kB / 360 MB, free: 3.852 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001344/0.5423, allocations: 36.45 kB / 360.1 MB, free: 3.816 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002152/0.5425, allocations: 232.3 kB / 360.3 MB, free: 3.648 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001927/0.5428, allocations: 132.4 kB / 360.4 MB, free: 3.535 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.452e-05/0.5428, allocations: 11 kB / 360.4 MB, free: 3.531 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 0.0001577/0.543, allocations: 351.5 kB / 360.8 MB, free: 3.195 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001606/0.5446, allocations: 307.9 kB / 361.1 MB, free: 2.965 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001656/0.5463, allocations: 345.6 kB / 361.4 MB, free: 2.699 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001628/0.548, allocations: 324.1 kB / 361.7 MB, free: 2.457 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.045e-06/0.548, allocations: 4 kB / 361.7 MB, free: 2.453 MB / 282.7 MB Notification: Performance of matching and sorting (n=47) (initialization): time 0.004494/0.5525, allocations: 0.9105 MB / 362.6 MB, free: 1.73 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.451e-05/0.5526, allocations: 30.8 kB / 362.7 MB, free: 1.695 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.256e-05/0.5527, allocations: 4 kB / 362.7 MB, free: 1.691 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002176/0.5548, allocations: 420.4 kB / 363.1 MB, free: 1.363 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008749/0.5558, allocations: 91.88 kB / 363.2 MB, free: 1.273 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01563/0.5714, allocations: 3.603 MB / 366.8 MB, free: 14.28 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00125/0.5727, allocations: 103.3 kB / 366.9 MB, free: 14.18 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.881e-05/0.5728, allocations: 19.61 kB / 366.9 MB, free: 14.17 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.0003736/0.5732, allocations: 164.7 kB / 367.1 MB, free: 14.03 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001203/0.5733, allocations: 47.42 kB / 367.1 MB, free: 13.98 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001614/0.5735, allocations: 50.38 kB / 367.2 MB, free: 13.96 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.738e-06/0.5735, allocations: 7.984 kB / 367.2 MB, free: 13.95 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.742e-06/0.5735, allocations: 3.953 kB / 367.2 MB, free: 13.95 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.437e-06/0.5735, allocations: 12 kB / 367.2 MB, free: 13.93 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009912/0.5745, allocations: 0.5806 MB / 367.8 MB, free: 13.46 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.29e-06/0.5746, allocations: 0 / 367.8 MB, free: 13.46 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000832/0.5754, allocations: 91.56 kB / 367.8 MB, free: 13.38 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002016/0.5774, allocations: 417.1 kB / 368.3 MB, free: 13.05 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000113/0.5776, allocations: 15.67 kB / 368.3 MB, free: 13.04 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01537/0.593, allocations: 3.58 MB / 371.8 MB, free: 10.05 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.735e-06/0.593, allocations: 8.031 kB / 371.9 MB, free: 10.04 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006283/0.5993, allocations: 1.277 MB / 373.1 MB, free: 9.062 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004046/0.5998, allocations: 179.8 kB / 373.3 MB, free: 8.902 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001215/0.5999, allocations: 10.81 kB / 373.3 MB, free: 8.898 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001098/0.601, allocations: 82.73 kB / 373.4 MB, free: 8.82 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002187/0.6013, allocations: 54.67 kB / 373.5 MB, free: 8.777 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.374e-05/0.6013, allocations: 8 kB / 373.5 MB, free: 8.77 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0004555/0.6018, allocations: 263.6 kB / 373.7 MB, free: 8.574 MB / 298.7 MB Notification: Performance of sort global known variables: time 3.81e-07/0.6018, allocations: 0 / 373.7 MB, free: 8.574 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0009098/0.6027, allocations: 164.7 kB / 373.9 MB, free: 8.426 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.0068/0.6095, allocations: 1.857 MB / 375.7 MB, free: 6.859 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.004463/0.6141, allocations: 0.9373 MB / 376.7 MB, free: 6.086 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 8.155e-06/0.6141, allocations: 4 kB / 376.7 MB, free: 6.082 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002684/0.6168, allocations: 0.5729 MB / 377.3 MB, free: 5.523 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007252/0.6176, allocations: 74.45 kB / 377.3 MB, free: 5.453 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01882/0.6364, allocations: 4.003 MB / 381.3 MB, free: 1.395 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005069/0.637, allocations: 0.8436 MB / 382.2 MB, free: 0.5273 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 0.0004211/0.6374, allocations: 39.27 kB / 382.2 MB, free: 500 kB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003729/0.6378, allocations: 147.4 kB / 382.4 MB, free: 352 kB / 298.7 MB Notification: Performance of SimCode: time 1.292e-06/0.6378, allocations: 0 / 382.4 MB, free: 352 kB / 298.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05421/0.6921, allocations: 14.43 MB / 396.8 MB, free: 1.969 MB / 314.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003207/0.6924, allocations: 218 kB / 397 MB, free: 1.723 MB / 314.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.176/3.868, allocations: 0 / 397 MB, free: 1.723 MB / 314.7 MB