Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Modelica_3.2.1_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.conf.json Using package ModelicaServices with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.1/package.mo) Using package Complex with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.1.mo) Using package Modelica with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.1/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.1_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc") Notification: Performance of loadModel(Modelica): time 1.884/1.884, allocations: 171.2 MB / 186.7 MB, free: 1.121 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003496/0.0003497, allocations: 8 kB / 233.9 MB, free: 2.398 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08127/0.08164, allocations: 38.77 MB / 272.6 MB, free: 11.55 MB / 234.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc): time 0.004222/0.08592, allocations: 2.527 MB / 275.2 MB, free: 9 MB / 234.7 MB Notification: Performance of NFInst.instExpressions: time 0.001758/0.08772, allocations: 0.7565 MB / 275.9 MB, free: 8.242 MB / 234.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001835/0.08794, allocations: 4 kB / 275.9 MB, free: 8.238 MB / 234.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001103/0.08806, allocations: 47.67 kB / 276 MB, free: 8.191 MB / 234.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0003443/0.08842, allocations: 131.6 kB / 276.1 MB, free: 8.062 MB / 234.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003873/0.08882, allocations: 79.84 kB / 276.2 MB, free: 7.984 MB / 234.7 MB Notification: Performance of NFFlatten.flatten: time 0.0004827/0.08932, allocations: 287.3 kB / 276.5 MB, free: 7.703 MB / 234.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002624/0.0896, allocations: 107 kB / 276.6 MB, free: 7.602 MB / 234.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002398/0.08985, allocations: 131.5 kB / 276.7 MB, free: 7.473 MB / 234.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002777/0.09015, allocations: 155.3 kB / 276.8 MB, free: 7.32 MB / 234.7 MB Notification: Performance of NFPackage.collectConstants: time 6.45e-05/0.09022, allocations: 16 kB / 276.9 MB, free: 7.305 MB / 234.7 MB Notification: Performance of NFFlatten.collectFunctions: time 8.666e-05/0.09034, allocations: 20 kB / 276.9 MB, free: 7.285 MB / 234.7 MB Notification: Performance of NFScalarize.scalarize: time 9.127e-05/0.09044, allocations: 59.77 kB / 276.9 MB, free: 7.227 MB / 234.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001283/0.09058, allocations: 93.52 kB / 277 MB, free: 7.129 MB / 234.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0004667/0.09106, allocations: 303.4 kB / 277.3 MB, free: 6.832 MB / 234.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.096e-06/0.09107, allocations: 0 / 277.3 MB, free: 6.832 MB / 234.7 MB Notification: Performance of FrontEnd: time 2.144e-06/0.09109, allocations: 0 / 277.3 MB, free: 6.832 MB / 234.7 MB Notification: Performance of Transformations before backend: time 6.622e-06/0.09111, allocations: 4 kB / 277.3 MB, free: 6.828 MB / 234.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 78 * Number of variables: 78 Notification: Performance of Generate backend data structure: time 0.001474/0.09259, allocations: 0.6196 MB / 277.9 MB, free: 6.16 MB / 234.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.407e-05/0.09264, allocations: 8.031 kB / 277.9 MB, free: 6.152 MB / 234.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000112/0.09276, allocations: 35.62 kB / 278 MB, free: 6.117 MB / 234.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004454/0.09322, allocations: 271.1 kB / 278.2 MB, free: 5.812 MB / 234.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001005/0.09334, allocations: 80.02 kB / 278.3 MB, free: 5.723 MB / 234.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.75e-05/0.09344, allocations: 32 kB / 278.4 MB, free: 5.691 MB / 234.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009327/0.09438, allocations: 342.6 kB / 278.7 MB, free: 5.336 MB / 234.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.763e-05/0.09441, allocations: 3.938 kB / 278.7 MB, free: 5.332 MB / 234.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.063e-05/0.09447, allocations: 12 kB / 278.7 MB, free: 5.32 MB / 234.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.497e-05/0.0945, allocations: 8 kB / 278.7 MB, free: 5.312 MB / 234.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007962/0.0953, allocations: 234.1 kB / 278.9 MB, free: 5.086 MB / 234.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003026/0.09835, allocations: 1.414 MB / 280.4 MB, free: 3.57 MB / 234.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007484/0.09912, allocations: 202.6 kB / 280.6 MB, free: 3.363 MB / 234.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.928e-05/0.09917, allocations: 7.938 kB / 280.6 MB, free: 3.355 MB / 234.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005009/0.09968, allocations: 168.8 kB / 280.7 MB, free: 3.172 MB / 234.7 MB Notification: Performance of pre-optimization done (n=19): time 3.026e-06/0.0997, allocations: 0 / 280.7 MB, free: 3.172 MB / 234.7 MB Notification: Performance of matching and sorting (n=19): time 0.001946/0.1017, allocations: 447.4 kB / 281.2 MB, free: 2.707 MB / 234.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.217e-05/0.1017, allocations: 114.8 kB / 281.3 MB, free: 2.57 MB / 234.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000389/0.1021, allocations: 270.9 kB / 281.5 MB, free: 2.297 MB / 234.7 MB Notification: Performance of collectPreVariables (initialization): time 3.496e-05/0.1022, allocations: 29.7 kB / 281.6 MB, free: 2.262 MB / 234.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000209/0.1024, allocations: 203.9 kB / 281.8 MB, free: 2.059 MB / 234.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.834e-05/0.1025, allocations: 67.09 kB / 281.8 MB, free: 1.992 MB / 234.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.052e-05/0.1025, allocations: 4 kB / 281.8 MB, free: 1.988 MB / 234.7 MB Notification: Performance of setup shared object (initialization): time 0.0001526/0.1027, allocations: 338.8 kB / 282.2 MB, free: 1.648 MB / 234.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003437/0.1031, allocations: 87.95 kB / 282.3 MB, free: 1.562 MB / 234.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004304/0.1035, allocations: 191.4 kB / 282.4 MB, free: 1.332 MB / 234.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003647/0.1039, allocations: 95.95 kB / 282.5 MB, free: 1.238 MB / 234.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.218e-06/0.1039, allocations: 0 / 282.5 MB, free: 1.238 MB / 234.7 MB Notification: Performance of matching and sorting (n=37) (initialization): time 0.001002/0.1049, allocations: 329.9 kB / 282.9 MB, free: 0.9062 MB / 234.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.3e-05/0.1049, allocations: 6.031 kB / 282.9 MB, free: 0.9023 MB / 234.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.437e-05/0.105, allocations: 15.86 kB / 282.9 MB, free: 0.8867 MB / 234.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003774/0.1054, allocations: 57.17 kB / 282.9 MB, free: 0.8281 MB / 234.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000553/0.1059, allocations: 87.88 kB / 283 MB, free: 0.7422 MB / 234.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001871/0.1078, allocations: 1.416 MB / 284.4 MB, free: 15.19 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004653/0.1083, allocations: 47.67 kB / 284.5 MB, free: 15.14 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.431e-05/0.1084, allocations: 12 kB / 284.5 MB, free: 15.13 MB / 250.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: 7 ($whenCondition1,$PRE.switch2.off,switch2.off,$PRE.switch2.tSwitch,switch2.tSwitch,$PRE.switch2.quenched,switch2.quenched) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (36): * Single equations (assignments): 35 * 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.0002326/0.1086, allocations: 153.8 kB / 284.6 MB, free: 14.97 MB / 250.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.76e-05/0.1087, allocations: 31.61 kB / 284.7 MB, free: 14.94 MB / 250.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.684e-05/0.1088, allocations: 34.17 kB / 284.7 MB, free: 14.91 MB / 250.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.656e-06/0.1088, allocations: 3.984 kB / 284.7 MB, free: 14.9 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.504e-06/0.1088, allocations: 0 / 284.7 MB, free: 14.9 MB / 250.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001556/0.109, allocations: 116.7 kB / 284.8 MB, free: 14.77 MB / 250.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.016e-05/0.109, allocations: 8 kB / 284.8 MB, free: 14.76 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000324/0.1094, allocations: 23.98 kB / 284.9 MB, free: 14.74 MB / 250.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.759e-05/0.1095, allocations: 23.95 kB / 284.9 MB, free: 14.71 MB / 250.7 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.001272/0.1108, allocations: 344.7 kB / 285.2 MB, free: 14.37 MB / 250.7 MB Notification: Performance of postOpt detectDAEmodeSparsePattern (simulation): time 0.001121/0.1119, allocations: 490.6 kB / 285.7 MB, free: 13.88 MB / 250.7 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.0003148/0.1122, allocations: 80 kB / 285.8 MB, free: 13.8 MB / 250.7 MB Notification: Performance of sorting global known variables: time 0.0002646/0.1125, allocations: 193.9 kB / 286 MB, free: 13.61 MB / 250.7 MB Notification: Performance of Backend: time 9.12e-07/0.1125, allocations: 3.938 kB / 286 MB, free: 13.6 MB / 250.7 MB Notification: Performance of simCode: created initialization part: time 0.001057/0.1136, allocations: 337.1 kB / 286.3 MB, free: 13.25 MB / 250.7 MB Notification: Performance of SimCode: time 0.00184/0.1155, allocations: 1.237 MB / 287.5 MB, free: 11.96 MB / 250.7 MB Notification: Performance of Templates: time 0.01029/0.1258, allocations: 2.902 MB / 290.4 MB, free: 9.07 MB / 250.7 MB