Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Modelica_3.2.2_Modelica.Electrical.Analog.Examples.SwitchWithArc.conf.json Using package ModelicaServices with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.2/package.mo) Using package Complex with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.2.mo) Using package Modelica with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.SwitchWithArc,fileNamePrefix="Modelica_3_2_2_Modelica_Electrical_Analog_Examples_SwitchWithArc",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.956/1.956, allocations: 194.9 MB / 211.1 MB, free: 7.59 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003461/0.0003463, allocations: 15.94 kB / 264.1 MB, free: 2.508 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2885/0.2889, allocations: 44.5 MB / 308.6 MB, free: 12.66 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.SwitchWithArc): time 0.003778/0.2927, allocations: 2.322 MB / 310.9 MB, free: 10.33 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.001776/0.2945, allocations: 0.7415 MB / 311.6 MB, free: 9.582 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001937/0.2947, allocations: 7.938 kB / 311.6 MB, free: 9.574 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 9.996e-05/0.2949, allocations: 39.67 kB / 311.7 MB, free: 9.535 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0003423/0.2952, allocations: 111.7 kB / 311.8 MB, free: 9.426 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004051/0.2956, allocations: 71.86 kB / 311.8 MB, free: 9.355 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.000479/0.2961, allocations: 259.3 kB / 312.1 MB, free: 9.102 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002414/0.2964, allocations: 82.36 kB / 312.2 MB, free: 9.02 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001831/0.2966, allocations: 111.6 kB / 312.3 MB, free: 8.91 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002613/0.2969, allocations: 143.3 kB / 312.4 MB, free: 8.77 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 5.374e-05/0.2969, allocations: 16 kB / 312.4 MB, free: 8.754 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 7.173e-05/0.297, allocations: 16 kB / 312.5 MB, free: 8.738 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 7.877e-05/0.2971, allocations: 51.83 kB / 312.5 MB, free: 8.688 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001055/0.2972, allocations: 85.52 kB / 312.6 MB, free: 8.598 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0003742/0.2976, allocations: 256.2 kB / 312.8 MB, free: 8.348 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.755e-06/0.2976, allocations: 0 / 312.8 MB, free: 8.348 MB / 250.7 MB Notification: Performance of FrontEnd: time 1.873e-06/0.2976, allocations: 0 / 312.8 MB, free: 8.348 MB / 250.7 MB Notification: Performance of Transformations before backend: time 6.261e-06/0.2976, allocations: 0 / 312.8 MB, free: 8.348 MB / 250.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.001341/0.299, allocations: 0.5665 MB / 313.4 MB, free: 7.73 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.626e-05/0.299, allocations: 8.031 kB / 313.4 MB, free: 7.723 MB / 250.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001081/0.2992, allocations: 66.53 kB / 313.5 MB, free: 7.648 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.424e-05/0.2993, allocations: 35.62 kB / 313.5 MB, free: 7.613 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004165/0.2997, allocations: 251.2 kB / 313.8 MB, free: 7.328 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000109/0.2998, allocations: 84.06 kB / 313.8 MB, free: 7.234 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.332e-05/0.2999, allocations: 32 kB / 313.9 MB, free: 7.203 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007386/0.3007, allocations: 289.8 kB / 314.2 MB, free: 6.906 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.523e-05/0.3007, allocations: 0 / 314.2 MB, free: 6.906 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.594e-05/0.3008, allocations: 12 kB / 314.2 MB, free: 6.895 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.351e-05/0.3008, allocations: 8 kB / 314.2 MB, free: 6.887 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005659/0.3014, allocations: 194.1 kB / 314.4 MB, free: 6.695 MB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002708/0.3041, allocations: 1.143 MB / 315.5 MB, free: 5.473 MB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004699/0.3046, allocations: 156.8 kB / 315.7 MB, free: 5.312 MB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.3e-05/0.3047, allocations: 7.953 kB / 315.7 MB, free: 5.305 MB / 250.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004089/0.3051, allocations: 155.5 kB / 315.8 MB, free: 5.133 MB / 250.7 MB Notification: Performance of pre-optimization done (n=21): time 2.534e-06/0.3051, allocations: 0 / 315.8 MB, free: 5.133 MB / 250.7 MB Notification: Performance of matching and sorting (n=21): time 0.001702/0.3068, allocations: 395.5 kB / 316.2 MB, free: 4.723 MB / 250.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.734e-05/0.3069, allocations: 106.8 kB / 316.3 MB, free: 4.594 MB / 250.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003479/0.3073, allocations: 224.9 kB / 316.5 MB, free: 4.363 MB / 250.7 MB Notification: Performance of collectPreVariables (initialization): time 5.306e-05/0.3074, allocations: 33.7 kB / 316.6 MB, free: 4.324 MB / 250.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001693/0.3075, allocations: 188.1 kB / 316.8 MB, free: 4.137 MB / 250.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.621e-05/0.3076, allocations: 67.16 kB / 316.8 MB, free: 4.07 MB / 250.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.04e-05/0.3077, allocations: 4 kB / 316.8 MB, free: 4.066 MB / 250.7 MB Notification: Performance of setup shared object (initialization): time 0.0001559/0.3078, allocations: 330.8 kB / 317.1 MB, free: 3.734 MB / 250.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002123/0.3081, allocations: 67.97 kB / 317.2 MB, free: 3.668 MB / 250.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002931/0.3084, allocations: 140.7 kB / 317.4 MB, free: 3.5 MB / 250.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002391/0.3086, allocations: 73.14 kB / 317.4 MB, free: 3.43 MB / 250.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.418e-06/0.3086, allocations: 0 / 317.4 MB, free: 3.43 MB / 250.7 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.0007466/0.3094, allocations: 279.9 kB / 317.7 MB, free: 3.148 MB / 250.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.465e-05/0.3094, allocations: 4 kB / 317.7 MB, free: 3.145 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.188e-05/0.3095, allocations: 4 kB / 317.7 MB, free: 3.141 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004198/0.3099, allocations: 60.97 kB / 317.8 MB, free: 3.078 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003957/0.3103, allocations: 55.91 kB / 317.8 MB, free: 3.023 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0019/0.3122, allocations: 1.405 MB / 319.2 MB, free: 1.488 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004239/0.3127, allocations: 35.69 kB / 319.3 MB, free: 1.453 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.4e-05/0.3127, allocations: 15.98 kB / 319.3 MB, free: 1.438 MB / 250.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 8 * Number of states: 0 () * Number of discrete variables: 10 ($whenCondition2,$whenCondition1,$PRE.booleanPulse.pulsStart,booleanPulse.pulsStart,$PRE.switch2.off,switch2.off,$PRE.switch2.quenched,switch2.quenched,$PRE.switch2.tSwitch,switch2.tSwitch) * 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.0002326/0.313, allocations: 149.9 kB / 319.4 MB, free: 1.281 MB / 250.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.851e-05/0.313, allocations: 27.73 kB / 319.4 MB, free: 1.254 MB / 250.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.669e-05/0.3131, allocations: 26.17 kB / 319.5 MB, free: 1.227 MB / 250.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.482e-06/0.3132, allocations: 4 kB / 319.5 MB, free: 1.223 MB / 250.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.258e-06/0.3132, allocations: 0 / 319.5 MB, free: 1.223 MB / 250.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.19e-06/0.3132, allocations: 0 / 319.5 MB, free: 1.223 MB / 250.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004874/0.3137, allocations: 329.3 kB / 319.8 MB, free: 0.8516 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.072e-06/0.3137, allocations: 0 / 319.8 MB, free: 0.8516 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000329/0.314, allocations: 39.92 kB / 319.8 MB, free: 0.8125 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003192/0.3144, allocations: 52.81 kB / 319.9 MB, free: 0.7578 MB / 250.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.94e-05/0.3144, allocations: 3.984 kB / 319.9 MB, free: 0.7539 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00171/0.3161, allocations: 1.331 MB / 321.2 MB, free: 15.29 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.474e-06/0.3162, allocations: 0 / 321.2 MB, free: 15.29 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001057/0.3172, allocations: 333.7 kB / 321.5 MB, free: 14.94 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001716/0.3174, allocations: 116.8 kB / 321.7 MB, free: 14.8 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.103e-05/0.3175, allocations: 8 kB / 321.7 MB, free: 14.8 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003199/0.3178, allocations: 24.05 kB / 321.7 MB, free: 14.77 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001319/0.318, allocations: 31.94 kB / 321.7 MB, free: 14.74 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.213e-05/0.318, allocations: 4 kB / 321.7 MB, free: 14.74 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.0002391/0.3183, allocations: 164.5 kB / 321.9 MB, free: 14.57 MB / 266.7 MB Notification: Performance of sort global known variables: time 3.6e-07/0.3183, allocations: 0 / 321.9 MB, free: 14.57 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0005337/0.3188, allocations: 75.84 kB / 322 MB, free: 14.5 MB / 266.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.quenched,switch2.tSwitch) * Number of discrete states: 2 (switch2.quenched,switch2.off) * Number of clocked states: 0 () * 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.001479/0.3203, allocations: 0.8716 MB / 322.8 MB, free: 13.6 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0008378/0.3212, allocations: 294.7 kB / 323.1 MB, free: 13.3 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 3.907e-06/0.3212, allocations: 0 / 323.1 MB, free: 13.3 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004304/0.3217, allocations: 190.2 kB / 323.3 MB, free: 13.1 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004162/0.3221, allocations: 32.36 kB / 323.3 MB, free: 13.07 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004542/0.3267, allocations: 1.648 MB / 325 MB, free: 11.34 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004475/0.3272, allocations: 0.7674 MB / 325.8 MB, free: 10.55 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 0.0001978/0.3274, allocations: 22.3 kB / 325.8 MB, free: 10.53 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001757/0.3276, allocations: 83.41 kB / 325.9 MB, free: 10.45 MB / 266.7 MB Notification: Performance of SimCode: time 1.031e-06/0.3276, allocations: 0 / 325.9 MB, free: 10.45 MB / 266.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03497/0.3626, allocations: 4.938 MB / 330.8 MB, free: 5.543 MB / 266.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003222/0.363, allocations: 209.5 kB / 331 MB, free: 5.301 MB / 266.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.675/3.038, allocations: 0 / 331 MB, free: 5.301 MB / 266.7 MB "" Variables in the reference:time,inductor1.i,inductor2.i Variables in the result:booleanPulse.Twidth,booleanPulse.period,booleanPulse.pulsStart,booleanPulse.startTime,booleanPulse.width,booleanPulse.y,constantVoltage1.V,constantVoltage1.i,constantVoltage1.n.i,constantVoltage1.n.v,constantVoltage1.p.i,constantVoltage1.p.v,constantVoltage1.v,constantVoltage2.V,constantVoltage2.i,constantVoltage2.n.i,constantVoltage2.n.v,constantVoltage2.p.i,constantVoltage2.p.v,constantVoltage2.v,der(inductor1.i),der(inductor2.i),ground1.p.i,ground1.p.v,ground2.p.i,ground2.p.v,inductor1.L,inductor1.i,inductor1.n.i,inductor1.n.v,inductor1.p.i,inductor1.p.v,inductor1.v,inductor2.L,inductor2.i,inductor2.n.i,inductor2.n.v,inductor2.p.i,inductor2.p.v,inductor2.v,resistor1.LossPower,resistor1.R,resistor1.R_actual,resistor1.T,resistor1.T_heatPort,resistor1.T_ref,resistor1.alpha,resistor1.i,resistor1.n.i,resistor1.n.v,resistor1.p.i,resistor1.p.v,resistor1.useHeatPort,resistor1.v,resistor2.LossPower,resistor2.R,resistor2.R_actual,resistor2.T,resistor2.T_heatPort,resistor2.T_ref,resistor2.alpha,resistor2.i,resistor2.n.i,resistor2.n.v,resistor2.p.i,resistor2.p.v,resistor2.useHeatPort,resistor2.v,switch1.Goff,switch1.LossPower,switch1.Ron,switch1.T,switch1.T_heatPort,switch1.control,switch1.i,switch1.n.i,switch1.n.v,switch1.off,switch1.p.i,switch1.p.v,switch1.s,switch1.useHeatPort,switch1.v,switch2.Goff,switch2.LossPower,switch2.Ron,switch2.T,switch2.T_heatPort,switch2.V0,switch2.Vmax,switch2.control,switch2.dVdt,switch2.i,switch2.n.i,switch2.n.v,switch2.off,switch2.p.i,switch2.p.v,switch2.quenched,switch2.tSwitch,switch2.useHeatPort,switch2.v,time