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.ControlledSwitchWithArc.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.ControlledSwitchWithArc,tolerance=1e-06,outputFormat="mat",numberOfIntervals=48000,variableFilter="time|inductor1.i|inductor2.i",fileNamePrefix="Modelica_3.2.2_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc") Notification: Performance of loadModel(Modelica): time 2.012/2.012, allocations: 194.9 MB / 211.7 MB, free: 3 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003531/0.0003533, allocations: 8 kB / 264.6 MB, free: 12.93 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09178/0.09216, allocations: 44.51 MB / 309.1 MB, free: 372 kB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc): time 0.004263/0.09647, allocations: 2.559 MB / 311.6 MB, free: 13.79 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.001755/0.09826, allocations: 0.7608 MB / 312.4 MB, free: 13.02 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001861/0.09848, allocations: 12 kB / 312.4 MB, free: 13.01 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001025/0.0986, allocations: 47.66 kB / 312.4 MB, free: 12.96 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0003472/0.09895, allocations: 119.7 kB / 312.6 MB, free: 12.84 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003914/0.09936, allocations: 79.78 kB / 312.6 MB, free: 12.77 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.000497/0.09987, allocations: 287.3 kB / 312.9 MB, free: 12.48 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002595/0.1001, allocations: 103 kB / 313 MB, free: 12.38 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002381/0.1004, allocations: 131.5 kB / 313.1 MB, free: 12.25 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002738/0.1007, allocations: 159.3 kB / 313.3 MB, free: 12.1 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 5.644e-05/0.1008, allocations: 16 kB / 313.3 MB, free: 12.08 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 8.615e-05/0.1009, allocations: 20 kB / 313.3 MB, free: 12.06 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 7.762e-05/0.1009, allocations: 55.77 kB / 313.4 MB, free: 12.01 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001103/0.1011, allocations: 85.58 kB / 313.5 MB, free: 11.92 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0004187/0.1015, allocations: 303.4 kB / 313.8 MB, free: 11.62 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.956e-06/0.1015, allocations: 4 kB / 313.8 MB, free: 11.62 MB / 266.7 MB Notification: Performance of FrontEnd: time 3.747e-06/0.1015, allocations: 4 kB / 313.8 MB, free: 11.61 MB / 266.7 MB Notification: Performance of Transformations before backend: time 8.687e-06/0.1015, allocations: 3.938 kB / 313.8 MB, free: 11.61 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: 80 * Number of variables: 80 Notification: Performance of Generate backend data structure: time 0.001393/0.1029, allocations: 0.6001 MB / 314.4 MB, free: 10.96 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.262e-05/0.103, allocations: 8.031 kB / 314.4 MB, free: 10.95 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001199/0.1031, allocations: 43.48 kB / 314.4 MB, free: 10.91 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004255/0.1036, allocations: 264.2 kB / 314.7 MB, free: 10.61 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001083/0.1037, allocations: 80.06 kB / 314.8 MB, free: 10.52 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.055e-05/0.1038, allocations: 32 kB / 314.8 MB, free: 10.48 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00084/0.1046, allocations: 334.8 kB / 315.1 MB, free: 10.14 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.603e-05/0.1047, allocations: 0 / 315.1 MB, free: 10.14 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.448e-05/0.1047, allocations: 12 kB / 315.1 MB, free: 10.13 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.806e-05/0.1048, allocations: 8 kB / 315.1 MB, free: 10.12 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006975/0.1055, allocations: 222.5 kB / 315.4 MB, free: 9.898 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002886/0.1084, allocations: 1.395 MB / 316.8 MB, free: 8.402 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004987/0.1089, allocations: 170.5 kB / 316.9 MB, free: 8.227 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.516e-05/0.1089, allocations: 0 / 316.9 MB, free: 8.227 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004389/0.1094, allocations: 159.6 kB / 317.1 MB, free: 8.051 MB / 266.7 MB Notification: Performance of pre-optimization done (n=21): time 2.355e-06/0.1094, allocations: 0 / 317.1 MB, free: 8.051 MB / 266.7 MB Notification: Performance of matching and sorting (n=21): time 0.001784/0.1112, allocations: 418.7 kB / 317.5 MB, free: 7.617 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.125e-05/0.1113, allocations: 106.8 kB / 317.6 MB, free: 7.488 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003849/0.1117, allocations: 266.9 kB / 317.9 MB, free: 7.223 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 3.657e-05/0.1117, allocations: 29.7 kB / 317.9 MB, free: 7.188 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000193/0.1119, allocations: 207.9 kB / 318.1 MB, free: 6.98 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.286e-05/0.112, allocations: 78.92 kB / 318.2 MB, free: 6.902 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.43e-05/0.1121, allocations: 8 kB / 318.2 MB, free: 6.895 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.000176/0.1123, allocations: 338.8 kB / 318.5 MB, free: 6.555 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002637/0.1125, allocations: 72.62 kB / 318.6 MB, free: 6.484 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003887/0.1129, allocations: 185.5 kB / 318.8 MB, free: 6.262 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003018/0.1133, allocations: 93.17 kB / 318.8 MB, free: 6.172 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.402e-06/0.1133, allocations: 4 kB / 318.8 MB, free: 6.168 MB / 266.7 MB Notification: Performance of matching and sorting (n=39) (initialization): time 0.00111/0.1144, allocations: 335.8 kB / 319.2 MB, free: 5.832 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.279e-05/0.1144, allocations: 12.28 kB / 319.2 MB, free: 5.82 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.028e-05/0.1145, allocations: 8 kB / 319.2 MB, free: 5.812 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003616/0.1148, allocations: 60.75 kB / 319.3 MB, free: 5.75 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004458/0.1153, allocations: 59.91 kB / 319.3 MB, free: 5.691 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001792/0.1171, allocations: 1.416 MB / 320.7 MB, free: 4.137 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004508/0.1176, allocations: 51.67 kB / 320.8 MB, free: 4.086 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.48e-05/0.1176, allocations: 8 kB / 320.8 MB, free: 4.078 MB / 266.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 12 * Number of states: 0 () * Number of discrete variables: 8 ($whenCondition1,switch1.off,$PRE.switch2.off,switch2.off,$PRE.switch2.quenched,switch2.quenched,$PRE.switch2.tSwitch,switch2.tSwitch) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (38): * Single equations (assignments): 37 * 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 {1 1} Notification: Performance of prepare postOptimizeDAE: time 0.000238/0.1179, allocations: 145.8 kB / 320.9 MB, free: 3.926 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.644e-05/0.118, allocations: 31.91 kB / 321 MB, free: 3.895 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.722e-05/0.118, allocations: 34.12 kB / 321 MB, free: 3.863 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.354e-06/0.1181, allocations: 3.984 kB / 321 MB, free: 3.859 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.02e-06/0.1181, allocations: 4 kB / 321 MB, free: 3.855 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000159/0.1182, allocations: 120.6 kB / 321.1 MB, free: 3.719 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.864e-05/0.1183, allocations: 4 kB / 321.1 MB, free: 3.715 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000313/0.1187, allocations: 19.98 kB / 321.1 MB, free: 3.695 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.493e-05/0.1188, allocations: 23.97 kB / 321.2 MB, free: 3.672 MB / 266.7 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.0009927/0.1198, allocations: 309.6 kB / 321.5 MB, free: 3.359 MB / 266.7 MB Notification: Performance of postOpt detectDAEmodeSparsePattern (simulation): time 0.0009013/0.1207, allocations: 453.3 kB / 321.9 MB, free: 2.902 MB / 266.7 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.0002406/0.1209, allocations: 79.94 kB / 322 MB, free: 2.824 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.000256/0.1212, allocations: 186 kB / 322.2 MB, free: 2.645 MB / 266.7 MB Notification: Performance of Backend: time 7.92e-07/0.1212, allocations: 0 / 322.2 MB, free: 2.645 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0009768/0.1222, allocations: 332.8 kB / 322.5 MB, free: 2.297 MB / 266.7 MB Notification: Performance of SimCode: time 0.001827/0.124, allocations: 1.232 MB / 323.7 MB, free: 1.023 MB / 266.7 MB Notification: Performance of Templates: time 0.0103/0.1344, allocations: 2.832 MB / 326.6 MB, free: 14.2 MB / 282.7 MB