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 0.9822/0.9822, allocations: 111.1 MB / 126.7 MB, free: 6.141 MB / 106.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000261/0.0002612, allocations: 8 kB / 158.4 MB, free: 15.09 MB / 138.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.05326/0.05355, allocations: 25.16 MB / 183.6 MB, free: 5.887 MB / 154.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2111/0.2647, allocations: 36.79 MB / 220.4 MB, free: 5.605 MB / 170.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002054/0.265, allocations: 68.41 kB / 220.4 MB, free: 5.598 MB / 170.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02274/0.2878, allocations: 5.794 MB / 226.2 MB, free: 3.355 MB / 170.7 MB Notification: Performance of FrontEnd: time 2.034e-06/0.2878, allocations: 0 / 226.2 MB, free: 3.355 MB / 170.7 MB Notification: Performance of Transformations before backend: time 2.999e-05/0.2878, allocations: 11.72 kB / 226.3 MB, free: 3.352 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.001227/0.2891, allocations: 0.5987 MB / 226.9 MB, free: 2.855 MB / 170.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.392e-05/0.2891, allocations: 10.66 kB / 226.9 MB, free: 2.855 MB / 170.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001053/0.2893, allocations: 70.28 kB / 226.9 MB, free: 2.805 MB / 170.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.073e-05/0.2894, allocations: 41.78 kB / 227 MB, free: 2.785 MB / 170.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000344/0.2897, allocations: 263.8 kB / 227.2 MB, free: 2.535 MB / 170.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.942e-05/0.2898, allocations: 81.94 kB / 227.3 MB, free: 2.469 MB / 170.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.438e-05/0.2899, allocations: 33.95 kB / 227.3 MB, free: 2.465 MB / 170.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008026/0.2907, allocations: 342.2 kB / 227.7 MB, free: 2.332 MB / 170.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.773e-05/0.2907, allocations: 0 / 227.7 MB, free: 2.332 MB / 170.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.598e-05/0.2908, allocations: 13.28 kB / 227.7 MB, free: 2.332 MB / 170.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.085e-05/0.2908, allocations: 7.625 kB / 227.7 MB, free: 2.332 MB / 170.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007078/0.2915, allocations: 237.8 kB / 227.9 MB, free: 2.289 MB / 170.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002764/0.2943, allocations: 1.404 MB / 229.3 MB, free: 1.281 MB / 170.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007411/0.2951, allocations: 203.7 kB / 229.5 MB, free: 1.223 MB / 170.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.829e-05/0.2951, allocations: 10.12 kB / 229.5 MB, free: 1.215 MB / 170.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004585/0.2956, allocations: 161.1 kB / 229.7 MB, free: 1.074 MB / 170.7 MB Notification: Performance of pre-optimization done (n=19): time 2.945e-06/0.2956, allocations: 3.938 kB / 229.7 MB, free: 1.07 MB / 170.7 MB Notification: Performance of matching and sorting (n=19): time 0.001843/0.2975, allocations: 451.5 kB / 230.1 MB, free: 0.668 MB / 170.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.628e-05/0.2976, allocations: 110.8 kB / 230.3 MB, free: 0.5352 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.0003333/0.2979, allocations: 232.6 kB / 230.5 MB, free: 348 kB / 170.7 MB Notification: Performance of collectPreVariables (initialization): time 3.022e-05/0.298, allocations: 32.83 kB / 230.5 MB, free: 312 kB / 170.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001171/0.2981, allocations: 257.1 kB / 230.8 MB, free: 84 kB / 170.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.935e-05/0.2982, allocations: 58.61 kB / 230.8 MB, free: 32 kB / 170.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.824e-05/0.2982, allocations: 7.375 kB / 230.8 MB, free: 28 kB / 170.7 MB Notification: Performance of setup shared object (initialization): time 0.0001479/0.2983, allocations: 325.8 kB / 231.1 MB, free: 15.71 MB / 186.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003133/0.2987, allocations: 85.2 kB / 231.2 MB, free: 15.64 MB / 186.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003833/0.2991, allocations: 166.3 kB / 231.4 MB, free: 15.47 MB / 186.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003561/0.2994, allocations: 99.36 kB / 231.5 MB, free: 15.41 MB / 186.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.108e-06/0.2995, allocations: 0 / 231.5 MB, free: 15.41 MB / 186.7 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.001173/0.3006, allocations: 342.2 kB / 231.8 MB, free: 15.13 MB / 186.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.327e-05/0.3007, allocations: 4 kB / 231.8 MB, free: 15.13 MB / 186.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.236e-06/0.3007, allocations: 4 kB / 231.8 MB, free: 15.12 MB / 186.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003678/0.3011, allocations: 58.84 kB / 231.9 MB, free: 15.07 MB / 186.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005427/0.3017, allocations: 79.89 kB / 232 MB, free: 15 MB / 186.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001766/0.3035, allocations: 1.414 MB / 233.4 MB, free: 13.51 MB / 186.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004984/0.304, allocations: 49.55 kB / 233.4 MB, free: 13.46 MB / 186.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.499e-05/0.304, allocations: 11.98 kB / 233.4 MB, free: 13.45 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.0003339/0.3044, allocations: 170.1 kB / 233.6 MB, free: 13.3 MB / 186.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.42e-05/0.3045, allocations: 23.72 kB / 233.6 MB, free: 13.28 MB / 186.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.173e-05/0.3045, allocations: 24.98 kB / 233.7 MB, free: 13.27 MB / 186.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.372e-06/0.3045, allocations: 7.953 kB / 233.7 MB, free: 13.26 MB / 186.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.498e-06/0.3046, allocations: 0 / 233.7 MB, free: 13.26 MB / 186.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.46e-06/0.3046, allocations: 0 / 233.7 MB, free: 13.26 MB / 186.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004959/0.3051, allocations: 347.4 kB / 234 MB, free: 12.93 MB / 186.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.016e-06/0.3051, allocations: 0 / 234 MB, free: 12.93 MB / 186.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004785/0.3056, allocations: 59.89 kB / 234.1 MB, free: 12.87 MB / 186.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003074/0.3059, allocations: 55.75 kB / 234.1 MB, free: 12.82 MB / 186.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.94e-05/0.306, allocations: 11.89 kB / 234.1 MB, free: 12.81 MB / 186.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001578/0.3075, allocations: 1.326 MB / 235.4 MB, free: 11.41 MB / 186.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.071e-06/0.3076, allocations: 4.031 kB / 235.5 MB, free: 11.41 MB / 186.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001384/0.309, allocations: 383.6 kB / 235.8 MB, free: 11.1 MB / 186.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001686/0.3092, allocations: 107.7 kB / 235.9 MB, free: 10.98 MB / 186.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.858e-05/0.3093, allocations: 15.56 kB / 235.9 MB, free: 10.97 MB / 186.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003243/0.3096, allocations: 23.48 kB / 236 MB, free: 10.95 MB / 186.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.00014/0.3097, allocations: 31.44 kB / 236 MB, free: 10.92 MB / 186.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.127e-05/0.3098, allocations: 4 kB / 236 MB, free: 10.92 MB / 186.7 MB Notification: Performance of sorting global known variables: time 0.0002618/0.31, allocations: 188.9 kB / 236.2 MB, free: 10.77 MB / 186.7 MB Notification: Performance of sort global known variables: time 4.01e-07/0.3101, allocations: 0 / 236.2 MB, free: 10.77 MB / 186.7 MB Notification: Performance of remove unused functions: time 0.0005823/0.3107, allocations: 92.75 kB / 236.3 MB, free: 10.68 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.001722/0.3124, allocations: 0.9231 MB / 237.2 MB, free: 9.812 MB / 186.7 MB Notification: Performance of simCode: created initialization part: time 0.001074/0.3135, allocations: 334 kB / 237.5 MB, free: 9.527 MB / 186.7 MB Notification: Performance of simCode: created event and clocks part: time 4.378e-06/0.3135, allocations: 3.938 kB / 237.5 MB, free: 9.523 MB / 186.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005359/0.3141, allocations: 207.4 kB / 237.7 MB, free: 9.332 MB / 186.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006381/0.3147, allocations: 60.31 kB / 237.8 MB, free: 9.285 MB / 186.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002749/0.3175, allocations: 2.502 MB / 240.3 MB, free: 6.77 MB / 186.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003996/0.3179, allocations: 0.7832 MB / 241.1 MB, free: 5.953 MB / 186.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002193/0.3182, allocations: 98.09 kB / 241.2 MB, free: 5.922 MB / 186.7 MB Notification: Performance of SimCode: time 1.002e-06/0.3182, allocations: 3.938 kB / 241.2 MB, free: 5.918 MB / 186.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.491/2.809, allocations: 5.786 MB / 247 MB, free: 192 kB / 186.7 MB