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/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.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 0.9763/0.9763, allocations: 111.2 MB / 124.2 MB, free: 11.16 MB / 106.7 MB Notification: Performance of FrontEnd - loaded program: time 2.35e-05/2.364e-05, allocations: 4 kB / 154.3 MB, free: 13.15 MB / 138.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1373/0.1373, allocations: 25.15 MB / 179.4 MB, free: 0.8281 MB / 138.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.05553/0.1929, allocations: 36.7 MB / 216.1 MB, free: 12.43 MB / 186.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001926/0.1931, allocations: 63.97 kB / 216.2 MB, free: 12.37 MB / 186.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02372/0.2169, allocations: 5.807 MB / 222 MB, free: 6.531 MB / 186.7 MB Notification: Performance of FrontEnd: time 1.684e-06/0.2169, allocations: 0 / 222 MB, free: 6.531 MB / 186.7 MB Notification: Performance of Transformations before backend: time 2.163e-05/0.2169, allocations: 4 kB / 222 MB, free: 6.527 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: 78 * Number of variables: 78 Notification: Performance of Generate backend data structure: time 0.001099/0.218, allocations: 0.5694 MB / 222.6 MB, free: 5.914 MB / 186.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.297e-05/0.2181, allocations: 12.03 kB / 222.6 MB, free: 5.902 MB / 186.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001057/0.2182, allocations: 39.53 kB / 222.6 MB, free: 5.863 MB / 186.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004222/0.2186, allocations: 259.6 kB / 222.9 MB, free: 5.566 MB / 186.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001033/0.2188, allocations: 84.19 kB / 223 MB, free: 5.473 MB / 186.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.992e-05/0.2189, allocations: 28.34 kB / 223 MB, free: 5.445 MB / 186.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007205/0.2196, allocations: 324.2 kB / 223.3 MB, free: 5.109 MB / 186.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.442e-05/0.2196, allocations: 0 / 223.3 MB, free: 5.109 MB / 186.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.879e-05/0.2197, allocations: 16 kB / 223.3 MB, free: 5.094 MB / 186.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.271e-05/0.2197, allocations: 8 kB / 223.3 MB, free: 5.086 MB / 186.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005288/0.2202, allocations: 202.2 kB / 223.5 MB, free: 4.891 MB / 186.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002671/0.2229, allocations: 1.395 MB / 224.9 MB, free: 3.395 MB / 186.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000482/0.2234, allocations: 184.7 kB / 225.1 MB, free: 3.207 MB / 186.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001841/0.2236, allocations: 77.11 kB / 225.2 MB, free: 3.129 MB / 186.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.627e-05/0.2237, allocations: 7.859 kB / 225.2 MB, free: 3.121 MB / 186.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00032/0.224, allocations: 140.9 kB / 225.3 MB, free: 2.965 MB / 186.7 MB Notification: Performance of pre-optimization done (n=19): time 2.767e-06/0.224, allocations: 4 kB / 225.3 MB, free: 2.961 MB / 186.7 MB Notification: Performance of matching and sorting (n=19): time 0.000718/0.2248, allocations: 218.1 kB / 225.5 MB, free: 2.738 MB / 186.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.542e-05/0.2249, allocations: 102.8 kB / 225.6 MB, free: 2.613 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. Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003741/0.2253, allocations: 239 kB / 225.9 MB, free: 2.375 MB / 186.7 MB Notification: Performance of collectPreVariables (initialization): time 3.771e-05/0.2253, allocations: 29.7 kB / 225.9 MB, free: 2.34 MB / 186.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002025/0.2255, allocations: 262.2 kB / 226.2 MB, free: 2.082 MB / 186.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.884e-05/0.2256, allocations: 63.14 kB / 226.2 MB, free: 2.02 MB / 186.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.767e-05/0.2256, allocations: 4 kB / 226.2 MB, free: 2.016 MB / 186.7 MB Notification: Performance of setup shared object (initialization): time 0.0001771/0.2258, allocations: 330.8 kB / 226.5 MB, free: 1.684 MB / 186.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001677/0.226, allocations: 56 kB / 226.6 MB, free: 1.629 MB / 186.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002542/0.2263, allocations: 142.5 kB / 226.7 MB, free: 1.449 MB / 186.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001998/0.2265, allocations: 72.69 kB / 226.8 MB, free: 1.379 MB / 186.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.152e-06/0.2265, allocations: 4 kB / 226.8 MB, free: 1.375 MB / 186.7 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.0008368/0.2274, allocations: 298.1 kB / 227.1 MB, free: 1.074 MB / 186.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.928e-05/0.2274, allocations: 7.938 kB / 227.1 MB, free: 1.066 MB / 186.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.508e-06/0.2274, allocations: 4 kB / 227.1 MB, free: 1.062 MB / 186.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000304/0.2277, allocations: 52.77 kB / 227.2 MB, free: 1.008 MB / 186.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000387/0.2281, allocations: 87.97 kB / 227.2 MB, free: 0.9219 MB / 186.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001777/0.2299, allocations: 1.401 MB / 228.7 MB, free: 15.39 MB / 202.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003663/0.2303, allocations: 59.75 kB / 228.7 MB, free: 15.33 MB / 202.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.098e-05/0.2304, allocations: 8 kB / 228.7 MB, free: 15.32 MB / 202.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: 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.0001953/0.2306, allocations: 130 kB / 228.8 MB, free: 15.19 MB / 202.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6e-05/0.2307, allocations: 23.72 kB / 228.9 MB, free: 15.16 MB / 202.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.524e-05/0.2307, allocations: 37.94 kB / 228.9 MB, free: 15.12 MB / 202.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.386e-06/0.2308, allocations: 4 kB / 228.9 MB, free: 15.12 MB / 202.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.173e-06/0.2308, allocations: 0 / 228.9 MB, free: 15.12 MB / 202.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.015e-05/0.2308, allocations: 7.938 kB / 228.9 MB, free: 15.11 MB / 202.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004901/0.2313, allocations: 337.3 kB / 229.2 MB, free: 14.73 MB / 202.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.931e-06/0.2313, allocations: 0 / 229.2 MB, free: 14.73 MB / 202.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003464/0.2317, allocations: 55.95 kB / 229.3 MB, free: 14.68 MB / 202.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00025/0.2319, allocations: 56.75 kB / 229.4 MB, free: 14.62 MB / 202.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.765e-05/0.232, allocations: 8 kB / 229.4 MB, free: 14.61 MB / 202.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001571/0.2336, allocations: 1.313 MB / 230.7 MB, free: 13.16 MB / 202.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.694e-06/0.2336, allocations: 0 / 230.7 MB, free: 13.16 MB / 202.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008865/0.2345, allocations: 326.8 kB / 231 MB, free: 12.82 MB / 202.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001815/0.2347, allocations: 120.8 kB / 231.1 MB, free: 12.69 MB / 202.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.604e-05/0.2348, allocations: 4 kB / 231.1 MB, free: 12.68 MB / 202.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002511/0.235, allocations: 32 kB / 231.1 MB, free: 12.65 MB / 202.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001189/0.2352, allocations: 31.94 kB / 231.2 MB, free: 12.62 MB / 202.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.095e-05/0.2352, allocations: 4 kB / 231.2 MB, free: 12.62 MB / 202.7 MB Notification: Performance of sorting global known variables: time 0.0002621/0.2355, allocations: 183.1 kB / 231.4 MB, free: 12.44 MB / 202.7 MB Notification: Performance of sort global known variables: time 7.51e-07/0.2355, allocations: 0 / 231.4 MB, free: 12.44 MB / 202.7 MB Notification: Performance of remove unused functions: time 0.0005449/0.236, allocations: 83.75 kB / 231.4 MB, free: 12.36 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: 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.000187/0.2362, allocations: 115.2 kB / 231.6 MB, free: 12.24 MB / 202.7 MB Notification: Performance of simCode: created initialization part: time 0.0006792/0.2369, allocations: 286.5 kB / 231.8 MB, free: 11.95 MB / 202.7 MB Notification: Performance of simCode: created event and clocks part: time 3.52e-06/0.237, allocations: 3.938 kB / 231.8 MB, free: 11.94 MB / 202.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003502/0.2373, allocations: 185 kB / 232 MB, free: 11.75 MB / 202.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004709/0.2378, allocations: 60.94 kB / 232.1 MB, free: 11.69 MB / 202.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001081/0.2389, allocations: 491.4 kB / 232.6 MB, free: 11.19 MB / 202.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004862/0.2394, allocations: 0.7758 MB / 233.3 MB, free: 10.39 MB / 202.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.635e-05/0.2395, allocations: 19.44 kB / 233.4 MB, free: 10.37 MB / 202.7 MB Notification: Performance of SimCode: time 1.609e-06/0.2395, allocations: 3.938 kB / 233.4 MB, free: 10.37 MB / 202.7 MB Notification: Performance of Templates: time 0.008543/0.2481, allocations: 4.508 MB / 237.9 MB, free: 5.863 MB / 202.7 MB