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.IdealTriacCircuit.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: 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.887/1.887, allocations: 194.8 MB / 212.3 MB, free: 3.016 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003607/0.000361, allocations: 8 kB / 264.5 MB, free: 13.63 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09201/0.09239, allocations: 44.5 MB / 309 MB, free: 1.062 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4172/0.5097, allocations: 74.08 MB / 383 MB, free: 14.88 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000258/0.51, allocations: 74.31 kB / 383.1 MB, free: 14.88 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.0202/0.5302, allocations: 4.929 MB / 388 MB, free: 14.21 MB / 314.7 MB Notification: Performance of FrontEnd: time 3.297e-06/0.5303, allocations: 0 / 388 MB, free: 14.21 MB / 314.7 MB Notification: Performance of Transformations before backend: time 3.301e-05/0.5303, allocations: 6.375 kB / 388.1 MB, free: 14.21 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.001511/0.5318, allocations: 0.5726 MB / 388.6 MB, free: 13.77 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.145e-05/0.5319, allocations: 13.12 kB / 388.6 MB, free: 13.76 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000168/0.5321, allocations: 32.59 kB / 388.7 MB, free: 13.75 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004579/0.5326, allocations: 283.9 kB / 388.9 MB, free: 13.51 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.425e-05/0.5326, allocations: 17.91 kB / 389 MB, free: 13.51 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.31e-05/0.5327, allocations: 23.34 kB / 389 MB, free: 13.51 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008095/0.5335, allocations: 289.1 kB / 389.3 MB, free: 13.45 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.845e-05/0.5336, allocations: 3.938 kB / 389.3 MB, free: 13.45 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.475e-05/0.5336, allocations: 14.88 kB / 389.3 MB, free: 13.44 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.04e-05/0.5336, allocations: 7.875 kB / 389.3 MB, free: 13.44 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006259/0.5343, allocations: 200.9 kB / 389.5 MB, free: 13.44 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002472/0.5368, allocations: 1.152 MB / 390.6 MB, free: 12.84 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007352/0.5375, allocations: 220.9 kB / 390.9 MB, free: 12.8 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.334e-05/0.5376, allocations: 4.031 kB / 390.9 MB, free: 12.8 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004236/0.538, allocations: 162 kB / 391 MB, free: 12.73 MB / 314.7 MB Notification: Performance of pre-optimization done (n=22): time 3.426e-06/0.5381, allocations: 0 / 391 MB, free: 12.73 MB / 314.7 MB Notification: Performance of matching and sorting (n=22): time 0.002178/0.5402, allocations: 0.5334 MB / 391.6 MB, free: 12.56 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.791e-05/0.5403, allocations: 103 kB / 391.7 MB, free: 12.44 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003245/0.5407, allocations: 241 kB / 391.9 MB, free: 12.33 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 3.764e-05/0.5407, allocations: 37.17 kB / 391.9 MB, free: 12.29 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001123/0.5408, allocations: 231.1 kB / 392.2 MB, free: 12.11 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.2e-05/0.5409, allocations: 69.05 kB / 392.2 MB, free: 12.07 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.059e-05/0.5409, allocations: 5 kB / 392.2 MB, free: 12.07 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 6.853e-05/0.541, allocations: 325.3 kB / 392.5 MB, free: 11.75 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000261/0.5413, allocations: 74.72 kB / 392.6 MB, free: 11.75 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003006/0.5416, allocations: 121.7 kB / 392.7 MB, free: 11.7 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002566/0.5419, allocations: 90.53 kB / 392.8 MB, free: 11.7 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.527e-06/0.5419, allocations: 0 / 392.8 MB, free: 11.7 MB / 314.7 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0007244/0.5426, allocations: 286 kB / 393.1 MB, free: 11.64 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.777e-05/0.5427, allocations: 3.875 kB / 393.1 MB, free: 11.64 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.374e-06/0.5427, allocations: 0 / 393.1 MB, free: 11.64 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000511/0.5432, allocations: 87.48 kB / 393.2 MB, free: 11.63 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002823/0.5435, allocations: 31.77 kB / 393.2 MB, free: 11.63 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002858/0.5464, allocations: 1.969 MB / 395.2 MB, free: 10.24 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004327/0.5469, allocations: 33.38 kB / 395.2 MB, free: 10.23 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.691e-05/0.5469, allocations: 5.656 kB / 395.2 MB, free: 10.23 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.000242/0.5472, allocations: 147.6 kB / 395.4 MB, free: 10.12 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.759e-05/0.5472, allocations: 23.31 kB / 395.4 MB, free: 10.11 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.104e-05/0.5473, allocations: 36.41 kB / 395.4 MB, free: 10.11 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.149e-06/0.5473, allocations: 4.062 kB / 395.4 MB, free: 10.1 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.178e-06/0.5474, allocations: 0 / 395.4 MB, free: 10.1 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.412e-06/0.5474, allocations: 3.953 kB / 395.4 MB, free: 10.1 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004975/0.5479, allocations: 349.6 kB / 395.8 MB, free: 9.91 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.987e-06/0.5479, allocations: 0 / 395.8 MB, free: 9.91 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002411/0.5481, allocations: 26.06 kB / 395.8 MB, free: 9.906 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004417/0.5486, allocations: 84.95 kB / 395.9 MB, free: 9.895 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.078e-05/0.5487, allocations: 10.02 kB / 395.9 MB, free: 9.895 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002834/0.5515, allocations: 1.973 MB / 397.9 MB, free: 8.508 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.146e-06/0.5516, allocations: 4 kB / 397.9 MB, free: 8.504 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001218/0.5528, allocations: 424.5 kB / 398.3 MB, free: 8.402 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001789/0.553, allocations: 122 kB / 398.4 MB, free: 8.293 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.247e-05/0.5531, allocations: 5.375 kB / 398.4 MB, free: 8.293 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002966/0.5534, allocations: 25.66 kB / 398.4 MB, free: 8.289 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001585/0.5536, allocations: 41.81 kB / 398.5 MB, free: 8.281 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.12e-05/0.5536, allocations: 3.938 kB / 398.5 MB, free: 8.281 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.0002222/0.5538, allocations: 178 kB / 398.7 MB, free: 8.203 MB / 314.7 MB Notification: Performance of sort global known variables: time 5.31e-07/0.5538, allocations: 0 / 398.7 MB, free: 8.203 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0005755/0.5544, allocations: 90.38 kB / 398.7 MB, free: 8.195 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.0001561/0.5546, allocations: 109.2 kB / 398.9 MB, free: 8.109 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.0009317/0.5555, allocations: 365.6 kB / 399.2 MB, free: 7.977 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 4.849e-06/0.5556, allocations: 4 kB / 399.2 MB, free: 7.973 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005227/0.5561, allocations: 271 kB / 399.5 MB, free: 7.84 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004489/0.5566, allocations: 54.33 kB / 399.5 MB, free: 7.832 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001582/0.5581, allocations: 0.746 MB / 400.3 MB, free: 7.398 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002258/0.5584, allocations: 0.7705 MB / 401.1 MB, free: 6.699 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.371e-05/0.5585, allocations: 21.94 kB / 401.1 MB, free: 6.691 MB / 314.7 MB Notification: Performance of SimCode: time 1.323e-06/0.5585, allocations: 0 / 401.1 MB, free: 6.691 MB / 314.7 MB Notification: Performance of Templates: time 0.009046/0.5676, allocations: 4.521 MB / 405.6 MB, free: 6.441 MB / 314.7 MB