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.053/1.053, allocations: 111.2 MB / 123.8 MB, free: 11.2 MB / 106.7 MB Notification: Performance of FrontEnd - loaded program: time 3.105e-05/3.111e-05, allocations: 3.984 kB / 151.5 MB, free: 15.54 MB / 138.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1674/0.1675, allocations: 25.16 MB / 176.6 MB, free: 15.91 MB / 154.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.07716/0.2447, allocations: 36.7 MB / 213.3 MB, free: 12.65 MB / 186.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003308/0.2451, allocations: 63.97 kB / 213.4 MB, free: 12.59 MB / 186.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.03402/0.2791, allocations: 5.795 MB / 219.2 MB, free: 6.766 MB / 186.7 MB Notification: Performance of FrontEnd: time 2.034e-06/0.2792, allocations: 8 kB / 219.2 MB, free: 6.758 MB / 186.7 MB Notification: Performance of Transformations before backend: time 2.896e-05/0.2792, allocations: 4 kB / 219.2 MB, free: 6.754 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.001753/0.281, allocations: 0.5733 MB / 219.8 MB, free: 6.137 MB / 186.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.843e-05/0.2811, allocations: 12.03 kB / 219.8 MB, free: 6.125 MB / 186.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001416/0.2813, allocations: 66.53 kB / 219.9 MB, free: 6.051 MB / 186.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001595/0.2814, allocations: 39.53 kB / 219.9 MB, free: 6.012 MB / 186.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005959/0.282, allocations: 267.6 kB / 220.2 MB, free: 5.707 MB / 186.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001291/0.2822, allocations: 72.53 kB / 220.2 MB, free: 5.625 MB / 186.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001093/0.2823, allocations: 35.95 kB / 220.3 MB, free: 5.59 MB / 186.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0011/0.2834, allocations: 322.7 kB / 220.6 MB, free: 5.258 MB / 186.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.984e-05/0.2835, allocations: 0 / 220.6 MB, free: 5.258 MB / 186.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.783e-05/0.2836, allocations: 12 kB / 220.6 MB, free: 5.246 MB / 186.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.959e-05/0.2836, allocations: 8 kB / 220.6 MB, free: 5.238 MB / 186.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008297/0.2844, allocations: 197 kB / 220.8 MB, free: 5.047 MB / 186.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004292/0.2888, allocations: 1.415 MB / 222.2 MB, free: 3.531 MB / 186.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007653/0.2896, allocations: 154.7 kB / 222.4 MB, free: 3.371 MB / 186.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003172/0.2899, allocations: 85.11 kB / 222.4 MB, free: 3.285 MB / 186.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.426e-05/0.29, allocations: 0 / 222.4 MB, free: 3.285 MB / 186.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004813/0.2905, allocations: 148.7 kB / 222.6 MB, free: 3.121 MB / 186.7 MB Notification: Performance of pre-optimization done (n=19): time 2.745e-06/0.2905, allocations: 0 / 222.6 MB, free: 3.121 MB / 186.7 MB Notification: Performance of matching and sorting (n=19): time 0.0012/0.2917, allocations: 214.1 kB / 222.8 MB, free: 2.902 MB / 186.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.852e-05/0.2918, allocations: 110.8 kB / 222.9 MB, free: 2.77 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.0005854/0.2924, allocations: 239 kB / 223.1 MB, free: 2.531 MB / 186.7 MB Notification: Performance of collectPreVariables (initialization): time 5.282e-05/0.2925, allocations: 29.64 kB / 223.2 MB, free: 2.496 MB / 186.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002523/0.2928, allocations: 258.2 kB / 223.4 MB, free: 2.242 MB / 186.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001115/0.2929, allocations: 67.14 kB / 223.5 MB, free: 2.176 MB / 186.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.878e-05/0.293, allocations: 4 kB / 223.5 MB, free: 2.172 MB / 186.7 MB Notification: Performance of setup shared object (initialization): time 0.000182/0.2931, allocations: 330.8 kB / 223.8 MB, free: 1.84 MB / 186.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002834/0.2934, allocations: 56 kB / 223.9 MB, free: 1.785 MB / 186.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004025/0.2939, allocations: 138.5 kB / 224 MB, free: 1.609 MB / 186.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003373/0.2942, allocations: 76.69 kB / 224.1 MB, free: 1.535 MB / 186.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.099e-06/0.2943, allocations: 3.938 kB / 224.1 MB, free: 1.531 MB / 186.7 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.001373/0.2956, allocations: 290 kB / 224.4 MB, free: 1.238 MB / 186.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.051e-05/0.2957, allocations: 8.781 kB / 224.4 MB, free: 1.23 MB / 186.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.04e-05/0.2957, allocations: 288 / 224.4 MB, free: 1.23 MB / 186.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004808/0.2962, allocations: 56.77 kB / 224.4 MB, free: 1.172 MB / 186.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007473/0.297, allocations: 91.88 kB / 224.5 MB, free: 1.082 MB / 186.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002378/0.2994, allocations: 1.397 MB / 225.9 MB, free: 15.55 MB / 202.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006808/0.3001, allocations: 51.66 kB / 226 MB, free: 15.5 MB / 202.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.203e-05/0.3002, allocations: 12 kB / 226 MB, free: 15.49 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.000284/0.3005, allocations: 138 kB / 226.1 MB, free: 15.35 MB / 202.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.46e-05/0.3006, allocations: 23.72 kB / 226.1 MB, free: 15.33 MB / 202.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000112/0.3007, allocations: 29.95 kB / 226.2 MB, free: 15.29 MB / 202.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.439e-06/0.3007, allocations: 0 / 226.2 MB, free: 15.29 MB / 202.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.412e-06/0.3007, allocations: 0 / 226.2 MB, free: 15.29 MB / 202.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.036e-05/0.3008, allocations: 11.88 kB / 226.2 MB, free: 15.28 MB / 202.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007036/0.3015, allocations: 333.4 kB / 226.5 MB, free: 14.91 MB / 202.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.918e-06/0.3015, allocations: 4 kB / 226.5 MB, free: 14.9 MB / 202.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006624/0.3022, allocations: 59.95 kB / 226.6 MB, free: 14.84 MB / 202.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004077/0.3026, allocations: 52.81 kB / 226.6 MB, free: 14.79 MB / 202.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.737e-05/0.3027, allocations: 8 kB / 226.6 MB, free: 14.78 MB / 202.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002094/0.3048, allocations: 1.317 MB / 227.9 MB, free: 13.33 MB / 202.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.615e-06/0.3048, allocations: 0 / 227.9 MB, free: 13.33 MB / 202.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001423/0.3062, allocations: 318.1 kB / 228.3 MB, free: 13 MB / 202.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002448/0.3065, allocations: 124.7 kB / 228.4 MB, free: 12.86 MB / 202.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.367e-05/0.3066, allocations: 4 kB / 228.4 MB, free: 12.86 MB / 202.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004795/0.3071, allocations: 27.94 kB / 228.4 MB, free: 12.83 MB / 202.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001831/0.3073, allocations: 39.88 kB / 228.4 MB, free: 12.79 MB / 202.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.005e-05/0.3074, allocations: 8.062 kB / 228.5 MB, free: 12.78 MB / 202.7 MB Notification: Performance of sorting global known variables: time 0.0003851/0.3078, allocations: 183.1 kB / 228.6 MB, free: 12.6 MB / 202.7 MB Notification: Performance of sort global known variables: time 5.91e-07/0.3078, allocations: 0 / 228.6 MB, free: 12.6 MB / 202.7 MB Notification: Performance of remove unused functions: time 0.0009308/0.3087, allocations: 83.84 kB / 228.7 MB, free: 12.52 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.001475/0.3102, allocations: 0.8684 MB / 229.6 MB, free: 11.62 MB / 202.7 MB Notification: Performance of simCode: created initialization part: time 0.0008165/0.3111, allocations: 279.9 kB / 229.9 MB, free: 11.34 MB / 202.7 MB Notification: Performance of simCode: created event and clocks part: time 3.427e-06/0.3111, allocations: 0 / 229.9 MB, free: 11.34 MB / 202.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004057/0.3115, allocations: 174.4 kB / 230 MB, free: 11.16 MB / 202.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006257/0.3121, allocations: 60.38 kB / 230.1 MB, free: 11.1 MB / 202.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001669/0.3138, allocations: 0.5434 MB / 230.6 MB, free: 10.52 MB / 202.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004241/0.3143, allocations: 0.7757 MB / 231.4 MB, free: 9.715 MB / 202.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002148/0.3145, allocations: 95.41 kB / 231.5 MB, free: 9.621 MB / 202.7 MB Notification: Performance of SimCode: time 9.91e-07/0.3145, allocations: 0 / 231.5 MB, free: 9.621 MB / 202.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.509/2.823, allocations: 5.806 MB / 237.3 MB, free: 3.82 MB / 202.7 MB