Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/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/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 1.0/package.mo) Using package Modelica with version 3.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/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 1.037/1.037, allocations: 111.1 MB / 127.3 MB, free: 6.145 MB / 106.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002537/0.0002537, allocations: 4 kB / 158.9 MB, free: 15.22 MB / 138.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.05095/0.05123, allocations: 25.16 MB / 184 MB, free: 6.02 MB / 154.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2229/0.2742, allocations: 36.78 MB / 220.8 MB, free: 5.934 MB / 170.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002372/0.2745, allocations: 69.25 kB / 220.9 MB, free: 5.926 MB / 170.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02319/0.2977, allocations: 5.798 MB / 226.7 MB, free: 3.695 MB / 170.7 MB Notification: Performance of FrontEnd: time 1.953e-06/0.2977, allocations: 0 / 226.7 MB, free: 3.695 MB / 170.7 MB Notification: Performance of Transformations before backend: time 2.164e-05/0.2978, allocations: 3.875 kB / 226.7 MB, free: 3.695 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.001286/0.2991, allocations: 0.6088 MB / 227.3 MB, free: 3.195 MB / 170.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.48e-05/0.2991, allocations: 12.86 kB / 227.3 MB, free: 3.191 MB / 170.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001183/0.2993, allocations: 38.94 kB / 227.3 MB, free: 3.172 MB / 170.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003664/0.2996, allocations: 261.6 kB / 227.6 MB, free: 2.926 MB / 170.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.906e-05/0.2997, allocations: 77.62 kB / 227.7 MB, free: 2.863 MB / 170.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.447e-05/0.2998, allocations: 31.62 kB / 227.7 MB, free: 2.863 MB / 170.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008994/0.3007, allocations: 352.2 kB / 228.1 MB, free: 2.723 MB / 170.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.955e-05/0.3008, allocations: 3.625 kB / 228.1 MB, free: 2.723 MB / 170.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.781e-05/0.3008, allocations: 7.375 kB / 228.1 MB, free: 2.723 MB / 170.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.038e-05/0.3009, allocations: 7.688 kB / 228.1 MB, free: 2.723 MB / 170.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007696/0.3016, allocations: 246 kB / 228.3 MB, free: 2.676 MB / 170.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002814/0.3045, allocations: 1.402 MB / 229.7 MB, free: 1.684 MB / 170.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007298/0.3053, allocations: 192.2 kB / 229.9 MB, free: 1.637 MB / 170.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.774e-05/0.3053, allocations: 5.75 kB / 229.9 MB, free: 1.633 MB / 170.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004559/0.3058, allocations: 174.4 kB / 230.1 MB, free: 1.523 MB / 170.7 MB Notification: Performance of pre-optimization done (n=19): time 2.494e-06/0.3058, allocations: 0 / 230.1 MB, free: 1.523 MB / 170.7 MB Notification: Performance of matching and sorting (n=19): time 0.001927/0.3077, allocations: 444.6 kB / 230.5 MB, free: 1.203 MB / 170.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.491e-05/0.3078, allocations: 111 kB / 230.6 MB, free: 1.07 MB / 170.7 MB [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/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/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.0003924/0.3082, allocations: 263.3 kB / 230.9 MB, free: 0.8477 MB / 170.7 MB Notification: Performance of collectPreVariables (initialization): time 3.939e-05/0.3083, allocations: 37.14 kB / 230.9 MB, free: 0.8086 MB / 170.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001206/0.3084, allocations: 256.4 kB / 231.2 MB, free: 0.5859 MB / 170.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.151e-05/0.3085, allocations: 68.39 kB / 231.2 MB, free: 0.5312 MB / 170.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.804e-05/0.3085, allocations: 2.75 kB / 231.2 MB, free: 0.5312 MB / 170.7 MB Notification: Performance of setup shared object (initialization): time 6.19e-05/0.3086, allocations: 328.8 kB / 231.6 MB, free: 212 kB / 170.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003042/0.3089, allocations: 82.2 kB / 231.6 MB, free: 152 kB / 170.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003722/0.3093, allocations: 165.9 kB / 231.8 MB, free: 15.98 MB / 186.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003648/0.3097, allocations: 101 kB / 231.9 MB, free: 15.91 MB / 186.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.308e-06/0.3097, allocations: 0 / 231.9 MB, free: 15.91 MB / 186.7 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.001265/0.311, allocations: 336.7 kB / 232.2 MB, free: 15.64 MB / 186.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.373e-05/0.311, allocations: 4 kB / 232.2 MB, free: 15.64 MB / 186.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.656e-06/0.311, allocations: 4 kB / 232.2 MB, free: 15.63 MB / 186.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003813/0.3114, allocations: 58.66 kB / 232.3 MB, free: 15.58 MB / 186.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005576/0.312, allocations: 75.89 kB / 232.4 MB, free: 15.51 MB / 186.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001829/0.3139, allocations: 1.421 MB / 233.8 MB, free: 14.02 MB / 186.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005064/0.3144, allocations: 50.55 kB / 233.8 MB, free: 13.97 MB / 186.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.214e-05/0.3145, allocations: 8 kB / 233.8 MB, free: 13.96 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: 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 () * Number of clocked 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.0003743/0.3148, allocations: 167.7 kB / 234 MB, free: 13.81 MB / 186.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.471e-05/0.3149, allocations: 26.91 kB / 234 MB, free: 13.79 MB / 186.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.471e-05/0.315, allocations: 30.92 kB / 234.1 MB, free: 13.77 MB / 186.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.314e-06/0.315, allocations: 3.953 kB / 234.1 MB, free: 13.77 MB / 186.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.178e-06/0.315, allocations: 0 / 234.1 MB, free: 13.77 MB / 186.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.208e-06/0.3151, allocations: 0 / 234.1 MB, free: 13.77 MB / 186.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005167/0.3156, allocations: 341.5 kB / 234.4 MB, free: 13.45 MB / 186.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.038e-06/0.3156, allocations: 0 / 234.4 MB, free: 13.45 MB / 186.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004902/0.3161, allocations: 59.95 kB / 234.5 MB, free: 13.39 MB / 186.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003146/0.3164, allocations: 59.75 kB / 234.5 MB, free: 13.34 MB / 186.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.051e-05/0.3165, allocations: 11.52 kB / 234.5 MB, free: 13.33 MB / 186.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001611/0.3181, allocations: 1.322 MB / 235.8 MB, free: 11.93 MB / 186.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.385e-06/0.3181, allocations: 4.031 kB / 235.8 MB, free: 11.93 MB / 186.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001434/0.3196, allocations: 372.5 kB / 236.2 MB, free: 11.62 MB / 186.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001941/0.3198, allocations: 121.6 kB / 236.3 MB, free: 11.5 MB / 186.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.127e-05/0.3199, allocations: 7.953 kB / 236.3 MB, free: 11.49 MB / 186.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003375/0.3203, allocations: 27.09 kB / 236.4 MB, free: 11.46 MB / 186.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001411/0.3204, allocations: 30.7 kB / 236.4 MB, free: 11.44 MB / 186.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.394e-05/0.3204, allocations: 7.984 kB / 236.4 MB, free: 11.43 MB / 186.7 MB Notification: Performance of sorting global known variables: time 0.0002685/0.3207, allocations: 181.2 kB / 236.6 MB, free: 11.29 MB / 186.7 MB Notification: Performance of sort global known variables: time 3.31e-07/0.3207, allocations: 4 kB / 236.6 MB, free: 11.29 MB / 186.7 MB Notification: Performance of remove unused functions: time 0.0005637/0.3213, allocations: 90.5 kB / 236.7 MB, free: 11.2 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) * Number of clocked states: 0 () * 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.0001865/0.3215, allocations: 114.2 kB / 236.8 MB, free: 11.08 MB / 186.7 MB Notification: Performance of simCode: created initialization part: time 0.001093/0.3226, allocations: 338.5 kB / 237.1 MB, free: 10.8 MB / 186.7 MB Notification: Performance of simCode: created event and clocks part: time 3.987e-06/0.3227, allocations: 0 / 237.1 MB, free: 10.8 MB / 186.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005593/0.3232, allocations: 208 kB / 237.3 MB, free: 10.61 MB / 186.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006401/0.3239, allocations: 51.7 kB / 237.4 MB, free: 10.57 MB / 186.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001821/0.3257, allocations: 0.8203 MB / 238.2 MB, free: 9.758 MB / 186.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004348/0.3262, allocations: 0.7758 MB / 239 MB, free: 8.949 MB / 186.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001252/0.3263, allocations: 23.42 kB / 239 MB, free: 8.93 MB / 186.7 MB Notification: Performance of SimCode: time 1.443e-06/0.3263, allocations: 0 / 239 MB, free: 8.93 MB / 186.7 MB Notification: Performance of Templates: time 0.01101/0.3374, allocations: 4.512 MB / 243.5 MB, free: 4.457 MB / 186.7 MB