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: "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc,fileNamePrefix="Modelica_3_1_cpp_Modelica_Electrical_Analog_Examples_ControlledSwitchWithArc",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.058/1.058, allocations: 111.2 MB / 124.2 MB, free: 11.15 MB / 106.7 MB Notification: Performance of FrontEnd - loaded program: time 6.839e-05/6.858e-05, allocations: 4 kB / 154.4 MB, free: 13.04 MB / 138.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1798/0.1799, allocations: 25.15 MB / 179.5 MB, free: 0.8047 MB / 138.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.07559/0.2556, allocations: 36.7 MB / 216.2 MB, free: 12.39 MB / 186.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003005/0.2559, allocations: 67.97 kB / 216.3 MB, free: 12.32 MB / 186.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.0344/0.2903, allocations: 5.807 MB / 222.1 MB, free: 6.496 MB / 186.7 MB Notification: Performance of FrontEnd: time 2.174e-06/0.2904, allocations: 0 / 222.1 MB, free: 6.496 MB / 186.7 MB Notification: Performance of Transformations before backend: time 4.022e-05/0.2905, allocations: 8 kB / 222.1 MB, free: 6.488 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.001768/0.2922, allocations: 0.5616 MB / 222.7 MB, free: 5.879 MB / 186.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.441e-05/0.2923, allocations: 8.031 kB / 222.7 MB, free: 5.871 MB / 186.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001572/0.2925, allocations: 70.53 kB / 222.7 MB, free: 5.793 MB / 186.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001612/0.2927, allocations: 43.53 kB / 222.8 MB, free: 5.75 MB / 186.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006171/0.2933, allocations: 263.4 kB / 223 MB, free: 5.449 MB / 186.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001345/0.2935, allocations: 84.52 kB / 223.1 MB, free: 5.355 MB / 186.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001256/0.2936, allocations: 31.95 kB / 223.2 MB, free: 5.324 MB / 186.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001147/0.2948, allocations: 320.2 kB / 223.5 MB, free: 4.992 MB / 186.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.25e-05/0.2948, allocations: 0 / 223.5 MB, free: 4.992 MB / 186.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.752e-05/0.2949, allocations: 16 kB / 223.5 MB, free: 4.977 MB / 186.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.91e-05/0.295, allocations: 12 kB / 223.5 MB, free: 4.965 MB / 186.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008535/0.2958, allocations: 198.2 kB / 223.7 MB, free: 4.773 MB / 186.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003814/0.2997, allocations: 1.403 MB / 225.1 MB, free: 3.27 MB / 186.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006117/0.3003, allocations: 175.4 kB / 225.3 MB, free: 3.09 MB / 186.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002192/0.3006, allocations: 80.8 kB / 225.3 MB, free: 3.008 MB / 186.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.55e-05/0.3006, allocations: 4 kB / 225.3 MB, free: 3.004 MB / 186.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003768/0.301, allocations: 141.9 kB / 225.5 MB, free: 2.844 MB / 186.7 MB Notification: Performance of pre-optimization done (n=19): time 2.876e-06/0.301, allocations: 0 / 225.5 MB, free: 2.844 MB / 186.7 MB Notification: Performance of matching and sorting (n=19): time 0.0009089/0.3019, allocations: 215.6 kB / 225.7 MB, free: 2.625 MB / 186.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.854e-05/0.302, allocations: 106.8 kB / 225.8 MB, free: 2.496 MB / 186.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.0004355/0.3025, allocations: 245 kB / 226 MB, free: 2.254 MB / 186.7 MB Notification: Performance of collectPreVariables (initialization): time 4.258e-05/0.3025, allocations: 33.7 kB / 226.1 MB, free: 2.215 MB / 186.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001855/0.3027, allocations: 250.2 kB / 226.3 MB, free: 1.969 MB / 186.7 MB Notification: Performance of collectInitialBindings (initialization): time 8.177e-05/0.3028, allocations: 63.14 kB / 226.4 MB, free: 1.906 MB / 186.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.952e-05/0.3029, allocations: 4 kB / 226.4 MB, free: 1.902 MB / 186.7 MB Notification: Performance of setup shared object (initialization): time 0.0001299/0.303, allocations: 330.8 kB / 226.7 MB, free: 1.57 MB / 186.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001947/0.3032, allocations: 56 kB / 226.8 MB, free: 1.516 MB / 186.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002731/0.3035, allocations: 142.5 kB / 226.9 MB, free: 1.336 MB / 186.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002428/0.3038, allocations: 76.69 kB / 227 MB, free: 1.262 MB / 186.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.258e-06/0.3038, allocations: 3.938 kB / 227 MB, free: 1.258 MB / 186.7 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.001041/0.3048, allocations: 298.1 kB / 227.3 MB, free: 0.957 MB / 186.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.863e-05/0.3049, allocations: 8 kB / 227.3 MB, free: 0.9492 MB / 186.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.195e-05/0.3049, allocations: 0 / 227.3 MB, free: 0.9492 MB / 186.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003706/0.3053, allocations: 60.91 kB / 227.3 MB, free: 0.8867 MB / 186.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005735/0.3059, allocations: 83.89 kB / 227.4 MB, free: 0.8047 MB / 186.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001834/0.3077, allocations: 1.401 MB / 228.8 MB, free: 15.27 MB / 202.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005333/0.3083, allocations: 55.8 kB / 228.9 MB, free: 15.21 MB / 202.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.468e-05/0.3084, allocations: 12 kB / 228.9 MB, free: 15.2 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.000224/0.3086, allocations: 130 kB / 229 MB, free: 15.07 MB / 202.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.027e-05/0.3087, allocations: 27.72 kB / 229 MB, free: 15.04 MB / 202.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.146e-05/0.3088, allocations: 33.95 kB / 229.1 MB, free: 15.01 MB / 202.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.479e-06/0.3088, allocations: 0 / 229.1 MB, free: 15.01 MB / 202.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.827e-06/0.3088, allocations: 7.953 kB / 229.1 MB, free: 15 MB / 202.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.737e-06/0.3088, allocations: 3.984 kB / 229.1 MB, free: 15 MB / 202.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005136/0.3093, allocations: 337.3 kB / 229.4 MB, free: 14.62 MB / 202.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.186e-06/0.3094, allocations: 0 / 229.4 MB, free: 14.62 MB / 202.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004958/0.3099, allocations: 55.97 kB / 229.5 MB, free: 14.56 MB / 202.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003158/0.3102, allocations: 56.75 kB / 229.5 MB, free: 14.5 MB / 202.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.828e-05/0.3102, allocations: 4 kB / 229.5 MB, free: 14.5 MB / 202.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001575/0.3118, allocations: 1.32 MB / 230.8 MB, free: 13.04 MB / 202.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.965e-06/0.3119, allocations: 4.031 kB / 230.9 MB, free: 13.04 MB / 202.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001079/0.313, allocations: 319.3 kB / 231.2 MB, free: 12.71 MB / 202.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001905/0.3132, allocations: 116.7 kB / 231.3 MB, free: 12.57 MB / 202.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.391e-05/0.3133, allocations: 4 kB / 231.3 MB, free: 12.57 MB / 202.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003402/0.3136, allocations: 32 kB / 231.3 MB, free: 12.54 MB / 202.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001404/0.3138, allocations: 31.94 kB / 231.3 MB, free: 12.51 MB / 202.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.707e-05/0.3138, allocations: 12 kB / 231.4 MB, free: 12.5 MB / 202.7 MB Notification: Performance of sorting global known variables: time 0.0002761/0.3141, allocations: 183.1 kB / 231.5 MB, free: 12.32 MB / 202.7 MB Notification: Performance of sort global known variables: time 4.71e-07/0.3141, allocations: 0 / 231.5 MB, free: 12.32 MB / 202.7 MB Notification: Performance of remove unused functions: time 0.0005473/0.3147, allocations: 83.73 kB / 231.6 MB, free: 12.24 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.001457/0.3161, allocations: 0.8656 MB / 232.5 MB, free: 11.34 MB / 202.7 MB Notification: Performance of simCode: created initialization part: time 0.0008208/0.317, allocations: 290.5 kB / 232.8 MB, free: 11.05 MB / 202.7 MB Notification: Performance of simCode: created event and clocks part: time 3.987e-06/0.317, allocations: 0 / 232.8 MB, free: 11.05 MB / 202.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004058/0.3174, allocations: 182.6 kB / 232.9 MB, free: 10.86 MB / 202.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006418/0.3181, allocations: 66.83 kB / 233 MB, free: 10.79 MB / 202.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001546/0.3197, allocations: 0.5316 MB / 233.5 MB, free: 10.23 MB / 202.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004171/0.3201, allocations: 0.7796 MB / 234.3 MB, free: 9.418 MB / 202.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00022/0.3204, allocations: 95.41 kB / 234.4 MB, free: 9.328 MB / 202.7 MB Notification: Performance of SimCode: time 1.132e-06/0.3204, allocations: 0 / 234.4 MB, free: 9.328 MB / 202.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.592/2.912, allocations: 5.824 MB / 240.2 MB, free: 3.508 MB / 202.7 MB