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.SwitchWithArc.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.SwitchWithArc,tolerance=1e-06,outputFormat="mat",numberOfIntervals=16000,variableFilter="time|inductor1.i|inductor2.i",fileNamePrefix="Modelica_3.2.2_Modelica.Electrical.Analog.Examples.SwitchWithArc") Notification: Performance of loadModel(Modelica): time 2.122/2.122, allocations: 194.9 MB / 211.7 MB, free: 3 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003473/0.0003475, allocations: 8 kB / 264.6 MB, free: 12.95 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09159/0.09196, allocations: 44.51 MB / 309.1 MB, free: 376 kB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.SwitchWithArc): time 0.00387/0.09588, allocations: 2.313 MB / 311.4 MB, free: 14.04 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.001819/0.09775, allocations: 0.7569 MB / 312.1 MB, free: 13.27 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001767/0.09797, allocations: 4 kB / 312.1 MB, free: 13.27 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 9.103e-05/0.09807, allocations: 35.69 kB / 312.2 MB, free: 13.23 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0003256/0.09841, allocations: 111.7 kB / 312.3 MB, free: 13.12 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004028/0.09883, allocations: 83.78 kB / 312.4 MB, free: 13.04 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0004605/0.0993, allocations: 247.3 kB / 312.6 MB, free: 12.8 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002586/0.09957, allocations: 86.34 kB / 312.7 MB, free: 12.71 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001883/0.09978, allocations: 119.6 kB / 312.8 MB, free: 12.6 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002573/0.1, allocations: 127.5 kB / 312.9 MB, free: 12.47 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 5.741e-05/0.1001, allocations: 16 kB / 312.9 MB, free: 12.46 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 7.544e-05/0.1002, allocations: 16 kB / 313 MB, free: 12.44 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 7.993e-05/0.1003, allocations: 59.75 kB / 313 MB, free: 12.38 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001019/0.1004, allocations: 81.58 kB / 313.1 MB, free: 12.3 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0003827/0.1008, allocations: 255.5 kB / 313.4 MB, free: 12.05 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.146e-06/0.1008, allocations: 0 / 313.4 MB, free: 12.05 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.863e-06/0.1008, allocations: 0 / 313.4 MB, free: 12.05 MB / 266.7 MB Notification: Performance of Transformations before backend: time 7.163e-06/0.1008, allocations: 0 / 313.4 MB, free: 12.05 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: 71 * Number of variables: 71 Notification: Performance of Generate backend data structure: time 0.001358/0.1022, allocations: 0.5625 MB / 313.9 MB, free: 11.43 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.666e-05/0.1023, allocations: 8.031 kB / 313.9 MB, free: 11.43 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000105/0.1024, allocations: 35.62 kB / 314 MB, free: 11.39 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004049/0.1028, allocations: 251.2 kB / 314.2 MB, free: 11.11 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001021/0.1029, allocations: 76.06 kB / 314.3 MB, free: 11.02 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.179e-05/0.103, allocations: 35.98 kB / 314.3 MB, free: 10.98 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007547/0.1038, allocations: 293.7 kB / 314.6 MB, free: 10.68 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.511e-05/0.1038, allocations: 0 / 314.6 MB, free: 10.68 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.828e-05/0.1039, allocations: 12 kB / 314.6 MB, free: 10.67 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.227e-05/0.1039, allocations: 8 kB / 314.6 MB, free: 10.66 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005568/0.1045, allocations: 190.1 kB / 314.8 MB, free: 10.48 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002568/0.107, allocations: 1.143 MB / 315.9 MB, free: 9.254 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004719/0.1076, allocations: 162.5 kB / 316.1 MB, free: 9.086 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.543e-05/0.1076, allocations: 4.344 kB / 316.1 MB, free: 9.082 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004083/0.108, allocations: 151.5 kB / 316.3 MB, free: 8.914 MB / 266.7 MB Notification: Performance of pre-optimization done (n=21): time 3.066e-06/0.108, allocations: 0 / 316.3 MB, free: 8.914 MB / 266.7 MB Notification: Performance of matching and sorting (n=21): time 0.001637/0.1097, allocations: 403.8 kB / 316.7 MB, free: 8.496 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.663e-05/0.1098, allocations: 106.8 kB / 316.8 MB, free: 8.367 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003319/0.1101, allocations: 232.9 kB / 317 MB, free: 8.129 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 3.647e-05/0.1102, allocations: 29.7 kB / 317 MB, free: 8.094 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001643/0.1104, allocations: 176.2 kB / 317.2 MB, free: 7.918 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 8.956e-05/0.1105, allocations: 75 kB / 317.3 MB, free: 7.844 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.399e-05/0.1105, allocations: 4 kB / 317.3 MB, free: 7.84 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001582/0.1107, allocations: 330.8 kB / 317.6 MB, free: 7.508 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002101/0.1109, allocations: 67.97 kB / 317.7 MB, free: 7.441 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002948/0.1112, allocations: 140.8 kB / 317.8 MB, free: 7.273 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002457/0.1115, allocations: 77.03 kB / 317.9 MB, free: 7.199 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.677e-06/0.1115, allocations: 0 / 317.9 MB, free: 7.199 MB / 266.7 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.0007304/0.1122, allocations: 279.9 kB / 318.1 MB, free: 6.918 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.119e-05/0.1122, allocations: 4 kB / 318.1 MB, free: 6.914 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.27e-05/0.1123, allocations: 7.984 kB / 318.1 MB, free: 6.906 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000385/0.1127, allocations: 57.05 kB / 318.2 MB, free: 6.848 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003783/0.1131, allocations: 51.91 kB / 318.3 MB, free: 6.797 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001818/0.1149, allocations: 1.412 MB / 319.7 MB, free: 5.254 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004186/0.1153, allocations: 35.73 kB / 319.7 MB, free: 5.219 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.212e-05/0.1154, allocations: 12 kB / 319.7 MB, free: 5.207 MB / 266.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 8 * Number of states: 0 () * Number of discrete variables: 10 ($whenCondition2,$whenCondition1,$PRE.booleanPulse.pulsStart,booleanPulse.pulsStart,$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 (34): * Single equations (assignments): 33 * 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.0002404/0.1157, allocations: 149.9 kB / 319.9 MB, free: 5.051 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.207e-05/0.1157, allocations: 19.81 kB / 319.9 MB, free: 5.031 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.201e-05/0.1158, allocations: 30.17 kB / 319.9 MB, free: 5 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.62e-06/0.1158, allocations: 0 / 319.9 MB, free: 5 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.751e-06/0.1159, allocations: 3.984 kB / 319.9 MB, free: 4.996 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000152/0.116, allocations: 108.8 kB / 320 MB, free: 4.871 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.509e-05/0.1161, allocations: 8 kB / 320 MB, free: 4.863 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003052/0.1164, allocations: 23.98 kB / 320.1 MB, free: 4.84 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000103/0.1165, allocations: 23.91 kB / 320.1 MB, free: 4.816 MB / 266.7 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.0009275/0.1175, allocations: 289.6 kB / 320.4 MB, free: 4.523 MB / 266.7 MB Notification: Performance of postOpt detectDAEmodeSparsePattern (simulation): time 0.0007891/0.1183, allocations: 429.2 kB / 320.8 MB, free: 4.09 MB / 266.7 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.0002028/0.1185, allocations: 67.97 kB / 320.8 MB, free: 4.023 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.0002381/0.1188, allocations: 160.5 kB / 321 MB, free: 3.863 MB / 266.7 MB Notification: Performance of Backend: time 9.71e-07/0.1188, allocations: 0 / 321 MB, free: 3.863 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.001042/0.1198, allocations: 314.7 kB / 321.3 MB, free: 3.539 MB / 266.7 MB Notification: Performance of SimCode: time 0.001824/0.1217, allocations: 1.154 MB / 322.5 MB, free: 2.332 MB / 266.7 MB Notification: Performance of Templates: time 0.00993/0.1317, allocations: 2.732 MB / 325.2 MB, free: 15.6 MB / 282.7 MB