Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Modelica_3.2.2_cpp_Modelica.Electrical.Analog.Examples.IdealTriacCircuit.conf.json Using package ModelicaServices with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.2/package.mo) Using package Complex with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.2.mo) Using package Modelica with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/package.mo) Running command: translateModel(Modelica.Electrical.Analog.Examples.IdealTriacCircuit,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|idealTriac.capacitor.v|idealTriac.idealThyristor.off|idealTriac.idealThyristor1.off",fileNamePrefix="Modelica_3.2.2_cpp_Modelica.Electrical.Analog.Examples.IdealTriacCircuit") Notification: Performance of loadModel(Modelica): time 1.992/1.992, allocations: 194.9 MB / 211.7 MB, free: 2.977 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003564/0.0003566, allocations: 12 kB / 263.9 MB, free: 13.56 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07754/0.07792, allocations: 44.5 MB / 308.4 MB, free: 0.9883 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3297/0.4077, allocations: 74.08 MB / 382.5 MB, free: 18.75 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002144/0.408, allocations: 74.7 kB / 382.6 MB, free: 18.74 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01688/0.4249, allocations: 4.927 MB / 387.5 MB, free: 18.07 MB / 314.7 MB Notification: Performance of FrontEnd: time 2.763e-06/0.4249, allocations: 0 / 387.5 MB, free: 18.07 MB / 314.7 MB Notification: Performance of Transformations before backend: time 2.864e-05/0.4249, allocations: 5.688 kB / 387.5 MB, free: 18.07 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: 62 * Number of variables: 62 Notification: Performance of Generate backend data structure: time 0.0009051/0.4259, allocations: 0.5726 MB / 388.1 MB, free: 17.62 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.727e-05/0.4259, allocations: 11.62 kB / 388.1 MB, free: 17.62 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.144e-05/0.426, allocations: 37.47 kB / 388.1 MB, free: 17.61 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000323/0.4264, allocations: 281.6 kB / 388.4 MB, free: 17.37 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.638e-05/0.4264, allocations: 17.59 kB / 388.4 MB, free: 17.37 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.657e-05/0.4265, allocations: 26.91 kB / 388.5 MB, free: 17.37 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005944/0.4271, allocations: 284.8 kB / 388.7 MB, free: 17.3 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.389e-05/0.4271, allocations: 0 / 388.7 MB, free: 17.3 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.098e-05/0.4272, allocations: 11.5 kB / 388.8 MB, free: 17.3 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.089e-05/0.4272, allocations: 9.031 kB / 388.8 MB, free: 17.3 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005145/0.4277, allocations: 205.1 kB / 389 MB, free: 17.3 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001842/0.4296, allocations: 1.157 MB / 390.1 MB, free: 16.69 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005889/0.4302, allocations: 225.7 kB / 390.3 MB, free: 16.66 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.346e-05/0.4302, allocations: 192 / 390.3 MB, free: 16.66 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003476/0.4306, allocations: 162.3 kB / 390.5 MB, free: 16.59 MB / 314.7 MB Notification: Performance of pre-optimization done (n=22): time 2.452e-06/0.4306, allocations: 3.938 kB / 390.5 MB, free: 16.58 MB / 314.7 MB Notification: Performance of matching and sorting (n=22): time 0.001687/0.4323, allocations: 0.5211 MB / 391 MB, free: 16.42 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.451e-05/0.4324, allocations: 110.4 kB / 391.1 MB, free: 16.29 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002821/0.4327, allocations: 220 kB / 391.3 MB, free: 16.19 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 2.899e-05/0.4327, allocations: 34.73 kB / 391.4 MB, free: 16.16 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.621e-05/0.4328, allocations: 225.4 kB / 391.6 MB, free: 15.97 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.985e-05/0.4329, allocations: 76.42 kB / 391.7 MB, free: 15.93 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.71e-05/0.4329, allocations: 3.938 kB / 391.7 MB, free: 15.93 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 5.527e-05/0.433, allocations: 320.3 kB / 392 MB, free: 15.62 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002024/0.4332, allocations: 76.25 kB / 392.1 MB, free: 15.62 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002281/0.4335, allocations: 126 kB / 392.2 MB, free: 15.57 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002097/0.4337, allocations: 83.92 kB / 392.3 MB, free: 15.56 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.034e-06/0.4337, allocations: 0 / 392.3 MB, free: 15.56 MB / 314.7 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0006168/0.4343, allocations: 282.4 kB / 392.5 MB, free: 15.51 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.595e-05/0.4344, allocations: 7.938 kB / 392.6 MB, free: 15.5 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.604e-06/0.4344, allocations: 0 / 392.6 MB, free: 15.5 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003981/0.4348, allocations: 90.86 kB / 392.6 MB, free: 15.5 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001847/0.435, allocations: 33.28 kB / 392.7 MB, free: 15.49 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00239/0.4374, allocations: 1.968 MB / 394.6 MB, free: 14.11 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002867/0.4377, allocations: 37.3 kB / 394.7 MB, free: 14.09 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.369e-05/0.4377, allocations: 7.688 kB / 394.7 MB, free: 14.09 MB / 314.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 8 ($whenCondition1,booleanPulse.y,$PRE.booleanPulse.pulsStart,booleanPulse.pulsStart,$PRE.idealTriac.idealThyristor.off,idealTriac.idealThyristor.off,$PRE.idealTriac.idealThyristor1.off,idealTriac.idealThyristor1.off) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (19): * Single equations (assignments): 18 * Array equations: 0 * Algorithm blocks: 0 * 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 {2 9} Notification: Performance of prepare postOptimizeDAE: time 0.0001996/0.438, allocations: 146.7 kB / 394.8 MB, free: 13.98 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.003e-05/0.438, allocations: 23.34 kB / 394.9 MB, free: 13.96 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.258e-05/0.4381, allocations: 32.53 kB / 394.9 MB, free: 13.96 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.318e-06/0.4381, allocations: 3.938 kB / 394.9 MB, free: 13.96 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.709e-06/0.4381, allocations: 4 kB / 394.9 MB, free: 13.95 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.691e-06/0.4381, allocations: 3.953 kB / 394.9 MB, free: 13.95 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000372/0.4385, allocations: 345.1 kB / 395.2 MB, free: 13.76 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.142e-06/0.4385, allocations: 3.938 kB / 395.2 MB, free: 13.76 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001609/0.4387, allocations: 21.38 kB / 395.3 MB, free: 13.76 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003343/0.4391, allocations: 84.02 kB / 395.3 MB, free: 13.75 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.352e-05/0.4391, allocations: 5.484 kB / 395.3 MB, free: 13.75 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002376/0.4415, allocations: 1.98 MB / 397.3 MB, free: 12.37 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.549e-06/0.4415, allocations: 96 / 397.3 MB, free: 12.37 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001043/0.4426, allocations: 436.2 kB / 397.8 MB, free: 12.26 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001413/0.4427, allocations: 117.3 kB / 397.9 MB, free: 12.15 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.815e-05/0.4428, allocations: 7.688 kB / 397.9 MB, free: 12.15 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002424/0.4431, allocations: 21.41 kB / 397.9 MB, free: 12.15 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001309/0.4432, allocations: 42.19 kB / 397.9 MB, free: 12.14 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.126e-05/0.4432, allocations: 7.938 kB / 397.9 MB, free: 12.14 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.0001884/0.4434, allocations: 169.7 kB / 398.1 MB, free: 12.06 MB / 314.7 MB Notification: Performance of sort global known variables: time 7.93e-07/0.4435, allocations: 3.844 kB / 398.1 MB, free: 12.06 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0005641/0.444, allocations: 95.44 kB / 398.2 MB, free: 12.05 MB / 314.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 1 (idealTriac.capacitor.v) * Number of discrete variables: 5 ($whenCondition1,booleanPulse.y,booleanPulse.pulsStart,idealTriac.idealThyristor.off,idealTriac.idealThyristor1.off) * Number of discrete states: 2 (idealTriac.idealThyristor.off,idealTriac.idealThyristor1.off) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (12): * Single equations (assignments): 10 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * 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 {2 9} Notification: Performance of Backend phase and start with SimCode phase: time 0.0001427/0.4442, allocations: 110.3 kB / 398.3 MB, free: 11.96 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.0007419/0.4449, allocations: 360.3 kB / 398.7 MB, free: 11.83 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 3.411e-06/0.445, allocations: 0 / 398.7 MB, free: 11.83 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.00044/0.4454, allocations: 273.4 kB / 398.9 MB, free: 11.7 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003669/0.4458, allocations: 53.7 kB / 399 MB, free: 11.69 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0013/0.4471, allocations: 0.7482 MB / 399.7 MB, free: 11.26 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002125/0.4474, allocations: 0.7714 MB / 400.5 MB, free: 10.56 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.576e-05/0.4474, allocations: 19.12 kB / 400.5 MB, free: 10.55 MB / 314.7 MB Notification: Performance of SimCode: time 1.631e-06/0.4475, allocations: 0 / 400.5 MB, free: 10.55 MB / 314.7 MB Notification: Performance of Templates: time 0.006897/0.4544, allocations: 4.513 MB / 405 MB, free: 10.32 MB / 314.7 MB