Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Modelica_3.2.2_cpp_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_cpp_Modelica.Electrical.Analog.Examples.SwitchWithArc") Notification: Performance of loadModel(Modelica): time 2.09/2.09, allocations: 194.8 MB / 212.3 MB, free: 3.008 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003623/0.0003624, allocations: 12 kB / 264.5 MB, free: 13.61 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0968/0.09719, allocations: 44.51 MB / 309 MB, free: 1.039 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4067/0.5039, allocations: 73.83 MB / 382.8 MB, free: 14.86 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002849/0.5043, allocations: 74.55 kB / 382.9 MB, free: 14.86 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02259/0.5269, allocations: 5.421 MB / 388.3 MB, free: 14.16 MB / 314.7 MB Notification: Performance of FrontEnd: time 2.485e-06/0.5269, allocations: 0 / 388.3 MB, free: 14.16 MB / 314.7 MB Notification: Performance of Transformations before backend: time 2.598e-05/0.527, allocations: 6.312 kB / 388.3 MB, free: 14.16 MB / 314.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.001279/0.5283, allocations: 0.5688 MB / 388.9 MB, free: 13.72 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.619e-05/0.5283, allocations: 9.031 kB / 388.9 MB, free: 13.72 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001131/0.5284, allocations: 38.89 kB / 388.9 MB, free: 13.7 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003578/0.5288, allocations: 248.3 kB / 389.2 MB, free: 13.48 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.755e-05/0.5289, allocations: 75.78 kB / 389.2 MB, free: 13.41 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.31e-05/0.529, allocations: 30.91 kB / 389.3 MB, free: 13.41 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006742/0.5297, allocations: 303.6 kB / 389.6 MB, free: 13.34 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.561e-05/0.5297, allocations: 0 / 389.6 MB, free: 13.34 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.237e-05/0.5298, allocations: 7 kB / 389.6 MB, free: 13.34 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.015e-05/0.5298, allocations: 7.812 kB / 389.6 MB, free: 13.34 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004965/0.5303, allocations: 186.4 kB / 389.8 MB, free: 13.34 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002291/0.5326, allocations: 1.142 MB / 390.9 MB, free: 12.7 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004028/0.533, allocations: 163 kB / 391.1 MB, free: 12.66 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.132e-05/0.5331, allocations: 4.188 kB / 391.1 MB, free: 12.66 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003458/0.5334, allocations: 161.8 kB / 391.2 MB, free: 12.58 MB / 314.7 MB Notification: Performance of pre-optimization done (n=21): time 2.785e-06/0.5335, allocations: 0 / 391.2 MB, free: 12.58 MB / 314.7 MB Notification: Performance of matching and sorting (n=21): time 0.001565/0.535, allocations: 398.3 kB / 391.6 MB, free: 12.42 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.084e-05/0.5351, allocations: 109.6 kB / 391.7 MB, free: 12.3 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002811/0.5354, allocations: 221.3 kB / 391.9 MB, free: 12.19 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 3.104e-05/0.5355, allocations: 28.89 kB / 392 MB, free: 12.16 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001048/0.5356, allocations: 233.2 kB / 392.2 MB, free: 11.97 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.907e-05/0.5357, allocations: 75 kB / 392.3 MB, free: 11.93 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.919e-05/0.5357, allocations: 13.34 kB / 392.3 MB, free: 11.92 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 6.472e-05/0.5358, allocations: 316.3 kB / 392.6 MB, free: 11.61 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001832/0.536, allocations: 65.86 kB / 392.7 MB, free: 11.61 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000226/0.5362, allocations: 130.4 kB / 392.8 MB, free: 11.54 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001992/0.5364, allocations: 75.78 kB / 392.9 MB, free: 11.53 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.307e-06/0.5364, allocations: 0 / 392.9 MB, free: 11.53 MB / 314.7 MB Notification: Performance of matching and sorting (n=33) (initialization): time 0.0005733/0.537, allocations: 245.7 kB / 393.1 MB, free: 11.47 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.743e-05/0.537, allocations: 7.688 kB / 393.1 MB, free: 11.46 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.835e-06/0.5371, allocations: 7.844 kB / 393.1 MB, free: 11.46 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003694/0.5374, allocations: 54.09 kB / 393.2 MB, free: 11.45 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003407/0.5378, allocations: 53.03 kB / 393.2 MB, free: 11.45 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001431/0.5392, allocations: 1.403 MB / 394.6 MB, free: 10.11 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004253/0.5397, allocations: 45.92 kB / 394.7 MB, free: 10.09 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.693e-05/0.5397, allocations: 10.84 kB / 394.7 MB, free: 10.09 MB / 314.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 6 * 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 (32): * Single equations (assignments): 31 * 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.000206/0.54, allocations: 145.1 kB / 394.8 MB, free: 9.965 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.706e-05/0.54, allocations: 19.19 kB / 394.8 MB, free: 9.957 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.01e-05/0.5401, allocations: 29.75 kB / 394.9 MB, free: 9.949 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.567e-06/0.5401, allocations: 4 kB / 394.9 MB, free: 9.945 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.46e-06/0.5401, allocations: 0 / 394.9 MB, free: 9.945 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.299e-06/0.5401, allocations: 3.844 kB / 394.9 MB, free: 9.945 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003798/0.5405, allocations: 321.8 kB / 395.2 MB, free: 9.75 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.427e-06/0.5405, allocations: 0 / 395.2 MB, free: 9.75 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002899/0.5408, allocations: 33.8 kB / 395.2 MB, free: 9.746 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002865/0.5411, allocations: 54.36 kB / 395.3 MB, free: 9.734 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.541e-05/0.5412, allocations: 10.22 kB / 395.3 MB, free: 9.734 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001258/0.5424, allocations: 1.338 MB / 396.6 MB, free: 8.461 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.635e-06/0.5425, allocations: 0 / 396.6 MB, free: 8.461 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009777/0.5435, allocations: 322.7 kB / 396.9 MB, free: 8.367 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001703/0.5437, allocations: 119 kB / 397.1 MB, free: 8.258 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.846e-05/0.5437, allocations: 3.375 kB / 397.1 MB, free: 8.258 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002942/0.544, allocations: 19.42 kB / 397.1 MB, free: 8.258 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001301/0.5442, allocations: 39.06 kB / 397.1 MB, free: 8.254 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.96e-05/0.5442, allocations: 7.188 kB / 397.1 MB, free: 8.254 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.000201/0.5444, allocations: 167 kB / 397.3 MB, free: 8.172 MB / 314.7 MB Notification: Performance of sort global known variables: time 4.41e-07/0.5444, allocations: 3.938 kB / 397.3 MB, free: 8.168 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0005417/0.545, allocations: 76.09 kB / 397.4 MB, free: 8.16 MB / 314.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 2 (inductor1.i,inductor2.i) * Number of discrete variables: 6 ($whenCondition2,$whenCondition1,booleanPulse.pulsStart,switch2.off,switch2.quenched,switch2.tSwitch) * Number of discrete states: 2 (switch2.quenched,switch2.off) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (20): * Single equations (assignments): 17 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * 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 Backend phase and start with SimCode phase: time 0.0001833/0.5452, allocations: 108.8 kB / 397.5 MB, free: 8.07 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.0007364/0.5459, allocations: 282.5 kB / 397.7 MB, free: 7.949 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 4.89e-06/0.546, allocations: 4.219 kB / 397.7 MB, free: 7.949 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003648/0.5463, allocations: 189.1 kB / 397.9 MB, free: 7.836 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004482/0.5468, allocations: 42.8 kB / 398 MB, free: 7.824 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002598/0.5494, allocations: 0.8483 MB / 398.8 MB, free: 7.344 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002154/0.5497, allocations: 0.7677 MB / 399.6 MB, free: 6.645 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001081/0.5498, allocations: 19.06 kB / 399.6 MB, free: 6.637 MB / 314.7 MB Notification: Performance of SimCode: time 1.041e-06/0.5498, allocations: 0 / 399.6 MB, free: 6.637 MB / 314.7 MB Notification: Performance of Templates: time 0.008237/0.5581, allocations: 4.047 MB / 403.7 MB, free: 6.406 MB / 314.7 MB