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/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.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.065/1.065, allocations: 111.2 MB / 124.2 MB, free: 11.18 MB / 106.7 MB Notification: Performance of FrontEnd - loaded program: time 4.032e-05/4.043e-05, allocations: 7.984 kB / 154.4 MB, free: 13.07 MB / 138.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1724/0.1725, allocations: 25.15 MB / 179.5 MB, free: 0.8242 MB / 138.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.08435/0.2569, allocations: 35.75 MB / 215.3 MB, free: 13.35 MB / 186.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003112/0.2573, allocations: 67.95 kB / 215.3 MB, free: 13.28 MB / 186.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02333/0.2806, allocations: 5.133 MB / 220.5 MB, free: 8.141 MB / 186.7 MB Notification: Performance of FrontEnd: time 1.423e-06/0.2807, allocations: 0 / 220.5 MB, free: 8.141 MB / 186.7 MB Notification: Performance of Transformations before backend: time 2.116e-05/0.2807, allocations: 4 kB / 220.5 MB, free: 8.137 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.001221/0.2819, allocations: 0.5364 MB / 221 MB, free: 7.551 MB / 186.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.685e-05/0.282, allocations: 12.03 kB / 221 MB, free: 7.539 MB / 186.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000107/0.2821, allocations: 66.53 kB / 221.1 MB, free: 7.465 MB / 186.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001147/0.2823, allocations: 31.62 kB / 221.1 MB, free: 7.434 MB / 186.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004272/0.2827, allocations: 258.5 kB / 221.4 MB, free: 7.141 MB / 186.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.896e-05/0.2828, allocations: 76.19 kB / 221.4 MB, free: 7.055 MB / 186.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.157e-05/0.2829, allocations: 32.34 kB / 221.5 MB, free: 7.023 MB / 186.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007257/0.2836, allocations: 287.4 kB / 221.8 MB, free: 6.727 MB / 186.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.698e-05/0.2837, allocations: 3.938 kB / 221.8 MB, free: 6.723 MB / 186.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.698e-05/0.2837, allocations: 12 kB / 221.8 MB, free: 6.711 MB / 186.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.473e-05/0.2837, allocations: 8 kB / 221.8 MB, free: 6.703 MB / 186.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005425/0.2843, allocations: 178.2 kB / 222 MB, free: 6.531 MB / 186.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002693/0.287, allocations: 1.151 MB / 223.1 MB, free: 5.297 MB / 186.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000457/0.2875, allocations: 154.6 kB / 223.3 MB, free: 5.141 MB / 186.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000213/0.2877, allocations: 80.89 kB / 223.3 MB, free: 5.059 MB / 186.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.459e-05/0.2878, allocations: 7.969 kB / 223.3 MB, free: 5.051 MB / 186.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003851/0.2882, allocations: 155.8 kB / 223.5 MB, free: 4.875 MB / 186.7 MB Notification: Performance of pre-optimization done (n=21): time 3.847e-06/0.2882, allocations: 0 / 223.5 MB, free: 4.875 MB / 186.7 MB Notification: Performance of matching and sorting (n=21): time 0.000891/0.2891, allocations: 216.5 kB / 223.7 MB, free: 4.656 MB / 186.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.836e-05/0.2892, allocations: 110.8 kB / 223.8 MB, free: 4.523 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.0003673/0.2896, allocations: 212.7 kB / 224 MB, free: 4.309 MB / 186.7 MB Notification: Performance of collectPreVariables (initialization): time 4.042e-05/0.2896, allocations: 29.7 kB / 224.1 MB, free: 4.273 MB / 186.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001727/0.2898, allocations: 230.5 kB / 224.3 MB, free: 4.047 MB / 186.7 MB Notification: Performance of collectInitialBindings (initialization): time 8.571e-05/0.2899, allocations: 71.05 kB / 224.3 MB, free: 3.977 MB / 186.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.069e-05/0.29, allocations: 8 kB / 224.4 MB, free: 3.969 MB / 186.7 MB Notification: Performance of setup shared object (initialization): time 0.0001458/0.2901, allocations: 318.8 kB / 224.7 MB, free: 3.648 MB / 186.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002036/0.2903, allocations: 60.52 kB / 224.7 MB, free: 3.586 MB / 186.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002516/0.2906, allocations: 111.9 kB / 224.8 MB, free: 3.453 MB / 186.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002228/0.2908, allocations: 73.23 kB / 224.9 MB, free: 3.383 MB / 186.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.446e-06/0.2908, allocations: 3.938 kB / 224.9 MB, free: 3.379 MB / 186.7 MB Notification: Performance of matching and sorting (n=33) (initialization): time 0.0006712/0.2915, allocations: 244.1 kB / 225.1 MB, free: 3.133 MB / 186.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.358e-05/0.2916, allocations: 14.14 kB / 225.2 MB, free: 3.121 MB / 186.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.218e-05/0.2916, allocations: 4 kB / 225.2 MB, free: 3.117 MB / 186.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003929/0.292, allocations: 44.83 kB / 225.2 MB, free: 3.07 MB / 186.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003937/0.2924, allocations: 55.91 kB / 225.3 MB, free: 3.016 MB / 186.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001981/0.2944, allocations: 1.401 MB / 226.7 MB, free: 1.48 MB / 186.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004323/0.2949, allocations: 39.67 kB / 226.7 MB, free: 1.441 MB / 186.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.23e-05/0.2949, allocations: 12 kB / 226.7 MB, free: 1.43 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.0002212/0.2951, allocations: 134 kB / 226.8 MB, free: 1.293 MB / 186.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.435e-05/0.2952, allocations: 23.72 kB / 226.9 MB, free: 1.27 MB / 186.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.602e-05/0.2953, allocations: 25.95 kB / 226.9 MB, free: 1.25 MB / 186.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.671e-06/0.2953, allocations: 4 kB / 226.9 MB, free: 1.246 MB / 186.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.621e-06/0.2953, allocations: 4 kB / 226.9 MB, free: 1.242 MB / 186.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.089e-06/0.2953, allocations: 0 / 226.9 MB, free: 1.242 MB / 186.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005115/0.2959, allocations: 333.3 kB / 227.2 MB, free: 0.8672 MB / 186.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.645e-06/0.2959, allocations: 0 / 227.2 MB, free: 0.8672 MB / 186.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003167/0.2962, allocations: 31.98 kB / 227.3 MB, free: 0.8359 MB / 186.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003045/0.2965, allocations: 56.81 kB / 227.3 MB, free: 0.7773 MB / 186.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.585e-05/0.2966, allocations: 4 kB / 227.3 MB, free: 0.7734 MB / 186.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001602/0.2982, allocations: 1.316 MB / 228.6 MB, free: 15.32 MB / 202.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.074e-06/0.2982, allocations: 0 / 228.6 MB, free: 15.32 MB / 202.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001015/0.2992, allocations: 332 kB / 229 MB, free: 14.98 MB / 202.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001633/0.2994, allocations: 116.8 kB / 229.1 MB, free: 14.85 MB / 202.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.544e-05/0.2995, allocations: 4 kB / 229.1 MB, free: 14.84 MB / 202.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002929/0.2998, allocations: 20.05 kB / 229.1 MB, free: 14.82 MB / 202.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001319/0.2999, allocations: 35.94 kB / 229.1 MB, free: 14.79 MB / 202.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.767e-05/0.3, allocations: 8 kB / 229.1 MB, free: 14.78 MB / 202.7 MB Notification: Performance of sorting global known variables: time 0.0002248/0.3002, allocations: 157.4 kB / 229.3 MB, free: 14.62 MB / 202.7 MB Notification: Performance of sort global known variables: time 4.21e-07/0.3002, allocations: 0 / 229.3 MB, free: 14.62 MB / 202.7 MB Notification: Performance of remove unused functions: time 0.0005089/0.3007, allocations: 83.78 kB / 229.4 MB, free: 14.54 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.001366/0.3021, allocations: 0.8598 MB / 230.2 MB, free: 13.65 MB / 202.7 MB Notification: Performance of simCode: created initialization part: time 0.0007874/0.3029, allocations: 281.8 kB / 230.5 MB, free: 13.37 MB / 202.7 MB Notification: Performance of simCode: created event and clocks part: time 3.286e-06/0.3029, allocations: 384 / 230.5 MB, free: 13.37 MB / 202.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004285/0.3034, allocations: 190.6 kB / 230.7 MB, free: 13.17 MB / 202.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006279/0.304, allocations: 52.33 kB / 230.7 MB, free: 13.12 MB / 202.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001462/0.3055, allocations: 0.5149 MB / 231.3 MB, free: 12.56 MB / 202.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004264/0.306, allocations: 0.7764 MB / 232 MB, free: 11.76 MB / 202.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002254/0.3062, allocations: 83.41 kB / 232.1 MB, free: 11.68 MB / 202.7 MB Notification: Performance of SimCode: time 9.52e-07/0.3062, allocations: 4 kB / 232.1 MB, free: 11.67 MB / 202.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.651/2.957, allocations: 5.301 MB / 237.4 MB, free: 6.371 MB / 202.7 MB