Running command: "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.SwitchWithArc,fileNamePrefix="Modelica_3_1_cpp_Modelica_Electrical_Analog_Examples_SwitchWithArc",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.076/1.076, allocations: 111.2 MB / 123.8 MB, free: 11.21 MB / 106.7 MB Notification: Performance of FrontEnd - loaded program: time 3.767e-05/3.777e-05, allocations: 4 kB / 151.5 MB, free: 15.54 MB / 138.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1679/0.168, allocations: 25.15 MB / 176.6 MB, free: 15.91 MB / 154.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.06158/0.2296, allocations: 35.77 MB / 212.4 MB, free: 13.6 MB / 186.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002519/0.2299, allocations: 63.97 kB / 212.5 MB, free: 13.54 MB / 186.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.0227/0.2526, allocations: 5.121 MB / 217.6 MB, free: 8.402 MB / 186.7 MB Notification: Performance of FrontEnd: time 4.158e-06/0.2527, allocations: 3.984 kB / 217.6 MB, free: 8.398 MB / 186.7 MB Notification: Performance of Transformations before backend: time 2.187e-05/0.2527, allocations: 11.98 kB / 217.6 MB, free: 8.387 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.001213/0.254, allocations: 0.5325 MB / 218.1 MB, free: 7.805 MB / 186.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.05e-05/0.254, allocations: 12.03 kB / 218.2 MB, free: 7.793 MB / 186.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001078/0.2541, allocations: 62.53 kB / 218.2 MB, free: 7.723 MB / 186.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.637e-05/0.2542, allocations: 31.62 kB / 218.2 MB, free: 7.691 MB / 186.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003935/0.2547, allocations: 258.5 kB / 218.5 MB, free: 7.398 MB / 186.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.328e-05/0.2548, allocations: 72.19 kB / 218.6 MB, free: 7.316 MB / 186.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.976e-05/0.2548, allocations: 32.34 kB / 218.6 MB, free: 7.285 MB / 186.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000693/0.2555, allocations: 293.8 kB / 218.9 MB, free: 6.98 MB / 186.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.508e-05/0.2556, allocations: 0 / 218.9 MB, free: 6.98 MB / 186.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.768e-05/0.2556, allocations: 12 kB / 218.9 MB, free: 6.969 MB / 186.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.141e-05/0.2557, allocations: 4 kB / 218.9 MB, free: 6.965 MB / 186.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005154/0.2562, allocations: 177.1 kB / 219.1 MB, free: 6.793 MB / 186.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002592/0.2588, allocations: 1.151 MB / 220.2 MB, free: 5.555 MB / 186.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004392/0.2593, allocations: 154.6 kB / 220.4 MB, free: 5.395 MB / 186.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002085/0.2595, allocations: 76.89 kB / 220.5 MB, free: 5.316 MB / 186.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.817e-05/0.2595, allocations: 4 kB / 220.5 MB, free: 5.312 MB / 186.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003694/0.2599, allocations: 155.7 kB / 220.6 MB, free: 5.137 MB / 186.7 MB Notification: Performance of pre-optimization done (n=21): time 2.985e-06/0.2599, allocations: 0 / 220.6 MB, free: 5.137 MB / 186.7 MB Notification: Performance of matching and sorting (n=21): time 0.0008587/0.2608, allocations: 216.6 kB / 220.8 MB, free: 4.918 MB / 186.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.584e-05/0.2609, allocations: 106.8 kB / 220.9 MB, free: 4.789 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. [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/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.0003735/0.2613, allocations: 216.6 kB / 221.1 MB, free: 4.574 MB / 186.7 MB Notification: Performance of collectPreVariables (initialization): time 4.191e-05/0.2613, allocations: 33.7 kB / 221.2 MB, free: 4.535 MB / 186.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001506/0.2615, allocations: 230.5 kB / 221.4 MB, free: 4.305 MB / 186.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.969e-05/0.2616, allocations: 71.05 kB / 221.5 MB, free: 4.234 MB / 186.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.879e-05/0.2616, allocations: 4 kB / 221.5 MB, free: 4.23 MB / 186.7 MB Notification: Performance of setup shared object (initialization): time 0.0001228/0.2618, allocations: 322.8 kB / 221.8 MB, free: 3.906 MB / 186.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001798/0.262, allocations: 56.52 kB / 221.8 MB, free: 3.848 MB / 186.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002385/0.2622, allocations: 119.7 kB / 222 MB, free: 3.707 MB / 186.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002082/0.2624, allocations: 56.91 kB / 222 MB, free: 3.652 MB / 186.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.948e-06/0.2624, allocations: 4.031 kB / 222 MB, free: 3.648 MB / 186.7 MB Notification: Performance of matching and sorting (n=33) (initialization): time 0.0006351/0.2631, allocations: 244.6 kB / 222.3 MB, free: 3.402 MB / 186.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.103e-05/0.2631, allocations: 4 kB / 222.3 MB, free: 3.398 MB / 186.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.218e-06/0.2631, allocations: 3.953 kB / 222.3 MB, free: 3.395 MB / 186.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003846/0.2635, allocations: 56.98 kB / 222.3 MB, free: 3.336 MB / 186.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003752/0.2639, allocations: 51.91 kB / 222.4 MB, free: 3.285 MB / 186.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001713/0.2657, allocations: 1.401 MB / 223.8 MB, free: 1.75 MB / 186.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004265/0.2661, allocations: 43.61 kB / 223.8 MB, free: 1.707 MB / 186.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.917e-05/0.2662, allocations: 8 kB / 223.8 MB, free: 1.699 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.0002171/0.2664, allocations: 138.1 kB / 224 MB, free: 1.559 MB / 186.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.442e-05/0.2665, allocations: 23.72 kB / 224 MB, free: 1.535 MB / 186.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.885e-05/0.2665, allocations: 33.94 kB / 224 MB, free: 1.508 MB / 186.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.848e-06/0.2666, allocations: 0 / 224 MB, free: 1.508 MB / 186.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.507e-06/0.2666, allocations: 4 kB / 224 MB, free: 1.504 MB / 186.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.689e-06/0.2666, allocations: 4 kB / 224 MB, free: 1.5 MB / 186.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004809/0.2671, allocations: 329.2 kB / 224.3 MB, free: 1.129 MB / 186.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.346e-06/0.2671, allocations: 0 / 224.3 MB, free: 1.129 MB / 186.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003236/0.2674, allocations: 35.98 kB / 224.4 MB, free: 1.094 MB / 186.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003062/0.2678, allocations: 48.81 kB / 224.4 MB, free: 1.043 MB / 186.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.61e-05/0.2678, allocations: 11.94 kB / 224.4 MB, free: 1.031 MB / 186.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001526/0.2693, allocations: 1.312 MB / 225.7 MB, free: 15.59 MB / 202.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.044e-06/0.2694, allocations: 0 / 225.7 MB, free: 15.59 MB / 202.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001011/0.2704, allocations: 327.9 kB / 226.1 MB, free: 15.25 MB / 202.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001625/0.2706, allocations: 105.1 kB / 226.2 MB, free: 15.12 MB / 202.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.081e-05/0.2707, allocations: 15.98 kB / 226.2 MB, free: 15.11 MB / 202.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002996/0.271, allocations: 15.98 kB / 226.2 MB, free: 15.09 MB / 202.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001315/0.2711, allocations: 27.95 kB / 226.2 MB, free: 15.07 MB / 202.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.443e-05/0.2711, allocations: 11.98 kB / 226.2 MB, free: 15.05 MB / 202.7 MB Notification: Performance of sorting global known variables: time 0.0002159/0.2714, allocations: 157.4 kB / 226.4 MB, free: 14.9 MB / 202.7 MB Notification: Performance of sort global known variables: time 4.71e-07/0.2714, allocations: 0 / 226.4 MB, free: 14.9 MB / 202.7 MB Notification: Performance of remove unused functions: time 0.0005449/0.2719, allocations: 91.67 kB / 226.5 MB, free: 14.81 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.001369/0.2733, allocations: 0.8705 MB / 227.3 MB, free: 13.91 MB / 202.7 MB Notification: Performance of simCode: created initialization part: time 0.0007446/0.2741, allocations: 265.7 kB / 227.6 MB, free: 13.64 MB / 202.7 MB Notification: Performance of simCode: created event and clocks part: time 3.958e-06/0.2741, allocations: 0 / 227.6 MB, free: 13.64 MB / 202.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003958/0.2745, allocations: 177.8 kB / 227.8 MB, free: 13.46 MB / 202.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006419/0.2752, allocations: 64.58 kB / 227.8 MB, free: 13.4 MB / 202.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001408/0.2766, allocations: 0.515 MB / 228.4 MB, free: 12.84 MB / 202.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003649/0.277, allocations: 0.7725 MB / 229.1 MB, free: 12.04 MB / 202.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001931/0.2772, allocations: 83.41 kB / 229.2 MB, free: 11.96 MB / 202.7 MB Notification: Performance of SimCode: time 9.22e-07/0.2772, allocations: 0 / 229.2 MB, free: 11.96 MB / 202.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.635/2.912, allocations: 5.28 MB / 234.5 MB, free: 6.688 MB / 202.7 MB