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/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.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.018/1.018, allocations: 111.2 MB / 119.1 MB, free: 11.18 MB / 106.7 MB Notification: Performance of FrontEnd - loaded program: time 2.388e-05/2.418e-05, allocations: 0 / 148.2 MB, free: 6.129 MB / 122.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.05354/0.05361, allocations: 25.18 MB / 173.4 MB, free: 12.91 MB / 154.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.227/0.2806, allocations: 36.03 MB / 209.4 MB, free: 4.605 MB / 170.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003291/0.281, allocations: 69.77 kB / 209.5 MB, free: 4.605 MB / 170.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.03799/0.319, allocations: 5.731 MB / 215.2 MB, free: 3.84 MB / 170.7 MB Notification: Performance of FrontEnd: time 2.625e-06/0.3191, allocations: 0 / 215.2 MB, free: 3.84 MB / 170.7 MB Notification: Performance of Transformations before backend: time 3.159e-05/0.3191, allocations: 3.875 kB / 215.2 MB, free: 3.84 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.001893/0.321, allocations: 0.5681 MB / 215.8 MB, free: 3.367 MB / 170.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.733e-05/0.3211, allocations: 14.41 kB / 215.8 MB, free: 3.363 MB / 170.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002518/0.3214, allocations: 37.91 kB / 215.8 MB, free: 3.344 MB / 170.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006598/0.3221, allocations: 266.4 kB / 216.1 MB, free: 3.094 MB / 170.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001214/0.3222, allocations: 71.19 kB / 216.2 MB, free: 3.031 MB / 170.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.563e-05/0.3224, allocations: 19.25 kB / 216.2 MB, free: 3.031 MB / 170.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0007861/0.3232, allocations: 183.9 kB / 216.4 MB, free: 3.02 MB / 170.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009023/0.3241, allocations: 270.9 kB / 216.6 MB, free: 2.91 MB / 170.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.723e-05/0.3242, allocations: 7.984 kB / 216.6 MB, free: 2.902 MB / 170.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.196e-05/0.3242, allocations: 3.984 kB / 216.6 MB, free: 2.898 MB / 170.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.72e-05/0.3243, allocations: 7.625 kB / 216.7 MB, free: 2.898 MB / 170.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004292/0.3286, allocations: 1.334 MB / 218 MB, free: 1.949 MB / 170.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006658/0.3293, allocations: 153.7 kB / 218.1 MB, free: 1.914 MB / 170.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002394/0.3296, allocations: 73.28 kB / 218.2 MB, free: 1.902 MB / 170.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.652e-05/0.3296, allocations: 0 / 218.2 MB, free: 1.902 MB / 170.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000445/0.3301, allocations: 146.4 kB / 218.3 MB, free: 1.805 MB / 170.7 MB Notification: Performance of pre-optimization done (n=19): time 3.417e-06/0.3301, allocations: 3.938 kB / 218.4 MB, free: 1.801 MB / 170.7 MB Notification: Performance of matching and sorting (n=19): time 0.001117/0.3313, allocations: 200.2 kB / 218.5 MB, free: 1.727 MB / 170.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.951e-05/0.3313, allocations: 106.7 kB / 218.7 MB, free: 1.602 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. Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004189/0.3318, allocations: 199.1 kB / 218.8 MB, free: 1.492 MB / 170.7 MB Notification: Performance of collectPreVariables (initialization): time 4.626e-05/0.3318, allocations: 29.69 kB / 218.9 MB, free: 1.457 MB / 170.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001768/0.332, allocations: 272.4 kB / 219.1 MB, free: 1.234 MB / 170.7 MB Notification: Performance of collectInitialBindings (initialization): time 8.498e-05/0.3321, allocations: 61.67 kB / 219.2 MB, free: 1.191 MB / 170.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.368e-05/0.3322, allocations: 7.812 kB / 219.2 MB, free: 1.188 MB / 170.7 MB Notification: Performance of setup shared object (initialization): time 8.494e-05/0.3323, allocations: 320.2 kB / 219.5 MB, free: 0.8711 MB / 170.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000215/0.3325, allocations: 53.12 kB / 219.6 MB, free: 0.8711 MB / 170.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002957/0.3328, allocations: 146.4 kB / 219.7 MB, free: 0.7578 MB / 170.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002735/0.3331, allocations: 69.2 kB / 219.8 MB, free: 0.7422 MB / 170.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.993e-06/0.3332, allocations: 3.719 kB / 219.8 MB, free: 0.7422 MB / 170.7 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.001192/0.3344, allocations: 264.6 kB / 220 MB, free: 0.6484 MB / 170.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.605e-05/0.3344, allocations: 7.75 kB / 220.1 MB, free: 0.6484 MB / 170.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.078e-05/0.3344, allocations: 0 / 220.1 MB, free: 0.6484 MB / 170.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004614/0.3349, allocations: 65.59 kB / 220.1 MB, free: 0.6211 MB / 170.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007876/0.3357, allocations: 80.33 kB / 220.2 MB, free: 0.6055 MB / 170.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002141/0.3379, allocations: 1.363 MB / 221.6 MB, free: 15.28 MB / 186.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007285/0.3387, allocations: 35.17 kB / 221.6 MB, free: 15.27 MB / 186.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.48e-05/0.3387, allocations: 19.39 kB / 221.6 MB, free: 15.26 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 Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: switch2.v:VARIABLE(unit = "V" ) 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.0003414/0.3391, allocations: 117.8 kB / 221.7 MB, free: 15.14 MB / 186.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.001248/0.3404, allocations: 208.5 kB / 221.9 MB, free: 15.06 MB / 186.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.819e-05/0.3405, allocations: 31.02 kB / 222 MB, free: 15.04 MB / 186.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001169/0.3406, allocations: 21.34 kB / 222 MB, free: 15.04 MB / 186.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.904e-06/0.3407, allocations: 3.844 kB / 222 MB, free: 15.04 MB / 186.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.35e-06/0.3407, allocations: 0 / 222 MB, free: 15.04 MB / 186.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.35e-05/0.3407, allocations: 3.984 kB / 222 MB, free: 15.04 MB / 186.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007281/0.3415, allocations: 285.4 kB / 222.3 MB, free: 14.82 MB / 186.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.869e-06/0.3415, allocations: 4 kB / 222.3 MB, free: 14.82 MB / 186.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001019/0.3426, allocations: 66.45 kB / 222.3 MB, free: 14.8 MB / 186.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005368/0.3431, allocations: 51.84 kB / 222.4 MB, free: 14.78 MB / 186.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.49e-05/0.3432, allocations: 3.938 kB / 222.4 MB, free: 14.78 MB / 186.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002599/0.3458, allocations: 1.278 MB / 223.7 MB, free: 13.54 MB / 186.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.202e-06/0.3459, allocations: 0 / 223.7 MB, free: 13.54 MB / 186.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001603/0.3475, allocations: 308.4 kB / 224 MB, free: 13.41 MB / 186.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002439/0.3478, allocations: 119.9 kB / 224.1 MB, free: 13.3 MB / 186.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.922e-05/0.3479, allocations: 0 / 224.1 MB, free: 13.3 MB / 186.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005155/0.3484, allocations: 19.61 kB / 224.1 MB, free: 13.29 MB / 186.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001966/0.3486, allocations: 35.38 kB / 224.1 MB, free: 13.28 MB / 186.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.193e-05/0.3487, allocations: 7.938 kB / 224.2 MB, free: 13.27 MB / 186.7 MB Notification: Performance of sorting global known variables: time 0.000271/0.349, allocations: 154.3 kB / 224.3 MB, free: 13.19 MB / 186.7 MB Notification: Performance of sort global known variables: time 1.012e-06/0.349, allocations: 0 / 224.3 MB, free: 13.19 MB / 186.7 MB Notification: Performance of remove unused functions: time 0.0008571/0.3499, allocations: 81.81 kB / 224.4 MB, free: 13.18 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) * 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.001926/0.3518, allocations: 0.8413 MB / 225.2 MB, free: 12.53 MB / 186.7 MB Notification: Performance of simCode: created initialization part: time 0.001019/0.3529, allocations: 264.4 kB / 225.5 MB, free: 12.41 MB / 186.7 MB Notification: Performance of simCode: created event and clocks part: time 4.087e-06/0.3529, allocations: 0 / 225.5 MB, free: 12.41 MB / 186.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005603/0.3535, allocations: 180 kB / 225.7 MB, free: 12.3 MB / 186.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007438/0.3543, allocations: 37.66 kB / 225.7 MB, free: 12.29 MB / 186.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002261/0.3566, allocations: 0.521 MB / 226.2 MB, free: 11.91 MB / 186.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006032/0.3572, allocations: 0.7771 MB / 227 MB, free: 11.17 MB / 186.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000317/0.3576, allocations: 90.22 kB / 227.1 MB, free: 11.16 MB / 186.7 MB Notification: Performance of SimCode: time 1.663e-06/0.3576, allocations: 3.938 kB / 227.1 MB, free: 11.15 MB / 186.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.853/3.21, allocations: 5.589 MB / 232.7 MB, free: 8.352 MB / 186.7 MB