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.SwitchWithArc.conf.json Using package ModelicaServices with version 1.0 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OMCompiler/build/lib/omlibrary/ModelicaServices 1.0/package.mo) Using package Modelica with version 3.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OMCompiler/build/lib/omlibrary/Modelica 3.1/package.mo) 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.009/1.009, allocations: 111.2 MB / 119.1 MB, free: 11.18 MB / 106.7 MB Notification: Performance of FrontEnd - loaded program: time 2.217e-05/2.228e-05, allocations: 4 kB / 148.2 MB, free: 6.129 MB / 122.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.05511/0.05517, allocations: 25.18 MB / 173.4 MB, free: 12.91 MB / 154.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2221/0.2773, allocations: 35.08 MB / 208.5 MB, free: 4.922 MB / 170.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002686/0.2776, allocations: 61.44 kB / 208.5 MB, free: 4.922 MB / 170.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02157/0.2992, allocations: 5.079 MB / 213.6 MB, free: 4.27 MB / 170.7 MB Notification: Performance of FrontEnd: time 1.924e-06/0.2993, allocations: 0 / 213.6 MB, free: 4.27 MB / 170.7 MB Notification: Performance of Transformations before backend: time 2.092e-05/0.2993, allocations: 7.625 kB / 213.6 MB, free: 4.27 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: 71 * Number of variables: 71 Notification: Performance of Generate backend data structure: time 0.001104/0.3004, allocations: 0.5377 MB / 214.2 MB, free: 3.852 MB / 170.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.867e-05/0.3005, allocations: 7.375 kB / 214.2 MB, free: 3.852 MB / 170.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001301/0.3006, allocations: 34.75 kB / 214.2 MB, free: 3.836 MB / 170.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003713/0.301, allocations: 250.8 kB / 214.4 MB, free: 3.613 MB / 170.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.208e-05/0.3011, allocations: 71.12 kB / 214.5 MB, free: 3.543 MB / 170.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.231e-05/0.3012, allocations: 18.59 kB / 214.5 MB, free: 3.543 MB / 170.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0005034/0.3017, allocations: 163.6 kB / 214.7 MB, free: 3.543 MB / 170.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005887/0.3023, allocations: 249.7 kB / 214.9 MB, free: 3.473 MB / 170.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.752e-05/0.3024, allocations: 0 / 214.9 MB, free: 3.473 MB / 170.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.921e-05/0.3024, allocations: 1.5 kB / 214.9 MB, free: 3.473 MB / 170.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.522e-05/0.3024, allocations: 13.83 kB / 214.9 MB, free: 3.469 MB / 170.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002384/0.3048, allocations: 1.08 MB / 216 MB, free: 2.863 MB / 170.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000335/0.3052, allocations: 147 kB / 216.2 MB, free: 2.836 MB / 170.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001515/0.3054, allocations: 70.39 kB / 216.2 MB, free: 2.824 MB / 170.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.896e-05/0.3054, allocations: 2.484 kB / 216.2 MB, free: 2.824 MB / 170.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003226/0.3058, allocations: 146.5 kB / 216.4 MB, free: 2.75 MB / 170.7 MB Notification: Performance of pre-optimization done (n=21): time 2.955e-06/0.3058, allocations: 0 / 216.4 MB, free: 2.75 MB / 170.7 MB Notification: Performance of matching and sorting (n=21): time 0.0007561/0.3065, allocations: 212.2 kB / 216.6 MB, free: 2.688 MB / 170.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.694e-05/0.3066, allocations: 106.6 kB / 216.7 MB, free: 2.562 MB / 170.7 MB [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/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/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/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.0002491/0.3069, allocations: 171.8 kB / 216.9 MB, free: 2.457 MB / 170.7 MB Notification: Performance of collectPreVariables (initialization): time 3.11e-05/0.3069, allocations: 31.83 kB / 216.9 MB, free: 2.426 MB / 170.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001121/0.307, allocations: 241 kB / 217.1 MB, free: 2.23 MB / 170.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.326e-05/0.3071, allocations: 64.84 kB / 217.2 MB, free: 2.188 MB / 170.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.516e-05/0.3071, allocations: 4 kB / 217.2 MB, free: 2.184 MB / 170.7 MB Notification: Performance of setup shared object (initialization): time 6.622e-05/0.3072, allocations: 327.3 kB / 217.5 MB, free: 1.871 MB / 170.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001339/0.3073, allocations: 50.52 kB / 217.6 MB, free: 1.867 MB / 170.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001746/0.3075, allocations: 109.5 kB / 217.7 MB, free: 1.797 MB / 170.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001756/0.3077, allocations: 75.84 kB / 217.7 MB, free: 1.777 MB / 170.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.907e-06/0.3077, allocations: 0 / 217.7 MB, free: 1.777 MB / 170.7 MB Notification: Performance of matching and sorting (n=33) (initialization): time 0.000515/0.3083, allocations: 214.5 kB / 218 MB, free: 1.711 MB / 170.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.253e-05/0.3083, allocations: 6.375 kB / 218 MB, free: 1.711 MB / 170.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.829e-06/0.3083, allocations: 3.984 kB / 218 MB, free: 1.707 MB / 170.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003727/0.3087, allocations: 57.27 kB / 218 MB, free: 1.688 MB / 170.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003643/0.3091, allocations: 47.09 kB / 218.1 MB, free: 1.676 MB / 170.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00139/0.3105, allocations: 1.372 MB / 219.4 MB, free: 352 kB / 170.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004066/0.3109, allocations: 35.92 kB / 219.5 MB, free: 332 kB / 170.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.702e-05/0.311, allocations: 9.531 kB / 219.5 MB, free: 332 kB / 170.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 Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: switch2.v:VARIABLE(unit = "V" ) "Voltage drop between the two pins (= p.v - n.v)" 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.0001981/0.3112, allocations: 116.4 kB / 219.6 MB, free: 216 kB / 170.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0006367/0.3118, allocations: 209.5 kB / 219.8 MB, free: 132 kB / 170.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.873e-05/0.3119, allocations: 18.5 kB / 219.8 MB, free: 124 kB / 170.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.019e-05/0.312, allocations: 19.41 kB / 219.8 MB, free: 116 kB / 170.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.362e-06/0.312, allocations: 11.77 kB / 219.8 MB, free: 108 kB / 170.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.667e-06/0.312, allocations: 0 / 219.8 MB, free: 108 kB / 170.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.232e-06/0.312, allocations: 0 / 219.8 MB, free: 108 kB / 170.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004328/0.3125, allocations: 277.6 kB / 220.1 MB, free: 15.9 MB / 186.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.931e-06/0.3125, allocations: 7.953 kB / 220.1 MB, free: 15.89 MB / 186.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003107/0.3128, allocations: 31.14 kB / 220.2 MB, free: 15.89 MB / 186.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002891/0.3131, allocations: 49.62 kB / 220.2 MB, free: 15.87 MB / 186.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.766e-05/0.3132, allocations: 3.875 kB / 220.2 MB, free: 15.87 MB / 186.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001474/0.3146, allocations: 1.282 MB / 221.5 MB, free: 14.62 MB / 186.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.582e-06/0.3147, allocations: 8.047 kB / 221.5 MB, free: 14.61 MB / 186.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008944/0.3156, allocations: 299.6 kB / 221.8 MB, free: 14.5 MB / 186.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000176/0.3158, allocations: 119.1 kB / 221.9 MB, free: 14.38 MB / 186.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.238e-05/0.3159, allocations: 0 / 221.9 MB, free: 14.38 MB / 186.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002753/0.3162, allocations: 19.55 kB / 221.9 MB, free: 14.38 MB / 186.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001411/0.3163, allocations: 33.62 kB / 222 MB, free: 14.36 MB / 186.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.163e-05/0.3164, allocations: 7.188 kB / 222 MB, free: 14.36 MB / 186.7 MB Notification: Performance of sorting global known variables: time 0.0001464/0.3165, allocations: 135.5 kB / 222.1 MB, free: 14.27 MB / 186.7 MB Notification: Performance of sort global known variables: time 4.91e-07/0.3165, allocations: 0 / 222.1 MB, free: 14.27 MB / 186.7 MB Notification: Performance of remove unused functions: time 0.0005388/0.3171, allocations: 65.22 kB / 222.2 MB, free: 14.27 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: 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.001317/0.3184, allocations: 0.8522 MB / 223 MB, free: 13.61 MB / 186.7 MB Notification: Performance of simCode: created initialization part: time 0.0006862/0.3191, allocations: 253.3 kB / 223.3 MB, free: 13.5 MB / 186.7 MB Notification: Performance of simCode: created event and clocks part: time 4.648e-06/0.3192, allocations: 0 / 223.3 MB, free: 13.5 MB / 186.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003718/0.3196, allocations: 183.1 kB / 223.4 MB, free: 13.38 MB / 186.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005297/0.3201, allocations: 34.22 kB / 223.5 MB, free: 13.38 MB / 186.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001437/0.3216, allocations: 0.4934 MB / 224 MB, free: 13.02 MB / 186.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004015/0.322, allocations: 0.773 MB / 224.7 MB, free: 12.28 MB / 186.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001732/0.3222, allocations: 76.52 kB / 224.8 MB, free: 12.27 MB / 186.7 MB Notification: Performance of SimCode: time 1.102e-06/0.3222, allocations: 0 / 224.8 MB, free: 12.27 MB / 186.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.845/3.167, allocations: 5.072 MB / 229.9 MB, free: 9.715 MB / 186.7 MB