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.9295/0.9295, allocations: 111.2 MB / 124.2 MB, free: 11.16 MB / 106.7 MB Notification: Performance of FrontEnd - loaded program: time 4.612e-05/4.631e-05, allocations: 4 kB / 154.3 MB, free: 13.14 MB / 138.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1406/0.1407, allocations: 25.15 MB / 179.4 MB, free: 0.7852 MB / 138.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.05233/0.193, allocations: 35.76 MB / 215.2 MB, free: 13.34 MB / 186.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002023/0.1933, allocations: 59.97 kB / 215.2 MB, free: 13.28 MB / 186.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02041/0.2137, allocations: 5.129 MB / 220.4 MB, free: 8.141 MB / 186.7 MB Notification: Performance of FrontEnd: time 1.702e-06/0.2138, allocations: 0 / 220.4 MB, free: 8.141 MB / 186.7 MB Notification: Performance of Transformations before backend: time 2.194e-05/0.2138, allocations: 8 kB / 220.4 MB, free: 8.133 MB / 186.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.0009614/0.2148, allocations: 0.5285 MB / 220.9 MB, free: 7.555 MB / 186.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.578e-05/0.2148, allocations: 12.03 kB / 220.9 MB, free: 7.543 MB / 186.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.845e-05/0.2149, allocations: 31.62 kB / 221 MB, free: 7.512 MB / 186.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003885/0.2153, allocations: 254.5 kB / 221.2 MB, free: 7.223 MB / 186.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.483e-05/0.2155, allocations: 76.19 kB / 221.3 MB, free: 7.137 MB / 186.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.7e-05/0.2155, allocations: 36 kB / 221.3 MB, free: 7.102 MB / 186.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006263/0.2162, allocations: 291.7 kB / 221.6 MB, free: 6.801 MB / 186.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.352e-05/0.2162, allocations: 0 / 221.6 MB, free: 6.801 MB / 186.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.249e-05/0.2163, allocations: 12 kB / 221.6 MB, free: 6.789 MB / 186.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.377e-05/0.2163, allocations: 8 kB / 221.6 MB, free: 6.781 MB / 186.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000465/0.2168, allocations: 182.2 kB / 221.8 MB, free: 6.605 MB / 186.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002201/0.219, allocations: 1.151 MB / 222.9 MB, free: 5.371 MB / 186.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000388/0.2194, allocations: 154.6 kB / 223.1 MB, free: 5.211 MB / 186.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001828/0.2196, allocations: 80.89 kB / 223.2 MB, free: 5.129 MB / 186.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.139e-05/0.2196, allocations: 4 kB / 223.2 MB, free: 5.125 MB / 186.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003272/0.22, allocations: 151.9 kB / 223.3 MB, free: 4.953 MB / 186.7 MB Notification: Performance of pre-optimization done (n=21): time 2.587e-06/0.22, allocations: 0 / 223.3 MB, free: 4.953 MB / 186.7 MB Notification: Performance of matching and sorting (n=21): time 0.0007083/0.2207, allocations: 218.9 kB / 223.5 MB, free: 4.734 MB / 186.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.7e-05/0.2208, allocations: 106.8 kB / 223.6 MB, free: 4.605 MB / 186.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.0003269/0.2211, allocations: 214.3 kB / 223.9 MB, free: 4.391 MB / 186.7 MB Notification: Performance of collectPreVariables (initialization): time 3.979e-05/0.2212, allocations: 29.7 kB / 223.9 MB, free: 4.355 MB / 186.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001596/0.2214, allocations: 238.4 kB / 224.1 MB, free: 4.121 MB / 186.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.696e-05/0.2215, allocations: 67.05 kB / 224.2 MB, free: 4.055 MB / 186.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.625e-05/0.2215, allocations: 4 kB / 224.2 MB, free: 4.051 MB / 186.7 MB Notification: Performance of setup shared object (initialization): time 0.0001569/0.2217, allocations: 326.8 kB / 224.5 MB, free: 3.723 MB / 186.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001618/0.2218, allocations: 56.52 kB / 224.6 MB, free: 3.664 MB / 186.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002128/0.2221, allocations: 111.9 kB / 224.7 MB, free: 3.531 MB / 186.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002158/0.2223, allocations: 77.22 kB / 224.7 MB, free: 3.457 MB / 186.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.42e-06/0.2223, allocations: 0 / 224.7 MB, free: 3.457 MB / 186.7 MB Notification: Performance of matching and sorting (n=33) (initialization): time 0.0005817/0.2229, allocations: 248.1 kB / 225 MB, free: 3.207 MB / 186.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.792e-05/0.2229, allocations: 4 kB / 225 MB, free: 3.203 MB / 186.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.02e-05/0.223, allocations: 3.953 kB / 225 MB, free: 3.199 MB / 186.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002988/0.2233, allocations: 56.92 kB / 225 MB, free: 3.141 MB / 186.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002633/0.2235, allocations: 55.91 kB / 225.1 MB, free: 3.086 MB / 186.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001675/0.2252, allocations: 1.393 MB / 226.5 MB, free: 1.559 MB / 186.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002927/0.2256, allocations: 47.77 kB / 226.5 MB, free: 1.512 MB / 186.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.093e-05/0.2256, allocations: 12 kB / 226.6 MB, free: 1.5 MB / 186.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 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.0001837/0.2258, allocations: 122.1 kB / 226.7 MB, free: 1.375 MB / 186.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.729e-05/0.2259, allocations: 27.7 kB / 226.7 MB, free: 1.348 MB / 186.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.704e-05/0.2259, allocations: 33.89 kB / 226.7 MB, free: 1.32 MB / 186.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.117e-06/0.2259, allocations: 0 / 226.7 MB, free: 1.32 MB / 186.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.881e-06/0.226, allocations: 4 kB / 226.7 MB, free: 1.316 MB / 186.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.481e-06/0.226, allocations: 0 / 226.7 MB, free: 1.316 MB / 186.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004499/0.2264, allocations: 325.4 kB / 227.1 MB, free: 0.9492 MB / 186.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.994e-06/0.2265, allocations: 3.938 kB / 227.1 MB, free: 0.9453 MB / 186.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002312/0.2267, allocations: 35.98 kB / 227.1 MB, free: 0.9102 MB / 186.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002409/0.2269, allocations: 52.81 kB / 227.1 MB, free: 0.8555 MB / 186.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.397e-05/0.227, allocations: 4 kB / 227.2 MB, free: 0.8516 MB / 186.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001502/0.2285, allocations: 1.324 MB / 228.5 MB, free: 15.39 MB / 202.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.141e-06/0.2285, allocations: 0 / 228.5 MB, free: 15.39 MB / 202.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008333/0.2294, allocations: 331.3 kB / 228.8 MB, free: 15.05 MB / 202.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001454/0.2295, allocations: 108.8 kB / 228.9 MB, free: 14.93 MB / 202.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.28e-05/0.2296, allocations: 7.984 kB / 228.9 MB, free: 14.92 MB / 202.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002153/0.2298, allocations: 19.98 kB / 228.9 MB, free: 14.9 MB / 202.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001054/0.23, allocations: 27.95 kB / 229 MB, free: 14.87 MB / 202.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.154e-05/0.23, allocations: 12.05 kB / 229 MB, free: 14.86 MB / 202.7 MB Notification: Performance of sorting global known variables: time 0.0002033/0.2302, allocations: 161.4 kB / 229.1 MB, free: 14.7 MB / 202.7 MB Notification: Performance of sort global known variables: time 7.55e-07/0.2302, allocations: 0 / 229.1 MB, free: 14.7 MB / 202.7 MB Notification: Performance of remove unused functions: time 0.0004812/0.2307, allocations: 79.77 kB / 229.2 MB, free: 14.62 MB / 202.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.0001682/0.2309, allocations: 115.2 kB / 229.3 MB, free: 14.5 MB / 202.7 MB Notification: Performance of simCode: created initialization part: time 0.000671/0.2316, allocations: 278.7 kB / 229.6 MB, free: 14.21 MB / 202.7 MB Notification: Performance of simCode: created event and clocks part: time 4.077e-06/0.2316, allocations: 8.062 kB / 229.6 MB, free: 14.21 MB / 202.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003447/0.232, allocations: 181.8 kB / 229.8 MB, free: 14.02 MB / 202.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004417/0.2324, allocations: 63.25 kB / 229.8 MB, free: 13.96 MB / 202.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009926/0.2334, allocations: 461.6 kB / 230.3 MB, free: 13.48 MB / 202.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004434/0.2339, allocations: 0.7648 MB / 231.1 MB, free: 12.69 MB / 202.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.752e-05/0.234, allocations: 23.44 kB / 231.1 MB, free: 12.67 MB / 202.7 MB Notification: Performance of SimCode: time 1.605e-06/0.234, allocations: 0 / 231.1 MB, free: 12.67 MB / 202.7 MB Notification: Performance of Templates: time 0.007799/0.2418, allocations: 4.1 MB / 235.2 MB, free: 8.578 MB / 202.7 MB