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.SwitchWithArc.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.SwitchWithArc,tolerance=1e-06,outputFormat="empty",numberOfIntervals=16000,variableFilter="",fileNamePrefix="Modelica_3.1_cpp_Modelica.Electrical.Analog.Examples.SwitchWithArc") Notification: Performance of loadModel(Modelica): time 0.9896/0.9896, allocations: 111.2 MB / 119.1 MB, free: 11.16 MB / 106.7 MB Notification: Performance of FrontEnd - loaded program: time 1.433e-05/1.442e-05, allocations: 0 / 148.1 MB, free: 6.234 MB / 122.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.04558/0.04563, allocations: 25.18 MB / 173.3 MB, free: 13.01 MB / 154.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.174/0.2196, allocations: 35.08 MB / 208.4 MB, free: 6.988 MB / 170.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001835/0.2199, allocations: 62.66 kB / 208.4 MB, free: 6.988 MB / 170.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01801/0.2379, allocations: 5.067 MB / 213.5 MB, free: 6.336 MB / 170.7 MB Notification: Performance of FrontEnd: time 1.948e-06/0.2379, allocations: 0 / 213.5 MB, free: 6.336 MB / 170.7 MB Notification: Performance of Transformations before backend: time 2.253e-05/0.238, allocations: 13.39 kB / 213.5 MB, free: 6.332 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: 71 * Number of variables: 71 Notification: Performance of Generate backend data structure: time 0.0008046/0.2388, allocations: 0.5302 MB / 214 MB, free: 5.918 MB / 170.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.804e-05/0.2388, allocations: 9.094 kB / 214.1 MB, free: 5.918 MB / 170.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.237e-05/0.2389, allocations: 36.53 kB / 214.1 MB, free: 5.902 MB / 170.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002889/0.2392, allocations: 248.5 kB / 214.3 MB, free: 5.68 MB / 170.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.489e-05/0.2393, allocations: 65.06 kB / 214.4 MB, free: 5.617 MB / 170.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.699e-05/0.2394, allocations: 19.12 kB / 214.4 MB, free: 5.617 MB / 170.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0003899/0.2398, allocations: 174.4 kB / 214.6 MB, free: 5.609 MB / 170.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004795/0.2403, allocations: 254.3 kB / 214.8 MB, free: 5.535 MB / 170.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.482e-05/0.2403, allocations: 3.938 kB / 214.8 MB, free: 5.531 MB / 170.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.381e-05/0.2404, allocations: 0 / 214.8 MB, free: 5.531 MB / 170.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.137e-06/0.2404, allocations: 7.75 kB / 214.8 MB, free: 5.531 MB / 170.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002334/0.2427, allocations: 1.078 MB / 215.9 MB, free: 4.926 MB / 170.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006032/0.2434, allocations: 145.7 kB / 216.1 MB, free: 4.898 MB / 170.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003048/0.2437, allocations: 67.75 kB / 216.1 MB, free: 4.891 MB / 170.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.452e-05/0.2438, allocations: 7.844 kB / 216.1 MB, free: 4.887 MB / 170.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004609/0.2442, allocations: 143.3 kB / 216.3 MB, free: 4.809 MB / 170.7 MB Notification: Performance of pre-optimization done (n=21): time 4.637e-06/0.2443, allocations: 0 / 216.3 MB, free: 4.809 MB / 170.7 MB Notification: Performance of matching and sorting (n=21): time 0.001097/0.2454, allocations: 211.3 kB / 216.5 MB, free: 4.75 MB / 170.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.014e-05/0.2455, allocations: 109 kB / 216.6 MB, free: 4.625 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. [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OMCompiler/build/lib/omlibrary/Modelica 3.1/Blocks/Sources.mo:2660:7-2661:28:writable] Warning: Parameter booleanPulse.period 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.0003619/0.2459, allocations: 168.5 kB / 216.8 MB, free: 4.52 MB / 170.7 MB Notification: Performance of collectPreVariables (initialization): time 4.305e-05/0.2459, allocations: 29.55 kB / 216.8 MB, free: 4.488 MB / 170.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001492/0.2461, allocations: 244.5 kB / 217 MB, free: 4.293 MB / 170.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.609e-05/0.2462, allocations: 66.69 kB / 217.1 MB, free: 4.25 MB / 170.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.484e-05/0.2463, allocations: 0 / 217.1 MB, free: 4.25 MB / 170.7 MB Notification: Performance of setup shared object (initialization): time 8.587e-05/0.2464, allocations: 331.3 kB / 217.4 MB, free: 3.93 MB / 170.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002469/0.2466, allocations: 52.83 kB / 217.5 MB, free: 3.926 MB / 170.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003077/0.247, allocations: 116.5 kB / 217.6 MB, free: 3.855 MB / 170.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002814/0.2473, allocations: 62.5 kB / 217.6 MB, free: 3.848 MB / 170.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.575e-06/0.2473, allocations: 0 / 217.6 MB, free: 3.848 MB / 170.7 MB Notification: Performance of matching and sorting (n=33) (initialization): time 0.0008983/0.2482, allocations: 224.9 kB / 217.9 MB, free: 3.789 MB / 170.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.61e-05/0.2483, allocations: 6.094 kB / 217.9 MB, free: 3.789 MB / 170.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.044e-05/0.2483, allocations: 3.875 kB / 217.9 MB, free: 3.789 MB / 170.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004813/0.2488, allocations: 57.92 kB / 217.9 MB, free: 3.777 MB / 170.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004594/0.2493, allocations: 46.86 kB / 218 MB, free: 3.773 MB / 170.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001999/0.2513, allocations: 1.367 MB / 219.3 MB, free: 2.484 MB / 170.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000501/0.2518, allocations: 35.73 kB / 219.4 MB, free: 2.469 MB / 170.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.014e-05/0.2519, allocations: 13.8 kB / 219.4 MB, free: 2.469 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" ) "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.0002532/0.2522, allocations: 120 kB / 219.5 MB, free: 2.355 MB / 170.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.164e-05/0.2523, allocations: 23.19 kB / 219.5 MB, free: 2.344 MB / 170.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.54e-05/0.2524, allocations: 23.3 kB / 219.5 MB, free: 2.332 MB / 170.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.059e-06/0.2524, allocations: 11.81 kB / 219.6 MB, free: 2.324 MB / 170.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.172e-06/0.2524, allocations: 0 / 219.6 MB, free: 2.324 MB / 170.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.673e-06/0.2525, allocations: 2.25 kB / 219.6 MB, free: 2.324 MB / 170.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005404/0.253, allocations: 270.8 kB / 219.8 MB, free: 2.16 MB / 170.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.265e-06/0.2531, allocations: 0 / 219.8 MB, free: 2.16 MB / 170.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003993/0.2535, allocations: 33.02 kB / 219.9 MB, free: 2.16 MB / 170.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003851/0.2539, allocations: 53.88 kB / 219.9 MB, free: 2.148 MB / 170.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.256e-05/0.254, allocations: 5.547 kB / 219.9 MB, free: 2.148 MB / 170.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00229/0.2563, allocations: 1.277 MB / 221.2 MB, free: 16.95 MB / 186.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.076e-06/0.2563, allocations: 3.984 kB / 221.2 MB, free: 16.94 MB / 186.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0013/0.2576, allocations: 299.6 kB / 221.5 MB, free: 16.85 MB / 186.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002404/0.2579, allocations: 108.9 kB / 221.6 MB, free: 16.75 MB / 186.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.126e-05/0.258, allocations: 0 / 221.6 MB, free: 16.75 MB / 186.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003796/0.2584, allocations: 28.91 kB / 221.6 MB, free: 16.74 MB / 186.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001726/0.2586, allocations: 35.39 kB / 221.7 MB, free: 16.73 MB / 186.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.701e-05/0.2587, allocations: 6.312 kB / 221.7 MB, free: 16.73 MB / 186.7 MB Notification: Performance of sorting global known variables: time 0.0002416/0.2589, allocations: 137.8 kB / 221.8 MB, free: 16.65 MB / 186.7 MB Notification: Performance of sort global known variables: time 2.344e-06/0.2589, allocations: 0 / 221.8 MB, free: 16.65 MB / 186.7 MB Notification: Performance of remove unused functions: time 0.001029/0.26, allocations: 77.44 kB / 221.9 MB, free: 16.64 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: 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.0002541/0.2603, allocations: 104.7 kB / 222 MB, free: 16.54 MB / 186.7 MB Notification: Performance of simCode: created initialization part: time 0.0009511/0.2612, allocations: 253.7 kB / 222.2 MB, free: 16.44 MB / 186.7 MB Notification: Performance of simCode: created event and clocks part: time 5.059e-06/0.2613, allocations: 0 / 222.2 MB, free: 16.44 MB / 186.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005302/0.2618, allocations: 186.8 kB / 222.4 MB, free: 16.32 MB / 186.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006593/0.2625, allocations: 35.64 kB / 222.4 MB, free: 16.32 MB / 186.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0016/0.2642, allocations: 439.4 kB / 222.9 MB, free: 16.07 MB / 186.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006944/0.2649, allocations: 0.771 MB / 223.6 MB, free: 15.35 MB / 186.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001295/0.265, allocations: 19.19 kB / 223.7 MB, free: 15.34 MB / 186.7 MB Notification: Performance of SimCode: time 2.437e-06/0.2651, allocations: 0 / 223.7 MB, free: 15.34 MB / 186.7 MB Notification: Performance of Templates: time 0.01159/0.2767, allocations: 3.887 MB / 227.5 MB, free: 13.38 MB / 186.7 MB