Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/../OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Modelica_3.1_cpp_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.conf.json Using package ModelicaServices with version 1.0 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OMCompiler/build/lib/omlibrary/ModelicaServices 1.0/package.mo) Using package Modelica with version 3.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OMCompiler/build/lib/omlibrary/Modelica 3.1/package.mo) Running command: translateModel(Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc,tolerance=1e-06,outputFormat="empty",numberOfIntervals=48000,variableFilter="",fileNamePrefix="Modelica_3.1_cpp_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc") Notification: Performance of loadModel(Modelica): time 1.068/1.068, allocations: 111.3 MB / 119.1 MB, free: 11.16 MB / 106.7 MB Notification: Performance of FrontEnd - loaded program: time 2.018e-05/2.028e-05, allocations: 4 kB / 148.1 MB, free: 6.23 MB / 122.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.04541/0.04545, allocations: 25.17 MB / 173.3 MB, free: 13.02 MB / 154.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1788/0.2242, allocations: 36.03 MB / 209.3 MB, free: 7 MB / 170.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001939/0.2245, allocations: 64.84 kB / 209.4 MB, free: 7 MB / 170.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02158/0.2461, allocations: 5.734 MB / 215.1 MB, free: 6.293 MB / 170.7 MB Notification: Performance of FrontEnd: time 2.274e-06/0.2461, allocations: 0 / 215.1 MB, free: 6.293 MB / 170.7 MB Notification: Performance of Transformations before backend: time 2.016e-05/0.2462, allocations: 9.062 kB / 215.1 MB, free: 6.293 MB / 170.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.0008667/0.2471, allocations: 0.5777 MB / 215.7 MB, free: 5.855 MB / 170.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.058e-05/0.2471, allocations: 7.469 kB / 215.7 MB, free: 5.855 MB / 170.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.396e-05/0.2472, allocations: 38.25 kB / 215.7 MB, free: 5.836 MB / 170.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003288/0.2476, allocations: 269.1 kB / 216 MB, free: 5.602 MB / 170.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.42e-05/0.2477, allocations: 71.84 kB / 216.1 MB, free: 5.535 MB / 170.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.155e-05/0.2477, allocations: 19.28 kB / 216.1 MB, free: 5.535 MB / 170.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0004415/0.2482, allocations: 185.3 kB / 216.3 MB, free: 5.531 MB / 170.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000515/0.2487, allocations: 269.5 kB / 216.5 MB, free: 5.457 MB / 170.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.642e-05/0.2487, allocations: 3.938 kB / 216.5 MB, free: 5.453 MB / 170.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.828e-05/0.2488, allocations: 3.938 kB / 216.6 MB, free: 5.449 MB / 170.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.012e-05/0.2488, allocations: 7.406 kB / 216.6 MB, free: 5.449 MB / 170.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002094/0.2509, allocations: 1.332 MB / 217.9 MB, free: 4.617 MB / 170.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003885/0.2514, allocations: 161.9 kB / 218 MB, free: 4.574 MB / 170.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001418/0.2515, allocations: 72.91 kB / 218.1 MB, free: 4.562 MB / 170.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.05e-05/0.2515, allocations: 3.906 kB / 218.1 MB, free: 4.562 MB / 170.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002717/0.2518, allocations: 138.5 kB / 218.3 MB, free: 4.469 MB / 170.7 MB Notification: Performance of pre-optimization done (n=19): time 3.283e-06/0.2519, allocations: 0 / 218.3 MB, free: 4.469 MB / 170.7 MB Notification: Performance of matching and sorting (n=19): time 0.0006218/0.2525, allocations: 193.5 kB / 218.4 MB, free: 4.395 MB / 170.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.871e-05/0.2525, allocations: 114.5 kB / 218.6 MB, free: 4.266 MB / 170.7 MB [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OMCompiler/build/lib/omlibrary/Modelica 3.1/Electrical/Analog/Basic.mo:68:3-69:40:writable] Warning: Parameter resistor2.R has no value, and is fixed during initialization (fixed=true), using available start value (start=1.0) as default value. [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OMCompiler/build/lib/omlibrary/Modelica 3.1/Electrical/Analog/Basic.mo:68:3-69:40:writable] Warning: Parameter resistor1.R has no value, and is fixed during initialization (fixed=true), using available start value (start=1.0) as default value. Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002392/0.2528, allocations: 200.5 kB / 218.8 MB, free: 4.156 MB / 170.7 MB Notification: Performance of collectPreVariables (initialization): time 2.517e-05/0.2528, allocations: 25.7 kB / 218.8 MB, free: 4.125 MB / 170.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001068/0.2529, allocations: 273.2 kB / 219 MB, free: 3.898 MB / 170.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.107e-05/0.253, allocations: 58.17 kB / 219.1 MB, free: 3.855 MB / 170.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.351e-05/0.253, allocations: 224 / 219.1 MB, free: 3.855 MB / 170.7 MB Notification: Performance of setup shared object (initialization): time 5.359e-05/0.2531, allocations: 322 kB / 219.4 MB, free: 3.539 MB / 170.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001289/0.2532, allocations: 62.17 kB / 219.5 MB, free: 3.531 MB / 170.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001702/0.2534, allocations: 148.7 kB / 219.6 MB, free: 3.418 MB / 170.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001567/0.2536, allocations: 67.59 kB / 219.7 MB, free: 3.402 MB / 170.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.003e-06/0.2536, allocations: 7.906 kB / 219.7 MB, free: 3.398 MB / 170.7 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.0007045/0.2543, allocations: 260.3 kB / 220 MB, free: 3.312 MB / 170.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.922e-05/0.2544, allocations: 7.969 kB / 220 MB, free: 3.312 MB / 170.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.091e-06/0.2544, allocations: 4 kB / 220 MB, free: 3.309 MB / 170.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000279/0.2547, allocations: 54.75 kB / 220 MB, free: 3.289 MB / 170.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003502/0.255, allocations: 81.36 kB / 220.1 MB, free: 3.27 MB / 170.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001202/0.2563, allocations: 1.366 MB / 221.5 MB, free: 1.941 MB / 170.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003406/0.2566, allocations: 30.7 kB / 221.5 MB, free: 1.93 MB / 170.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.24e-05/0.2567, allocations: 18.36 kB / 221.5 MB, free: 1.926 MB / 170.7 MB Warning: Assuming fixed start value for the following 5 variables: switch2.quenched:DISCRETE(fixed = false protected = true ) type: Boolean switch2.tSwitch:DISCRETE(unit = "s" fixed = false protected = true ) type: Real switch2.off:DISCRETE(fixed = false protected = true ) type: Boolean inductor1.i:VARIABLE(unit = "A" ) "Current flowing from pin p to pin n" type: Real inductor2.i:VARIABLE(unit = "A" ) "Current flowing from pin p to pin n" type: Real Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: switch2.v:VARIABLE(unit = "V" ) type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 10 * 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 () * 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.0001719/0.2569, allocations: 133.3 kB / 221.6 MB, free: 1.797 MB / 170.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.874e-05/0.2569, allocations: 23.12 kB / 221.7 MB, free: 1.785 MB / 170.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.148e-05/0.257, allocations: 27.73 kB / 221.7 MB, free: 1.777 MB / 170.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.153e-06/0.257, allocations: 3.844 kB / 221.7 MB, free: 1.777 MB / 170.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.827e-06/0.257, allocations: 3.938 kB / 221.7 MB, free: 1.773 MB / 170.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.804e-06/0.257, allocations: 4 kB / 221.7 MB, free: 1.77 MB / 170.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003195/0.2574, allocations: 285 kB / 222 MB, free: 1.559 MB / 170.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.226e-06/0.2574, allocations: 0 / 222 MB, free: 1.559 MB / 170.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003138/0.2577, allocations: 61.7 kB / 222 MB, free: 1.543 MB / 170.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002312/0.258, allocations: 50.58 kB / 222.1 MB, free: 1.523 MB / 170.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.53e-05/0.258, allocations: 7.609 kB / 222.1 MB, free: 1.52 MB / 170.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001445/0.2594, allocations: 1.276 MB / 223.4 MB, free: 16.28 MB / 186.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.924e-06/0.2595, allocations: 0 / 223.4 MB, free: 16.28 MB / 186.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008959/0.2604, allocations: 308.8 kB / 223.7 MB, free: 16.16 MB / 186.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002376/0.2607, allocations: 111.8 kB / 223.8 MB, free: 16.05 MB / 186.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.057e-05/0.2608, allocations: 0 / 223.8 MB, free: 16.05 MB / 186.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003557/0.2611, allocations: 23.59 kB / 223.8 MB, free: 16.04 MB / 186.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001486/0.2613, allocations: 34.61 kB / 223.8 MB, free: 16.03 MB / 186.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.428e-05/0.2614, allocations: 7.859 kB / 223.8 MB, free: 16.02 MB / 186.7 MB Notification: Performance of sorting global known variables: time 0.0002649/0.2616, allocations: 159.2 kB / 224 MB, free: 15.94 MB / 186.7 MB Notification: Performance of sort global known variables: time 1.135e-06/0.2617, allocations: 0 / 224 MB, free: 15.94 MB / 186.7 MB Notification: Performance of remove unused functions: time 0.0005675/0.2622, allocations: 80.62 kB / 224.1 MB, free: 15.92 MB / 186.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: 4 ($whenCondition1,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 (18): * Single equations (assignments): 16 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * 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.0001791/0.2624, allocations: 106.5 kB / 224.2 MB, free: 15.83 MB / 186.7 MB Notification: Performance of simCode: created initialization part: time 0.0006002/0.263, allocations: 268.8 kB / 224.4 MB, free: 15.71 MB / 186.7 MB Notification: Performance of simCode: created event and clocks part: time 3.599e-06/0.2631, allocations: 0 / 224.4 MB, free: 15.71 MB / 186.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002988/0.2634, allocations: 180.6 kB / 224.6 MB, free: 15.59 MB / 186.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003797/0.2638, allocations: 34.91 kB / 224.7 MB, free: 15.58 MB / 186.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009635/0.2648, allocations: 468.2 kB / 225.1 MB, free: 15.27 MB / 186.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004448/0.2652, allocations: 0.7807 MB / 225.9 MB, free: 14.52 MB / 186.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.255e-05/0.2653, allocations: 23.05 kB / 225.9 MB, free: 14.51 MB / 186.7 MB Notification: Performance of SimCode: time 1.726e-06/0.2653, allocations: 0 / 225.9 MB, free: 14.51 MB / 186.7 MB Notification: Performance of Templates: time 0.007655/0.273, allocations: 4.299 MB / 230.2 MB, free: 12.36 MB / 186.7 MB