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: translateModel(Modelica.Electrical.Analog.Examples.SimpleTriacCircuit,tolerance=1e-12,outputFormat="mat",numberOfIntervals=4000,variableFilter="time|L.i|simpleTriac.thyristor.vControl|simpleTriac.thyristor1.vControl",fileNamePrefix="Modelica_3.2.2_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit") Notification: Performance of loadModel(Modelica): time 1.945/1.945, allocations: 194.9 MB / 211.7 MB, free: 3.008 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003498/0.00035, allocations: 12 kB / 264.6 MB, free: 12.95 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09074/0.09111, allocations: 44.5 MB / 309.1 MB, free: 384 kB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.SimpleTriacCircuit): time 0.004979/0.09614, allocations: 3.101 MB / 312.2 MB, free: 13.25 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.002132/0.09831, allocations: 0.991 MB / 313.2 MB, free: 12.26 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002251/0.09856, allocations: 4 kB / 313.2 MB, free: 12.25 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001411/0.09871, allocations: 59.52 kB / 313.2 MB, free: 12.2 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0005075/0.09923, allocations: 183.5 kB / 313.4 MB, free: 12.02 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005057/0.09975, allocations: 131.7 kB / 313.5 MB, free: 11.89 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0007975/0.1006, allocations: 451 kB / 314 MB, free: 11.45 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003415/0.1009, allocations: 144 kB / 314.1 MB, free: 11.3 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004127/0.1013, allocations: 219.3 kB / 314.3 MB, free: 11.09 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000509/0.1019, allocations: 274.9 kB / 314.6 MB, free: 10.82 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001059/0.102, allocations: 36 kB / 314.6 MB, free: 10.78 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001401/0.1022, allocations: 28 kB / 314.6 MB, free: 10.75 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001455/0.1023, allocations: 99.62 kB / 314.7 MB, free: 10.66 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001594/0.1025, allocations: 125.4 kB / 314.9 MB, free: 10.53 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0008086/0.1033, allocations: 0.5845 MB / 315.5 MB, free: 9.941 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.795e-06/0.1033, allocations: 0 / 315.5 MB, free: 9.941 MB / 266.7 MB Notification: Performance of FrontEnd: time 2.244e-05/0.1033, allocations: 0 / 315.5 MB, free: 9.941 MB / 266.7 MB Notification: Performance of Transformations before backend: time 1.296e-05/0.1034, allocations: 0 / 315.5 MB, free: 9.941 MB / 266.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.003793/0.1072, allocations: 0.9409 MB / 316.4 MB, free: 8.941 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.846e-05/0.1072, allocations: 8.031 kB / 316.4 MB, free: 8.934 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001771/0.1074, allocations: 55.34 kB / 316.5 MB, free: 8.879 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006997/0.1081, allocations: 372.9 kB / 316.8 MB, free: 8.477 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.784e-05/0.1082, allocations: 33 kB / 316.9 MB, free: 8.441 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001189/0.1083, allocations: 36 kB / 316.9 MB, free: 8.406 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002283/0.1106, allocations: 0.5942 MB / 317.5 MB, free: 7.793 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.676e-05/0.1107, allocations: 0 / 317.5 MB, free: 7.793 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.942e-05/0.1108, allocations: 16 kB / 317.5 MB, free: 7.777 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.535e-05/0.1108, allocations: 8 kB / 317.5 MB, free: 7.77 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003201/0.114, allocations: 0.6441 MB / 318.1 MB, free: 7.121 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005711/0.1197, allocations: 2.039 MB / 320.2 MB, free: 4.988 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006957/0.1267, allocations: 0.9327 MB / 321.1 MB, free: 4.047 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 9.11e-05/0.1269, allocations: 11.94 kB / 321.1 MB, free: 4.035 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001926/0.1288, allocations: 427.8 kB / 321.6 MB, free: 3.602 MB / 266.7 MB Notification: Performance of pre-optimization done (n=39): time 3.516e-06/0.1288, allocations: 4 kB / 321.6 MB, free: 3.598 MB / 266.7 MB Notification: Performance of matching and sorting (n=39): time 0.01795/0.1468, allocations: 2.037 MB / 323.6 MB, free: 1.531 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.757e-05/0.1469, allocations: 85.11 kB / 323.7 MB, free: 1.43 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006603/0.1476, allocations: 365.7 kB / 324 MB, free: 1.062 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 0.000115/0.1477, allocations: 33.7 kB / 324.1 MB, free: 1.023 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002396/0.148, allocations: 228.5 kB / 324.3 MB, free: 0.793 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001887/0.1482, allocations: 130.2 kB / 324.4 MB, free: 0.6641 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.481e-05/0.1482, allocations: 11.94 kB / 324.4 MB, free: 0.6523 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001748/0.1484, allocations: 346.8 kB / 324.8 MB, free: 312 kB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001592/0.15, allocations: 312.6 kB / 325.1 MB, free: 15.99 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001633/0.1517, allocations: 342.1 kB / 325.4 MB, free: 15.65 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001568/0.1533, allocations: 327.6 kB / 325.7 MB, free: 15.33 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.879e-06/0.1533, allocations: 3.938 kB / 325.7 MB, free: 15.32 MB / 282.7 MB Notification: Performance of matching and sorting (n=47) (initialization): time 0.008634/0.1619, allocations: 1.178 MB / 326.9 MB, free: 14.13 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 7.446e-05/0.1621, allocations: 33.69 kB / 326.9 MB, free: 14.09 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.303e-05/0.1621, allocations: 3.953 kB / 326.9 MB, free: 14.09 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002248/0.1643, allocations: 424.5 kB / 327.4 MB, free: 13.67 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008651/0.1652, allocations: 95.92 kB / 327.5 MB, free: 13.57 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01481/0.1801, allocations: 3.619 MB / 331.1 MB, free: 9.824 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001129/0.1812, allocations: 103.8 kB / 331.2 MB, free: 9.723 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.771e-05/0.1813, allocations: 16 kB / 331.2 MB, free: 9.707 MB / 282.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.0003595/0.1817, allocations: 173.8 kB / 331.4 MB, free: 9.527 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001137/0.1818, allocations: 43.53 kB / 331.4 MB, free: 9.484 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001571/0.182, allocations: 48.38 kB / 331.4 MB, free: 9.438 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.097e-06/0.182, allocations: 0 / 331.4 MB, free: 9.438 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.327e-06/0.182, allocations: 3.938 kB / 331.4 MB, free: 9.434 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003052/0.1823, allocations: 180.3 kB / 331.6 MB, free: 9.238 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001371/0.1825, allocations: 8 kB / 331.6 MB, free: 9.23 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009905/0.1835, allocations: 83.92 kB / 331.7 MB, free: 9.148 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001633/0.1836, allocations: 43.89 kB / 331.8 MB, free: 9.105 MB / 282.7 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.008007/0.1917, allocations: 1.235 MB / 333 MB, free: 7.859 MB / 282.7 MB Notification: Performance of postOpt detectDAEmodeSparsePattern (simulation): time 0.005084/0.1968, allocations: 1.202 MB / 334.2 MB, free: 6.645 MB / 282.7 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.001573/0.1984, allocations: 323.8 kB / 334.5 MB, free: 6.328 MB / 282.7 MB Notification: Performance of sorting global known variables: time 0.0004439/0.1989, allocations: 251.2 kB / 334.8 MB, free: 6.086 MB / 282.7 MB Notification: Performance of Backend: time 4.71e-07/0.1989, allocations: 0 / 334.8 MB, free: 6.086 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.003151/0.202, allocations: 0.7191 MB / 335.5 MB, free: 5.336 MB / 282.7 MB Notification: Performance of SimCode: time 0.002515/0.2046, allocations: 1.566 MB / 337 MB, free: 3.719 MB / 282.7 MB Notification: Performance of Templates: time 0.02664/0.2313, allocations: 9.94 MB / 347 MB, free: 9.809 MB / 298.7 MB