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/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 1.0/package.mo) Using package Modelica with version 3.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/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.9618/0.9618, allocations: 111.1 MB / 126.7 MB, free: 6.129 MB / 106.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002758/0.0002759, allocations: 8 kB / 158.3 MB, free: 15.18 MB / 138.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.04587/0.04617, allocations: 25.17 MB / 183.5 MB, free: 5.984 MB / 154.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1925/0.2387, allocations: 35.84 MB / 219.3 MB, free: 6.188 MB / 170.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001882/0.2389, allocations: 66.59 kB / 219.4 MB, free: 6.18 MB / 170.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01813/0.2571, allocations: 5.125 MB / 224.5 MB, free: 4.184 MB / 170.7 MB Notification: Performance of FrontEnd: time 2.318e-06/0.2571, allocations: 0 / 224.5 MB, free: 4.184 MB / 170.7 MB Notification: Performance of Transformations before backend: time 2.111e-05/0.2571, allocations: 6.344 kB / 224.5 MB, free: 4.184 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.0009248/0.2581, allocations: 0.5555 MB / 225.1 MB, free: 3.715 MB / 170.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.575e-05/0.2581, allocations: 7.531 kB / 225.1 MB, free: 3.715 MB / 170.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.004e-05/0.2582, allocations: 34.44 kB / 225.1 MB, free: 3.699 MB / 170.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000285/0.2585, allocations: 259.7 kB / 225.4 MB, free: 3.449 MB / 170.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.969e-05/0.2586, allocations: 78.08 kB / 225.5 MB, free: 3.379 MB / 170.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.616e-05/0.2587, allocations: 29.22 kB / 225.5 MB, free: 3.379 MB / 170.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006176/0.2594, allocations: 296.3 kB / 225.8 MB, free: 3.262 MB / 170.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.528e-05/0.2594, allocations: 0 / 225.8 MB, free: 3.262 MB / 170.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.909e-05/0.2595, allocations: 14.77 kB / 225.8 MB, free: 3.258 MB / 170.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.982e-06/0.2595, allocations: 7.438 kB / 225.8 MB, free: 3.258 MB / 170.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004243/0.2599, allocations: 190.3 kB / 226 MB, free: 3.227 MB / 170.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001935/0.2619, allocations: 1.141 MB / 227.1 MB, free: 2.43 MB / 170.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000359/0.2622, allocations: 166 kB / 227.3 MB, free: 2.379 MB / 170.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.19e-05/0.2623, allocations: 3.656 kB / 227.3 MB, free: 2.379 MB / 170.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003062/0.2626, allocations: 146.5 kB / 227.4 MB, free: 2.281 MB / 170.7 MB Notification: Performance of pre-optimization done (n=21): time 3.227e-06/0.2626, allocations: 0 / 227.4 MB, free: 2.281 MB / 170.7 MB Notification: Performance of matching and sorting (n=21): time 0.001148/0.2638, allocations: 407 kB / 227.8 MB, free: 2.082 MB / 170.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.118e-05/0.2638, allocations: 114.3 kB / 227.9 MB, free: 1.953 MB / 170.7 MB [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/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/OpenModelica/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/OpenModelica/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.0002614/0.2641, allocations: 211 kB / 228.2 MB, free: 1.832 MB / 170.7 MB Notification: Performance of collectPreVariables (initialization): time 2.627e-05/0.2642, allocations: 29.2 kB / 228.2 MB, free: 1.801 MB / 170.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.074e-05/0.2643, allocations: 235.5 kB / 228.4 MB, free: 1.602 MB / 170.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.566e-05/0.2643, allocations: 68.47 kB / 228.5 MB, free: 1.559 MB / 170.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.421e-05/0.2644, allocations: 3.688 kB / 228.5 MB, free: 1.559 MB / 170.7 MB Notification: Performance of setup shared object (initialization): time 5.681e-05/0.2644, allocations: 322.1 kB / 228.8 MB, free: 1.242 MB / 170.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00017/0.2646, allocations: 52.84 kB / 228.8 MB, free: 1.234 MB / 170.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001822/0.2648, allocations: 121.9 kB / 229 MB, free: 1.156 MB / 170.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001698/0.265, allocations: 78.28 kB / 229 MB, free: 1.145 MB / 170.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.256e-06/0.265, allocations: 4.031 kB / 229 MB, free: 1.141 MB / 170.7 MB Notification: Performance of matching and sorting (n=33) (initialization): time 0.0005024/0.2655, allocations: 250.8 kB / 229.3 MB, free: 1.066 MB / 170.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.572e-05/0.2655, allocations: 3.844 kB / 229.3 MB, free: 1.066 MB / 170.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.433e-06/0.2656, allocations: 7.781 kB / 229.3 MB, free: 1.062 MB / 170.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002873/0.2659, allocations: 56.56 kB / 229.4 MB, free: 1.039 MB / 170.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002347/0.2661, allocations: 61.67 kB / 229.4 MB, free: 1.02 MB / 170.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001375/0.2675, allocations: 1.398 MB / 230.8 MB, free: 15.64 MB / 186.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002934/0.2678, allocations: 38.05 kB / 230.9 MB, free: 15.63 MB / 186.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.53e-05/0.2679, allocations: 11.66 kB / 230.9 MB, free: 15.62 MB / 186.7 MB Warning: Assuming fixed start value for the following 5 variables: switch2.quenched:DISCRETE(fixed = true protected = true ) type: Boolean switch2.tSwitch:DISCRETE(unit = "s" fixed = true protected = true ) type: Real switch2.off:DISCRETE(fixed = true protected = true ) type: Boolean inductor1.i:VARIABLE(unit = "A" fixed = true ) "Current flowing from pin p to pin n" type: Real inductor2.i:VARIABLE(unit = "A" fixed = true ) "Current flowing from pin p to pin n" 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 () * 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.0002717/0.2681, allocations: 158.6 kB / 231 MB, free: 15.5 MB / 186.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.744e-05/0.2682, allocations: 30.66 kB / 231 MB, free: 15.48 MB / 186.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.349e-05/0.2683, allocations: 24.56 kB / 231.1 MB, free: 15.48 MB / 186.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.406e-06/0.2683, allocations: 0 / 231.1 MB, free: 15.48 MB / 186.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.747e-06/0.2683, allocations: 7.812 kB / 231.1 MB, free: 15.47 MB / 186.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.055e-06/0.2683, allocations: 3.984 kB / 231.1 MB, free: 15.47 MB / 186.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004364/0.2688, allocations: 317.2 kB / 231.4 MB, free: 15.23 MB / 186.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.174e-06/0.2688, allocations: 0 / 231.4 MB, free: 15.23 MB / 186.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002338/0.269, allocations: 39.31 kB / 231.4 MB, free: 15.21 MB / 186.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002526/0.2693, allocations: 57.28 kB / 231.5 MB, free: 15.19 MB / 186.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.284e-05/0.2694, allocations: 1.312 kB / 231.5 MB, free: 15.19 MB / 186.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001569/0.2709, allocations: 1.332 MB / 232.8 MB, free: 13.89 MB / 186.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.53e-06/0.271, allocations: 0 / 232.8 MB, free: 13.89 MB / 186.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008516/0.2718, allocations: 329.3 kB / 233.1 MB, free: 13.73 MB / 186.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001568/0.272, allocations: 112 kB / 233.3 MB, free: 13.61 MB / 186.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.02e-05/0.2721, allocations: 3.5 kB / 233.3 MB, free: 13.61 MB / 186.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000235/0.2723, allocations: 23.55 kB / 233.3 MB, free: 13.59 MB / 186.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001135/0.2724, allocations: 35.55 kB / 233.3 MB, free: 13.56 MB / 186.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.263e-05/0.2725, allocations: 7.938 kB / 233.3 MB, free: 13.55 MB / 186.7 MB Notification: Performance of sorting global known variables: time 0.0002093/0.2727, allocations: 171.6 kB / 233.5 MB, free: 13.41 MB / 186.7 MB Notification: Performance of sort global known variables: time 8.22e-07/0.2727, allocations: 4 kB / 233.5 MB, free: 13.41 MB / 186.7 MB Notification: Performance of remove unused functions: time 0.0005213/0.2732, allocations: 78 kB / 233.6 MB, free: 13.34 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) * 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.0001774/0.2734, allocations: 110.6 kB / 233.7 MB, free: 13.22 MB / 186.7 MB Notification: Performance of simCode: created initialization part: time 0.0006902/0.2741, allocations: 282.4 kB / 234 MB, free: 12.98 MB / 186.7 MB Notification: Performance of simCode: created event and clocks part: time 3.317e-06/0.2742, allocations: 0 / 234 MB, free: 12.98 MB / 186.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003634/0.2745, allocations: 200.9 kB / 234.1 MB, free: 12.8 MB / 186.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004487/0.275, allocations: 54.39 kB / 234.2 MB, free: 12.76 MB / 186.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001422/0.2764, allocations: 0.7592 MB / 235 MB, free: 12.02 MB / 186.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004618/0.2769, allocations: 0.7638 MB / 235.7 MB, free: 11.22 MB / 186.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.953e-05/0.277, allocations: 23.44 kB / 235.7 MB, free: 11.2 MB / 186.7 MB Notification: Performance of SimCode: time 1.498e-06/0.277, allocations: 0 / 235.7 MB, free: 11.2 MB / 186.7 MB Notification: Performance of Templates: time 0.008032/0.2851, allocations: 4.091 MB / 239.8 MB, free: 7.145 MB / 186.7 MB