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.836/1.836, allocations: 194.8 MB / 211.7 MB, free: 2.996 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004085/0.0004087, allocations: 8 kB / 263.9 MB, free: 13.61 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08234/0.08277, allocations: 44.5 MB / 308.4 MB, free: 1.039 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.IdealTriacCircuit): time 0.0035/0.08632, allocations: 2.364 MB / 310.7 MB, free: 14.66 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.001513/0.08787, allocations: 0.7376 MB / 311.5 MB, free: 13.91 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001718/0.08807, allocations: 4 kB / 311.5 MB, free: 13.91 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 9.441e-05/0.08818, allocations: 43.61 kB / 311.5 MB, free: 13.87 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0003042/0.08849, allocations: 123.7 kB / 311.6 MB, free: 13.75 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002863/0.08879, allocations: 67.8 kB / 311.7 MB, free: 13.68 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0004211/0.08923, allocations: 259.4 kB / 311.9 MB, free: 13.43 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002343/0.08948, allocations: 97.89 kB / 312 MB, free: 13.33 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000222/0.08972, allocations: 119.5 kB / 312.2 MB, free: 13.21 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000225/0.08996, allocations: 135.4 kB / 312.3 MB, free: 13.08 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 4.831e-05/0.09002, allocations: 16 kB / 312.3 MB, free: 13.06 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 7.205e-05/0.09011, allocations: 16 kB / 312.3 MB, free: 13.05 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 6.819e-05/0.09019, allocations: 55.75 kB / 312.4 MB, free: 12.99 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.000106/0.09031, allocations: 85.58 kB / 312.5 MB, free: 12.9 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0004128/0.09073, allocations: 315.4 kB / 312.8 MB, free: 12.59 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.677e-06/0.09075, allocations: 0 / 312.8 MB, free: 12.59 MB / 266.7 MB Notification: Performance of FrontEnd: time 2.33e-06/0.09076, allocations: 0 / 312.8 MB, free: 12.59 MB / 266.7 MB Notification: Performance of Transformations before backend: time 7.696e-06/0.09078, allocations: 4 kB / 312.8 MB, free: 12.59 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: 62 * Number of variables: 62 Notification: Performance of Generate backend data structure: time 0.001101/0.09189, allocations: 0.5699 MB / 313.3 MB, free: 11.97 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.499e-05/0.09195, allocations: 12.03 kB / 313.3 MB, free: 11.96 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.981e-05/0.09206, allocations: 39.55 kB / 313.4 MB, free: 11.92 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004271/0.0925, allocations: 278.4 kB / 313.7 MB, free: 11.61 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.001e-05/0.09255, allocations: 16.56 kB / 313.7 MB, free: 11.59 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.413e-05/0.09263, allocations: 24 kB / 313.7 MB, free: 11.57 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006803/0.09332, allocations: 288.5 kB / 314 MB, free: 11.27 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.375e-05/0.09336, allocations: 4 kB / 314 MB, free: 11.27 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.086e-05/0.09341, allocations: 12 kB / 314 MB, free: 11.25 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.345e-05/0.09344, allocations: 8 kB / 314 MB, free: 11.25 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005812/0.09403, allocations: 202.2 kB / 314.2 MB, free: 11.05 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002345/0.09639, allocations: 1.172 MB / 315.4 MB, free: 9.797 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006613/0.09708, allocations: 223.1 kB / 315.6 MB, free: 9.57 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.233e-05/0.09712, allocations: 192 / 315.6 MB, free: 9.57 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004127/0.09755, allocations: 167.8 kB / 315.8 MB, free: 9.387 MB / 266.7 MB Notification: Performance of pre-optimization done (n=22): time 2.798e-06/0.09757, allocations: 0 / 315.8 MB, free: 9.387 MB / 266.7 MB Notification: Performance of matching and sorting (n=22): time 0.001771/0.09935, allocations: 0.5103 MB / 316.3 MB, free: 8.852 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.22e-05/0.09947, allocations: 118.8 kB / 316.4 MB, free: 8.711 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003507/0.09983, allocations: 237 kB / 316.6 MB, free: 8.473 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 4.308e-05/0.09989, allocations: 33.69 kB / 316.6 MB, free: 8.434 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001796/0.1001, allocations: 219 kB / 316.9 MB, free: 8.219 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.322e-05/0.1002, allocations: 74.98 kB / 316.9 MB, free: 8.145 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.814e-05/0.1002, allocations: 4 kB / 316.9 MB, free: 8.141 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001703/0.1004, allocations: 322.8 kB / 317.3 MB, free: 7.816 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002345/0.1006, allocations: 75.97 kB / 317.3 MB, free: 7.742 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002798/0.1009, allocations: 120.5 kB / 317.4 MB, free: 7.609 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002465/0.1012, allocations: 85.14 kB / 317.5 MB, free: 7.527 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.47e-06/0.1012, allocations: 3.938 kB / 317.5 MB, free: 7.523 MB / 266.7 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0007551/0.102, allocations: 284.2 kB / 317.8 MB, free: 7.238 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.982e-05/0.102, allocations: 11.89 kB / 317.8 MB, free: 7.227 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.398e-05/0.1021, allocations: 0 / 317.8 MB, free: 7.227 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004524/0.1025, allocations: 96.72 kB / 317.9 MB, free: 7.129 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001962/0.1027, allocations: 27.98 kB / 317.9 MB, free: 7.102 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003116/0.1059, allocations: 1.956 MB / 319.9 MB, free: 5.012 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000288/0.1062, allocations: 35.81 kB / 319.9 MB, free: 4.977 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.474e-05/0.1062, allocations: 4 kB / 319.9 MB, free: 4.973 MB / 266.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,$PRE.booleanPulse.pulsStart,booleanPulse.pulsStart,$PRE.idealTriac.idealThyristor.off,idealTriac.idealThyristor.off,$PRE.idealTriac.idealThyristor1.off,idealTriac.idealThyristor1.off,idealTriac.fire1) * 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.0002414/0.1065, allocations: 157.7 kB / 320.1 MB, free: 4.809 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.994e-05/0.1065, allocations: 27.72 kB / 320.1 MB, free: 4.781 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.448e-05/0.1066, allocations: 30.28 kB / 320.1 MB, free: 4.75 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.933e-06/0.1067, allocations: 7.938 kB / 320.2 MB, free: 4.742 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.03e-06/0.1067, allocations: 0 / 320.2 MB, free: 4.742 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.109e-06/0.1067, allocations: 0 / 320.2 MB, free: 4.742 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005067/0.1072, allocations: 357.3 kB / 320.5 MB, free: 4.344 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.375e-06/0.1072, allocations: 0 / 320.5 MB, free: 4.344 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001688/0.1074, allocations: 19.98 kB / 320.5 MB, free: 4.324 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003833/0.1078, allocations: 92.75 kB / 320.6 MB, free: 4.23 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.835e-05/0.1078, allocations: 7.984 kB / 320.6 MB, free: 4.223 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004653/0.1125, allocations: 1.948 MB / 322.6 MB, free: 2.145 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.267e-06/0.1126, allocations: 4.047 kB / 322.6 MB, free: 2.141 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002104/0.1147, allocations: 421.4 kB / 323 MB, free: 1.707 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003153/0.115, allocations: 128.7 kB / 323.1 MB, free: 1.562 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.532e-05/0.1151, allocations: 4 kB / 323.1 MB, free: 1.559 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003762/0.1155, allocations: 24.05 kB / 323.1 MB, free: 1.535 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001723/0.1157, allocations: 35.94 kB / 323.2 MB, free: 1.5 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.376e-05/0.1158, allocations: 4 kB / 323.2 MB, free: 1.496 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.0003978/0.1162, allocations: 176.5 kB / 323.4 MB, free: 1.324 MB / 266.7 MB Notification: Performance of sort global known variables: time 1.039e-06/0.1162, allocations: 0 / 323.4 MB, free: 1.324 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.001087/0.1173, allocations: 87.84 kB / 323.4 MB, free: 1.238 MB / 266.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.pulsStart,idealTriac.idealThyristor.off,idealTriac.idealThyristor1.off,idealTriac.fire1) * 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.0002431/0.1176, allocations: 111.2 kB / 323.5 MB, free: 1.117 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.001456/0.1191, allocations: 358.8 kB / 323.9 MB, free: 0.7539 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 4.994e-06/0.1191, allocations: 0 / 323.9 MB, free: 0.7539 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0008795/0.12, allocations: 266.6 kB / 324.2 MB, free: 492 kB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006315/0.1207, allocations: 56.39 kB / 324.2 MB, free: 432 kB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00249/0.1232, allocations: 0.7602 MB / 325 MB, free: 15.64 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006648/0.1239, allocations: 0.7752 MB / 325.7 MB, free: 14.84 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001161/0.124, allocations: 15.44 kB / 325.8 MB, free: 14.82 MB / 282.7 MB Notification: Performance of SimCode: time 2.347e-06/0.1241, allocations: 4 kB / 325.8 MB, free: 14.82 MB / 282.7 MB Notification: Performance of Templates: time 0.01396/0.138, allocations: 4.513 MB / 330.3 MB, free: 10.32 MB / 282.7 MB