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.ControlledSwitchWithArc.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.ControlledSwitchWithArc,fileNamePrefix="Modelica_3_2_2_Modelica_Electrical_Analog_Examples_ControlledSwitchWithArc",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 2.092/2.092, allocations: 194.9 MB / 211.1 MB, free: 7.598 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003554/0.0003555, allocations: 11.98 kB / 264.1 MB, free: 2.516 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2918/0.2922, allocations: 44.5 MB / 308.6 MB, free: 12.67 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc): time 0.00429/0.2965, allocations: 2.552 MB / 311.1 MB, free: 10.11 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.00182/0.2984, allocations: 0.7648 MB / 311.9 MB, free: 9.332 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001867/0.2986, allocations: 12 kB / 311.9 MB, free: 9.32 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001032/0.2988, allocations: 43.61 kB / 311.9 MB, free: 9.277 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0003708/0.2991, allocations: 127.6 kB / 312.1 MB, free: 9.152 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004112/0.2996, allocations: 75.84 kB / 312.1 MB, free: 9.078 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.0005021/0.3001, allocations: 287.3 kB / 312.4 MB, free: 8.797 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002619/0.3004, allocations: 107 kB / 312.5 MB, free: 8.691 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002525/0.3006, allocations: 135.5 kB / 312.6 MB, free: 8.559 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000279/0.3009, allocations: 151.3 kB / 312.8 MB, free: 8.41 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 6.246e-05/0.301, allocations: 20 kB / 312.8 MB, free: 8.391 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 8.142e-05/0.3011, allocations: 16 kB / 312.8 MB, free: 8.375 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 8.337e-05/0.3012, allocations: 59.77 kB / 312.9 MB, free: 8.316 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001206/0.3013, allocations: 93.52 kB / 313 MB, free: 8.219 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0004331/0.3018, allocations: 304.1 kB / 313.3 MB, free: 7.922 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.256e-06/0.3018, allocations: 7.938 kB / 313.3 MB, free: 7.914 MB / 250.7 MB Notification: Performance of FrontEnd: time 1.653e-06/0.3018, allocations: 4 kB / 313.3 MB, free: 7.91 MB / 250.7 MB Notification: Performance of Transformations before backend: time 6.212e-06/0.3018, allocations: 0 / 313.3 MB, free: 7.91 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: 80 * Number of variables: 80 Notification: Performance of Generate backend data structure: time 0.001414/0.3032, allocations: 0.5924 MB / 313.9 MB, free: 7.266 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.547e-05/0.3033, allocations: 8.031 kB / 313.9 MB, free: 7.258 MB / 250.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001132/0.3034, allocations: 74.53 kB / 314 MB, free: 7.176 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001067/0.3035, allocations: 43.48 kB / 314 MB, free: 7.133 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000457/0.304, allocations: 268.2 kB / 314.3 MB, free: 6.828 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.968e-05/0.3041, allocations: 76.06 kB / 314.3 MB, free: 6.742 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.973e-05/0.3042, allocations: 32 kB / 314.4 MB, free: 6.711 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008549/0.3051, allocations: 334.7 kB / 314.7 MB, free: 6.367 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.678e-05/0.3051, allocations: 0 / 314.7 MB, free: 6.367 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.933e-05/0.3052, allocations: 15.98 kB / 314.7 MB, free: 6.352 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.373e-05/0.3052, allocations: 8 kB / 314.7 MB, free: 6.344 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007158/0.3059, allocations: 226.4 kB / 314.9 MB, free: 6.117 MB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002938/0.3089, allocations: 1.383 MB / 316.3 MB, free: 4.633 MB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005174/0.3094, allocations: 166.5 kB / 316.5 MB, free: 4.461 MB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.039e-05/0.3095, allocations: 4.031 kB / 316.5 MB, free: 4.457 MB / 250.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004609/0.3099, allocations: 166.2 kB / 316.7 MB, free: 4.277 MB / 250.7 MB Notification: Performance of pre-optimization done (n=21): time 2.655e-06/0.31, allocations: 0 / 316.7 MB, free: 4.277 MB / 250.7 MB Notification: Performance of matching and sorting (n=21): time 0.001827/0.3118, allocations: 416.7 kB / 317.1 MB, free: 3.844 MB / 250.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.065e-05/0.3119, allocations: 103.2 kB / 317.2 MB, free: 3.719 MB / 250.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003952/0.3123, allocations: 270.5 kB / 317.4 MB, free: 3.449 MB / 250.7 MB Notification: Performance of collectPreVariables (initialization): time 3.948e-05/0.3124, allocations: 29.7 kB / 317.5 MB, free: 3.414 MB / 250.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001988/0.3126, allocations: 203.9 kB / 317.7 MB, free: 3.211 MB / 250.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001055/0.3127, allocations: 74.98 kB / 317.7 MB, free: 3.137 MB / 250.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.989e-05/0.3127, allocations: 8 kB / 317.7 MB, free: 3.129 MB / 250.7 MB Notification: Performance of setup shared object (initialization): time 0.0001898/0.3129, allocations: 338.8 kB / 318.1 MB, free: 2.789 MB / 250.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002787/0.3132, allocations: 80.56 kB / 318.1 MB, free: 2.711 MB / 250.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003724/0.3136, allocations: 177.5 kB / 318.3 MB, free: 2.496 MB / 250.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003113/0.3139, allocations: 97.06 kB / 318.4 MB, free: 2.402 MB / 250.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.546e-06/0.314, allocations: 7.984 kB / 318.4 MB, free: 2.395 MB / 250.7 MB Notification: Performance of matching and sorting (n=39) (initialization): time 0.001156/0.3151, allocations: 336.1 kB / 318.7 MB, free: 2.059 MB / 250.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.242e-05/0.3152, allocations: 12.03 kB / 318.8 MB, free: 2.047 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.056e-05/0.3152, allocations: 4 kB / 318.8 MB, free: 2.043 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003652/0.3156, allocations: 56.81 kB / 318.8 MB, free: 1.984 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004679/0.316, allocations: 63.91 kB / 318.9 MB, free: 1.922 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001885/0.3179, allocations: 1.416 MB / 320.3 MB, free: 376 kB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004691/0.3184, allocations: 51.67 kB / 320.3 MB, free: 324 kB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.371e-05/0.3185, allocations: 8 kB / 320.4 MB, free: 316 kB / 250.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 12 * Number of states: 0 () * Number of discrete variables: 8 ($whenCondition1,switch1.off,$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 (38): * Single equations (assignments): 37 * 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.0002439/0.3187, allocations: 152.7 kB / 320.5 MB, free: 156 kB / 250.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.868e-05/0.3188, allocations: 35.67 kB / 320.5 MB, free: 120 kB / 250.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.109e-05/0.3189, allocations: 30.17 kB / 320.6 MB, free: 92 kB / 250.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.009e-05/0.3189, allocations: 4 kB / 320.6 MB, free: 88 kB / 250.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.186e-06/0.3189, allocations: 0 / 320.6 MB, free: 88 kB / 250.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.428e-06/0.3189, allocations: 0 / 320.6 MB, free: 88 kB / 250.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005417/0.3195, allocations: 341.3 kB / 320.9 MB, free: 15.7 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.346e-06/0.3195, allocations: 0 / 320.9 MB, free: 15.7 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000357/0.3199, allocations: 35.98 kB / 320.9 MB, free: 15.67 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003051/0.3202, allocations: 56.81 kB / 321 MB, free: 15.61 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.325e-05/0.3202, allocations: 11.94 kB / 321 MB, free: 15.6 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001639/0.3219, allocations: 1.323 MB / 322.3 MB, free: 14.14 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.288e-06/0.3219, allocations: 3.984 kB / 322.3 MB, free: 14.14 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001234/0.3232, allocations: 360.1 kB / 322.7 MB, free: 13.77 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001671/0.3234, allocations: 120.7 kB / 322.8 MB, free: 13.63 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.581e-05/0.3234, allocations: 11.95 kB / 322.8 MB, free: 13.62 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003176/0.3238, allocations: 24.05 kB / 322.8 MB, free: 13.59 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001195/0.3239, allocations: 27.94 kB / 322.9 MB, free: 13.57 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.839e-05/0.3239, allocations: 12 kB / 322.9 MB, free: 13.55 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.0002542/0.3242, allocations: 178 kB / 323.1 MB, free: 13.38 MB / 266.7 MB Notification: Performance of sort global known variables: time 3.1e-07/0.3242, allocations: 4 kB / 323.1 MB, free: 13.38 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0005389/0.3248, allocations: 83.84 kB / 323.1 MB, free: 13.3 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: 5 ($whenCondition1,switch1.off,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): 18 * 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.001531/0.3263, allocations: 0.9053 MB / 324 MB, free: 12.36 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0009515/0.3273, allocations: 326.2 kB / 324.4 MB, free: 12.03 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 3.476e-06/0.3273, allocations: 0.75 kB / 324.4 MB, free: 12.03 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004725/0.3278, allocations: 202.6 kB / 324.6 MB, free: 11.82 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003169/0.3281, allocations: 24.55 kB / 324.6 MB, free: 11.8 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004804/0.3329, allocations: 1.844 MB / 326.4 MB, free: 9.867 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004611/0.3334, allocations: 0.783 MB / 327.2 MB, free: 9.059 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 0.0002003/0.3336, allocations: 30.27 kB / 327.2 MB, free: 9.031 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002022/0.3338, allocations: 91.41 kB / 327.3 MB, free: 8.945 MB / 266.7 MB Notification: Performance of SimCode: time 9.52e-07/0.3339, allocations: 3.938 kB / 327.3 MB, free: 8.941 MB / 266.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02898/0.3629, allocations: 5.291 MB / 332.6 MB, free: 3.688 MB / 266.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000221/0.3631, allocations: 216.9 kB / 332.8 MB, free: 3.449 MB / 266.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.461/2.824, allocations: 0 / 332.8 MB, free: 3.449 MB / 266.7 MB "" Variables in the reference:time,inductor1.i,inductor2.i Variables in the result: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),ground.p.i,ground.p.v,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,sineVoltage.V,sineVoltage.freqHz,sineVoltage.i,sineVoltage.n.i,sineVoltage.n.v,sineVoltage.offset,sineVoltage.p.i,sineVoltage.p.v,sineVoltage.phase,sineVoltage.signalSource.amplitude,sineVoltage.signalSource.freqHz,sineVoltage.signalSource.offset,sineVoltage.signalSource.phase,sineVoltage.signalSource.startTime,sineVoltage.signalSource.y,sineVoltage.startTime,sineVoltage.v,switch1.Goff,switch1.LossPower,switch1.Ron,switch1.T,switch1.T_heatPort,switch1.control.i,switch1.control.v,switch1.i,switch1.level,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.i,switch2.control.v,switch2.dVdt,switch2.i,switch2.level,switch2.n.i,switch2.n.v,switch2.off,switch2.p.i,switch2.p.v,switch2.quenched,switch2.tSwitch,switch2.useHeatPort,switch2.v,time