Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/../OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Modelica_3.2.1_cpp_Modelica.Electrical.Analog.Examples.SwitchWithArc.conf.json Using package ModelicaServices with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.1/package.mo) Using package Complex with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OMCompiler/build/lib/omlibrary/Complex 3.2.1.mo) Using package Modelica with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OMCompiler/build/lib/omlibrary/Modelica 3.2.1/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.1_cpp_Modelica.Electrical.Analog.Examples.SwitchWithArc") Notification: Performance of loadModel(Modelica): time 1.649/1.649, allocations: 171.3 MB / 179.2 MB, free: 7.586 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 2.116e-05/2.125e-05, allocations: 4 kB / 222.5 MB, free: 8.711 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0675/0.06754, allocations: 38.76 MB / 261.3 MB, free: 1.863 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2764/0.344, allocations: 67.71 MB / 329 MB, free: 4.508 MB / 266.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002217/0.3443, allocations: 68.08 kB / 329.1 MB, free: 4.473 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02101/0.3653, allocations: 5.296 MB / 334.3 MB, free: 40 kB / 266.7 MB Notification: Performance of FrontEnd: time 4.415e-06/0.3654, allocations: 0 / 334.3 MB, free: 40 kB / 266.7 MB Notification: Performance of Transformations before backend: time 1.922e-05/0.3654, allocations: 7.938 kB / 334.4 MB, free: 32 kB / 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.001033/0.3664, allocations: 0.5363 MB / 334.9 MB, free: 15.47 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.337e-05/0.3665, allocations: 8.031 kB / 334.9 MB, free: 15.46 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001041/0.3666, allocations: 35.62 kB / 334.9 MB, free: 15.43 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004138/0.367, allocations: 255.3 kB / 335.2 MB, free: 15.16 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.565e-05/0.3671, allocations: 72.14 kB / 335.3 MB, free: 15.08 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.349e-05/0.3672, allocations: 16 kB / 335.3 MB, free: 15.06 MB / 282.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0004478/0.3677, allocations: 172.2 kB / 335.4 MB, free: 14.95 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005529/0.3683, allocations: 243.2 kB / 335.7 MB, free: 14.76 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.416e-05/0.3683, allocations: 0 / 335.7 MB, free: 14.76 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.582e-05/0.3683, allocations: 0 / 335.7 MB, free: 14.76 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.273e-05/0.3684, allocations: 8 kB / 335.7 MB, free: 14.75 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002246/0.3706, allocations: 1.087 MB / 336.8 MB, free: 13.75 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003416/0.371, allocations: 141.2 kB / 336.9 MB, free: 13.65 MB / 282.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001595/0.3712, allocations: 78.5 kB / 337 MB, free: 13.59 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.355e-05/0.3712, allocations: 8 kB / 337 MB, free: 13.59 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003301/0.3716, allocations: 142.4 kB / 337.1 MB, free: 13.45 MB / 282.7 MB Notification: Performance of pre-optimization done (n=21): time 5.937e-06/0.3716, allocations: 0 / 337.1 MB, free: 13.45 MB / 282.7 MB Notification: Performance of matching and sorting (n=21): time 0.0006976/0.3723, allocations: 213.8 kB / 337.3 MB, free: 13.27 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.969e-05/0.3724, allocations: 110.8 kB / 337.4 MB, free: 13.14 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002209/0.3726, allocations: 163.2 kB / 337.6 MB, free: 12.99 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 3.711e-05/0.3727, allocations: 29.69 kB / 337.6 MB, free: 12.96 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001698/0.3729, allocations: 236.1 kB / 337.9 MB, free: 12.75 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.429e-05/0.373, allocations: 69.66 kB / 337.9 MB, free: 12.69 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.459e-05/0.373, allocations: 3.938 kB / 337.9 MB, free: 12.68 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 0.0001664/0.3732, allocations: 318.5 kB / 338.2 MB, free: 12.37 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001412/0.3733, allocations: 58.94 kB / 338.3 MB, free: 12.33 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002029/0.3735, allocations: 119 kB / 338.4 MB, free: 12.22 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001629/0.3737, allocations: 65.8 kB / 338.5 MB, free: 12.18 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.259e-06/0.3737, allocations: 0 / 338.5 MB, free: 12.18 MB / 282.7 MB Notification: Performance of matching and sorting (n=33) (initialization): time 0.0005186/0.3743, allocations: 215.5 kB / 338.7 MB, free: 12 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.119e-05/0.3743, allocations: 7.953 kB / 338.7 MB, free: 12 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.195e-06/0.3743, allocations: 4 kB / 338.7 MB, free: 11.99 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003124/0.3746, allocations: 54.97 kB / 338.8 MB, free: 11.95 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002548/0.3749, allocations: 47.92 kB / 338.8 MB, free: 11.9 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001693/0.3766, allocations: 1.374 MB / 340.2 MB, free: 10.47 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002971/0.3769, allocations: 27.81 kB / 340.2 MB, free: 10.45 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.192e-05/0.377, allocations: 19.7 kB / 340.2 MB, free: 10.43 MB / 282.7 MB Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: switch2.v:VARIABLE(unit = "V" ) "Voltage drop between the two pins (= p.v - n.v)" type: Real 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.tSwitch,switch2.tSwitch,$PRE.switch2.quenched,switch2.quenched) * Number of discrete 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.0001876/0.3772, allocations: 112.9 kB / 340.3 MB, free: 10.31 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.607e-05/0.3773, allocations: 23.77 kB / 340.4 MB, free: 10.29 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.387e-05/0.3773, allocations: 23.95 kB / 340.4 MB, free: 10.27 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.542e-06/0.3774, allocations: 4 kB / 340.4 MB, free: 10.27 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.237e-06/0.3774, allocations: 0 / 340.4 MB, free: 10.27 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.755e-06/0.3774, allocations: 0 / 340.4 MB, free: 10.27 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004024/0.3778, allocations: 265.3 kB / 340.7 MB, free: 10.01 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.395e-06/0.3778, allocations: 4 kB / 340.7 MB, free: 10.01 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002505/0.3781, allocations: 43.88 kB / 340.7 MB, free: 9.969 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002546/0.3783, allocations: 52.62 kB / 340.7 MB, free: 9.922 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.174e-05/0.3784, allocations: 0 / 340.7 MB, free: 9.922 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001491/0.3799, allocations: 1.278 MB / 342 MB, free: 8.586 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.301e-06/0.3799, allocations: 8.188 kB / 342 MB, free: 8.578 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007737/0.3807, allocations: 298.9 kB / 342.3 MB, free: 8.332 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001514/0.3809, allocations: 120.5 kB / 342.4 MB, free: 8.203 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.278e-05/0.3809, allocations: 0 / 342.4 MB, free: 8.203 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002079/0.3812, allocations: 20.05 kB / 342.5 MB, free: 8.184 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001103/0.3813, allocations: 39.48 kB / 342.5 MB, free: 8.148 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.081e-05/0.3813, allocations: 4 kB / 342.5 MB, free: 8.145 MB / 282.7 MB Notification: Performance of sorting global known variables: time 0.0001461/0.3815, allocations: 132.1 kB / 342.6 MB, free: 8.035 MB / 282.7 MB Notification: Performance of sort global known variables: time 7.58e-07/0.3815, allocations: 0 / 342.6 MB, free: 8.035 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.0005397/0.382, allocations: 75.78 kB / 342.7 MB, free: 7.961 MB / 282.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.tSwitch,switch2.quenched) * Number of discrete states: 2 (switch2.quenched,switch2.off) * 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.0001813/0.3822, allocations: 103.2 kB / 342.8 MB, free: 7.852 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.0005892/0.3828, allocations: 263.3 kB / 343.1 MB, free: 7.633 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 3.96e-06/0.3829, allocations: 0 / 343.1 MB, free: 7.633 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003328/0.3832, allocations: 188.4 kB / 343.3 MB, free: 7.465 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002903/0.3835, allocations: 31.36 kB / 343.3 MB, free: 7.441 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001735/0.3853, allocations: 0.504 MB / 343.8 MB, free: 6.941 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004794/0.3858, allocations: 0.7672 MB / 344.6 MB, free: 6.148 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.993e-05/0.3858, allocations: 23.38 kB / 344.6 MB, free: 6.125 MB / 282.7 MB Notification: Performance of SimCode: time 2.125e-06/0.3859, allocations: 0 / 344.6 MB, free: 6.125 MB / 282.7 MB Notification: Performance of Templates: time 0.0078/0.3937, allocations: 3.866 MB / 348.4 MB, free: 2.289 MB / 282.7 MB