Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr ModelicaTest_3.2.2_cpp_ModelicaTest.Electrical.QuasiStatic.MultiPhase.Ideal.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) Using package ModelicaTest with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaTest 3.2.2/package.mo) Running command: translateModel(ModelicaTest.Electrical.QuasiStatic.MultiPhase.Ideal,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|I.1..re|I.1..im|I.2..re|I.2..im|I.3..re|I.3..im",fileNamePrefix="ModelicaTest_3.2.2_cpp_ModelicaTest.Electrical.QuasiStatic.MultiPhase.Ideal") Notification: Performance of loadModel(ModelicaTest): time 2.525/2.525, allocations: 234.9 MB / 251.1 MB, free: 9.574 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0006249/0.0006251, allocations: 12 kB / 315 MB, free: 9.621 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3642/0.3649, allocations: 54.87 MB / 369.8 MB, free: 10.75 MB / 298.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Electrical.QuasiStatic.MultiPhase.Ideal): time 0.04424/0.4092, allocations: 19.23 MB / 389 MB, free: 7.453 MB / 314.7 MB Notification: Performance of NFInst.instExpressions: time 0.01923/0.4285, allocations: 5.174 MB / 394.2 MB, free: 2.258 MB / 314.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.005147/0.4337, allocations: 151.5 kB / 394.4 MB, free: 2.109 MB / 314.7 MB Notification: Performance of NFTyping.typeComponents: time 0.006939/0.4407, allocations: 1.115 MB / 395.5 MB, free: 0.9883 MB / 314.7 MB Notification: Performance of NFTyping.typeBindings: time 0.01024/0.451, allocations: 1.944 MB / 397.4 MB, free: 15.04 MB / 330.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.006628/0.4576, allocations: 1.198 MB / 398.6 MB, free: 13.85 MB / 330.7 MB Notification: Performance of NFFlatten.flatten: time 0.02111/0.4788, allocations: 9.288 MB / 407.9 MB, free: 4.547 MB / 330.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.07805/0.5569, allocations: 26.26 MB / 434.2 MB, free: 10.16 MB / 362.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.01428/0.5712, allocations: 5.058 MB / 439.2 MB, free: 5.09 MB / 362.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01866/0.59, allocations: 5.914 MB / 445.1 MB, free: 15.15 MB / 378.7 MB Notification: Performance of NFPackage.collectConstants: time 0.005023/0.5951, allocations: 0.8359 MB / 446 MB, free: 14.32 MB / 378.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.008314/0.6034, allocations: 0.9997 MB / 447 MB, free: 13.32 MB / 378.7 MB Notification: Performance of NFScalarize.scalarize: time 0.007104/0.6106, allocations: 2.632 MB / 449.6 MB, free: 10.68 MB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 0.008794/0.6195, allocations: 2.8 MB / 452.4 MB, free: 7.863 MB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 0.7346/1.354, allocations: 23.91 MB / 476.3 MB, free: 31.27 MB / 394.8 MB Notification: Performance of FrontEnd - DAE generated: time 4.128e-06/1.354, allocations: 2.844 kB / 476.3 MB, free: 31.27 MB / 394.8 MB Notification: Performance of FrontEnd: time 4.528e-06/1.354, allocations: 1.516 kB / 476.3 MB, free: 31.27 MB / 394.8 MB Notification: Performance of Transformations before backend: time 0.0009119/1.355, allocations: 0 / 476.3 MB, free: 31.27 MB / 394.8 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 3915 * Number of variables: 3915 Notification: Performance of Generate backend data structure: time 0.07405/1.429, allocations: 15.74 MB / 492.1 MB, free: 26.98 MB / 394.8 MB Notification: Performance of prepare preOptimizeDAE: time 6.097e-05/1.429, allocations: 13.83 kB / 492.1 MB, free: 26.98 MB / 394.8 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.09682/1.526, allocations: 12.74 MB / 0.493 GB, free: 23.04 MB / 394.8 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02424/1.55, allocations: 7.667 MB / 0.5005 GB, free: 19.95 MB / 394.8 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001622/1.552, allocations: 1.066 MB / 0.5015 GB, free: 19.34 MB / 394.8 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.008476/1.561, allocations: 1.39 MB / 0.5029 GB, free: 18.41 MB / 394.8 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.08258/1.643, allocations: 23.96 MB / 0.5263 GB, free: 2.285 MB / 394.8 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0008174/1.644, allocations: 19.89 kB / 0.5263 GB, free: 2.266 MB / 394.8 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.006997/1.651, allocations: 0.5758 MB / 0.5269 GB, free: 1.703 MB / 394.8 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0009688/1.652, allocations: 0.7256 MB / 0.5276 GB, free: 0.9766 MB / 394.8 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.07631/1.729, allocations: 22.36 MB / 0.5494 GB, free: 10.61 MB / 426.8 MB Warning: The model contains alias variables with redundant start and/or conflicting nominal values. It is recommended to resolve the conflicts, because otherwise the system could be hard to solve. To print the conflicting alias sets and the chosen candidates please use -d=aliasConflicts. Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.204/1.933, allocations: 72.24 MB / 0.6199 GB, free: 1.957 MB / 490.8 MB Notification: Performance of preOpt comSubExp (simulation): time 0.04525/1.978, allocations: 31.6 MB / 0.6508 GB, free: 15.39 MB / 0.5262 GB Notification: Performance of preOpt evalFunc (simulation): time 0.4234/2.401, allocations: 15.61 MB / 0.666 GB, free: 191.3 MB / 0.5262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001143/2.402, allocations: 81.23 kB / 0.6661 GB, free: 191.3 MB / 0.5262 GB Notification: Performance of pre-optimization done (n=465): time 1.022e-05/2.402, allocations: 3.969 kB / 0.6661 GB, free: 191.3 MB / 0.5262 GB Notification: Performance of matching and sorting (n=465): time 0.06662/2.468, allocations: 15.59 MB / 0.6813 GB, free: 189.3 MB / 0.5262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001027/2.468, allocations: 127.5 kB / 0.6815 GB, free: 189.2 MB / 0.5262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01151/2.48, allocations: 5.048 MB / 0.6864 GB, free: 187.6 MB / 0.5262 GB Notification: Performance of collectPreVariables (initialization): time 0.001376/2.481, allocations: 97.58 kB / 0.6865 GB, free: 187.5 MB / 0.5262 GB Notification: Performance of collectInitialEqns (initialization): time 0.004525/2.486, allocations: 5.838 MB / 0.6922 GB, free: 183.3 MB / 0.5262 GB Notification: Performance of collectInitialBindings (initialization): time 0.002726/2.489, allocations: 1.589 MB / 0.6937 GB, free: 182.1 MB / 0.5262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0009293/2.49, allocations: 161.7 kB / 0.6939 GB, free: 181.9 MB / 0.5262 GB Notification: Performance of setup shared object (initialization): time 0.0005573/2.49, allocations: 0.6309 MB / 0.6945 GB, free: 181.5 MB / 0.5262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01087/2.501, allocations: 4.194 MB / 0.6986 GB, free: 180.1 MB / 0.5262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01442/2.516, allocations: 7.554 MB / 0.706 GB, free: 174.2 MB / 0.5262 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01462/2.53, allocations: 5.726 MB / 0.7116 GB, free: 171.3 MB / 0.5262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001808/2.531, allocations: 32 kB / 0.7116 GB, free: 171.2 MB / 0.5262 GB Notification: Performance of matching and sorting (n=1000) (initialization): time 0.03723/2.568, allocations: 13.2 MB / 0.7245 GB, free: 159.9 MB / 0.5262 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001049/2.568, allocations: 52 kB / 0.7245 GB, free: 159.9 MB / 0.5262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001935/2.568, allocations: 112 kB / 0.7247 GB, free: 159.8 MB / 0.5262 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01134/2.579, allocations: 3.117 MB / 0.7277 GB, free: 157.3 MB / 0.5262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01133/2.591, allocations: 1.668 MB / 0.7293 GB, free: 155.7 MB / 0.5262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0241/2.615, allocations: 11.31 MB / 0.7404 GB, free: 144.2 MB / 0.5262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01047/2.626, allocations: 1.119 MB / 0.7415 GB, free: 143.1 MB / 0.5262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.00207/2.628, allocations: 404 kB / 0.7419 GB, free: 142.7 MB / 0.5262 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 512 * Number of states: 0 () * Number of discrete variables: 12 (booleanStep1[1].y,booleanStep1[2].y,booleanStep1[3].y,booleanStep2[1].y,booleanStep2[2].y,booleanStep2[3].y,booleanStep3[1].y,booleanStep3[2].y,booleanStep3[3].y,booleanStep4[1].y,booleanStep4[2].y,booleanStep4[3].y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (853): * Single equations (assignments): 850 * 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: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 3 {20 30,20 28,20 28} Notification: Performance of prepare postOptimizeDAE: time 0.01434/2.642, allocations: 5.44 MB / 0.7472 GB, free: 137.2 MB / 0.5262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001801/2.644, allocations: 0.4899 MB / 0.7476 GB, free: 136.7 MB / 0.5262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02808/2.672, allocations: 9.681 MB / 0.7571 GB, free: 127 MB / 0.5262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.000149/2.672, allocations: 23.91 kB / 0.7571 GB, free: 127 MB / 0.5262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.825e-05/2.672, allocations: 1.875 kB / 0.7571 GB, free: 127 MB / 0.5262 GB Notification: Performance of postOpt removeConstants (simulation): time 0.004802/2.677, allocations: 1.337 MB / 0.7584 GB, free: 125.6 MB / 0.5262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002154/2.679, allocations: 76 kB / 0.7585 GB, free: 125.5 MB / 0.5262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0065/2.686, allocations: 395.5 kB / 0.7589 GB, free: 125.2 MB / 0.5262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001689/2.687, allocations: 319.4 kB / 0.7592 GB, free: 124.8 MB / 0.5262 GB [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/Compiler/BackEnd/DAEMode.mo:522:7-524:90:writable] Error: Internal error DAEMode.traverserStrongComponents failed on equation: 1/1 (2): if booleanStep3[3].y then Complex(idealIntermediateSwitch.idealIntermediateSwitch[3].s1.re * idealIntermediateSwitch.idealIntermediateSwitch[3].Goff + idealIntermediateSwitch.idealIntermediateSwitch[3].s3.re, idealIntermediateSwitch.idealIntermediateSwitch[3].s1.im * idealIntermediateSwitch.idealIntermediateSwitch[3].Goff + idealIntermediateSwitch.idealIntermediateSwitch[3].s3.im) else Complex(idealIntermediateSwitch.idealIntermediateSwitch[3].s1.re + idealIntermediateSwitch.idealIntermediateSwitch[3].s3.re * idealIntermediateSwitch.idealIntermediateSwitch[3].Goff, idealIntermediateSwitch.idealIntermediateSwitch[3].s1.im + idealIntermediateSwitch.idealIntermediateSwitch[3].s3.im * idealIntermediateSwitch.idealIntermediateSwitch[3].Goff) = Modelica.SIunits.ComplexCurrent(-idealCommutingSwitch.plug_n1.pin[3].i.re, -idealCommutingSwitch.plug_n1.pin[3].i.im) Variables: 1: idealIntermediateSwitch.idealIntermediateSwitch[3].s1.re:VARIABLE(unit = "1" protected = true ) "Real part of complex number" type: Real [3] 2: idealCommutingSwitch.plug_n1.pin[3].i.re:VARIABLE(flow=true unit = "A" ) "Real part of complex number" type: Real [3] [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/Compiler/BackEnd/DAEMode.mo:522:7-524:90:writable] Error: Internal error DAEMode.traverserStrongComponents failed on equation: 1/1 (1): idealCommutingSwitch.plug_n1.pin[3].i.im + idealClosingSwitch.i[3].im + idealCommutingSwitch.plug_n2.pin[3].i.im = 0.0 2/2 (2): if booleanStep3[3].y then Complex((-idealIntermediateSwitch.idealIntermediateSwitch[3].s2.re) * idealIntermediateSwitch.idealIntermediateSwitch[3].Goff - idealIntermediateSwitch.idealIntermediateSwitch[3].s3.re, (-idealIntermediateSwitch.idealIntermediateSwitch[3].s2.im) * idealIntermediateSwitch.idealIntermediateSwitch[3].Goff - idealIntermediateSwitch.idealIntermediateSwitch[3].s3.im) else Complex((-idealIntermediateSwitch.idealIntermediateSwitch[3].s2.re) - idealIntermediateSwitch.idealIntermediateSwitch[3].s3.re * idealIntermediateSwitch.idealIntermediateSwitch[3].Goff, (-idealIntermediateSwitch.idealIntermediateSwitch[3].s2.im) - idealIntermediateSwitch.idealIntermediateSwitch[3].s3.im * idealIntermediateSwitch.idealIntermediateSwitch[3].Goff) = Modelica.SIunits.ComplexCurrent(-impedance.i[3].re, -impedance.i[3].im) 3/4 (1): variableImpedance.v[3].re = variableImpedance.variableImpedance[3].R_actual * impedance.i[3].re - const_impedance[3].k.im * impedance.i[3].im 4/5 (1): impedance.v[3].re = impedance.plugToPins_p.pin_p[3].v.re - variableImpedance.v[3].re 5/6 (1): idealIntermediateSwitch.plugToPins_p1.pin_p[3].v.re - impedance.plugToPins_p.pin_p[3].v.re = idealIntermediateSwitch.idealIntermediateSwitch[3].s3.re * (if booleanStep3[3].y then idealIntermediateSwitch.idealIntermediateSwitch[3].Ron else 1.0) 6/7 (1): idealIntermediateSwitch.plugToPins_p1.pin_p[3].v.re - admittance.plugToPins_p.pin_p[3].v.re = idealIntermediateSwitch.idealIntermediateSwitch[3].s1.re * (if booleanStep3[3].y then 1.0 else idealIntermediateSwitch.idealIntermediateSwitch[3].Ron) 7/8 (1): admittance.v[3].re = admittance.plugToPins_p.pin_p[3].v.re - variableAdmittance.v[3].re 8/9 (1): admittance.i[3].re = variableAdmittance.variableImpedance[3].G_actual * variableAdmittance.v[3].re - const_admittance[3].k.im * variableAdmittance.v[3].im 9/10 (1): admittance.i[3].re = admittance.admittance[3].G_actual * admittance.v[3].re - admittance.admittance[3].B_ref * admittance.v[3].im 10/11 (1): admittance.v[3].im = admittance.plugToPins_p.pin_p[3].v.im - variableAdmittance.v[3].im 11/12 (1): idealIntermediateSwitch.plugToPins_p2.pin_p[3].v.im - admittance.plugToPins_p.pin_p[3].v.im = idealIntermediateSwitch.idealIntermediateSwitch[3].s4.im * (if booleanStep3[3].y then idealIntermediateSwitch.idealIntermediateSwitch[3].Ron else 1.0) 12/13 (1): idealIntermediateSwitch.plugToPins_p2.pin_p[3].v.im - impedance.plugToPins_p.pin_p[3].v.im = idealIntermediateSwitch.idealIntermediateSwitch[3].s2.im * (if booleanStep3[3].y then 1.0 else idealIntermediateSwitch.idealIntermediateSwitch[3].Ron) 13/14 (1): impedance.v[3].im = impedance.plugToPins_p.pin_p[3].v.im - variableImpedance.v[3].im 14/15 (1): variableImpedance.v[3].im = variableImpedance.variableImpedance[3].R_actual * impedance.i[3].im + const_impedance[3].k.im * impedance.i[3].re 15/16 (1): impedance.v[3].re = impedance.impedance[3].R_actual * impedance.i[3].re - impedance.impedance[3].X_ref * impedance.i[3].im 16/17 (1): impedance.v[3].im = impedance.impedance[3].R_actual * impedance.i[3].im + impedance.impedance[3].X_ref * impedance.i[3].re 17/18 (1): idealIntermediateSwitch.plugToPins_p1.pin_p[3].v.im - impedance.plugToPins_p.pin_p[3].v.im = idealIntermediateSwitch.idealIntermediateSwitch[3].s3.im * (if booleanStep3[3].y then idealIntermediateSwitch.idealIntermediateSwitch[3].Ron else 1.0) 18/19 (1): idealIntermediateSwitch.plugToPins_p1.pin_p[3].v.im - admittance.plugToPins_p.pin_p[3].v.im = idealIntermediateSwitch.idealIntermediateSwitch[3].s1.im * (if booleanStep3[3].y then 1.0 else idealIntermediateSwitch.idealIntermediateSwitch[3].Ron) 19/20 (2): if booleanStep3[3].y then Complex((-idealIntermediateSwitch.idealIntermediateSwitch[3].s1.re) * idealIntermediateSwitch.idealIntermediateSwitch[3].Goff - idealIntermediateSwitch.idealIntermediateSwitch[3].s4.re, (-idealIntermediateSwitch.idealIntermediateSwitch[3].s1.im) * idealIntermediateSwitch.idealIntermediateSwitch[3].Goff - idealIntermediateSwitch.idealIntermediateSwitch[3].s4.im) else Complex((-idealIntermediateSwitch.idealIntermediateSwitch[3].s1.re) - idealIntermediateSwitch.idealIntermediateSwitch[3].s4.re * idealIntermediateSwitch.idealIntermediateSwitch[3].Goff, (-idealIntermediateSwitch.idealIntermediateSwitch[3].s1.im) - idealIntermediateSwitch.idealIntermediateSwitch[3].s4.im * idealIntermediateSwitch.idealIntermediateSwitch[3].Goff) = Modelica.SIunits.ComplexCurrent(-admittance.i[3].re, -admittance.i[3].im) 20/22 (1): admittance.i[3].im = variableAdmittance.variableImpedance[3].G_actual * variableAdmittance.v[3].im + const_admittance[3].k.im * variableAdmittance.v[3].re 21/23 (1): admittance.i[3].im = admittance.admittance[3].G_actual * admittance.v[3].im + admittance.admittance[3].B_ref * admittance.v[3].re 22/24 (2): if booleanStep3[3].y then Complex(idealIntermediateSwitch.idealIntermediateSwitch[3].s2.re * idealIntermediateSwitch.idealIntermediateSwitch[3].Goff + idealIntermediateSwitch.idealIntermediateSwitch[3].s4.re, idealIntermediateSwitch.idealIntermediateSwitch[3].s2.im * idealIntermediateSwitch.idealIntermediateSwitch[3].Goff + idealIntermediateSwitch.idealIntermediateSwitch[3].s4.im) else Complex(idealIntermediateSwitch.idealIntermediateSwitch[3].s2.re + idealIntermediateSwitch.idealIntermediateSwitch[3].s4.re * idealIntermediateSwitch.idealIntermediateSwitch[3].Goff, idealIntermediateSwitch.idealIntermediateSwitch[3].s2.im + idealIntermediateSwitch.idealIntermediateSwitch[3].s4.im * idealIntermediateSwitch.idealIntermediateSwitch[3].Goff) = Modelica.SIunits.ComplexCurrent(-idealCommutingSwitch.plug_n2.pin[3].i.re, -idealCommutingSwitch.plug_n2.pin[3].i.im) 23/26 (1): idealIntermediateSwitch.plugToPins_p2.pin_p[3].v.re - impedance.plugToPins_p.pin_p[3].v.re = idealIntermediateSwitch.idealIntermediateSwitch[3].s2.re * (if booleanStep3[3].y then 1.0 else idealIntermediateSwitch.idealIntermediateSwitch[3].Ron) 24/27 (1): idealIntermediateSwitch.plugToPins_p2.pin_p[3].v.re - admittance.plugToPins_p.pin_p[3].v.re = idealIntermediateSwitch.idealIntermediateSwitch[3].s4.re * (if booleanStep3[3].y then idealIntermediateSwitch.idealIntermediateSwitch[3].Ron else 1.0) 25/28 (1): idealClosingSwitch.plugToPins_n.pin_n[3].v.re - idealIntermediateSwitch.plugToPins_p2.pin_p[3].v.re = idealCommutingSwitch.idealCommutingSwitch[3].s2.re * (if booleanStep2[3].y then idealCommutingSwitch.idealCommutingSwitch[3].Ron else 1.0) 26/29 (1): idealClosingSwitch.v[3].re = idealClosingSwitch.plugToPins_p.pin_p[3].v.re - idealClosingSwitch.plugToPins_n.pin_n[3].v.re 27/30 (1): idealClosingSwitch.v[3].re = idealClosingSwitch.idealClosingSwitch[3].s.re * (if booleanStep1[3].y then idealClosingSwitch.idealClosingSwitch[3].Ron else 1.0) 28/31 (1): idealClosingSwitch.i[3].re = idealClosingSwitch.idealClosingSwitch[3].s.re * (if booleanStep1[3].y then 1.0 else idealClosingSwitch.idealClosingSwitch[3].Goff) 29/32 (1): idealClosingSwitch.i[3].re = idealOpeningSwitch.idealOpeningSwitch[3].s.re * (if booleanStep4[3].y then idealOpeningSwitch.idealOpeningSwitch[3].Goff else 1.0) 30/33 (1): idealOpeningSwitch.v[3].re = idealOpeningSwitch.idealOpeningSwitch[3].s.re * (if booleanStep4[3].y then 1.0 else idealOpeningSwitch.idealOpeningSwitch[3].Ron) 31/34 (1): idealOpeningSwitch.v[3].re = voltageSource.v[3].re - idealClosingSwitch.plugToPins_p.pin_p[3].v.re 32/35 (1): idealCommutingSwitch.plug_n1.pin[3].i.re + idealClosingSwitch.i[3].re + idealCommutingSwitch.plug_n2.pin[3].i.re = 0.0 33/36 (1): idealCommutingSwitch.plug_n2.pin[3].i.re = (-idealCommutingSwitch.idealCommutingSwitch[3].s2.re) * (if booleanStep2[3].y then 1.0 else idealCommutingSwitch.idealCommutingSwitch[3].Goff) 34/37 (1): idealClosingSwitch.plugToPins_n.pin_n[3].v.re - idealIntermediateSwitch.plugToPins_p1.pin_p[3].v.re = idealCommutingSwitch.idealCommutingSwitch[3].s1.re * (if booleanStep2[3].y then 1.0 else idealCommutingSwitch.idealCommutingSwitch[3].Ron) 35/38 (1): idealCommutingSwitch.plug_n1.pin[3].i.re = (-idealCommutingSwitch.idealCommutingSwitch[3].s1.re) * (if booleanStep2[3].y then idealCommutingSwitch.idealCommutingSwitch[3].Goff else 1.0) 36/39 (2): if booleanStep3[3].y then Complex(idealIntermediateSwitch.idealIntermediateSwitch[3].s1.re * idealIntermediateSwitch.idealIntermediateSwitch[3].Goff + idealIntermediateSwitch.idealIntermediateSwitch[3].s3.re, idealIntermediateSwitch.idealIntermediateSwitch[3].s1.im * idealIntermediateSwitch.idealIntermediateSwitch[3].Goff + idealIntermediateSwitch.idealIntermediateSwitch[3].s3.im) else Complex(idealIntermediateSwitch.idealIntermediateSwitch[3].s1.re + idealIntermediateSwitch.idealIntermediateSwitch[3].s3.re * idealIntermediateSwitch.idealIntermediateSwitch[3].Goff, idealIntermediateSwitch.idealIntermediateSwitch[3].s1.im + idealIntermediateSwitch.idealIntermediateSwitch[3].s3.im * idealIntermediateSwitch.idealIntermediateSwitch[3].Goff) = Modelica.SIunits.ComplexCurrent(-idealCommutingSwitch.plug_n1.pin[3].i.re, -idealCommutingSwitch.plug_n1.pin[3].i.im) 37/41 (1): idealClosingSwitch.plugToPins_n.pin_n[3].v.im - idealIntermediateSwitch.plugToPins_p1.pin_p[3].v.im = idealCommutingSwitch.idealCommutingSwitch[3].s1.im * (if booleanStep2[3].y then 1.0 else idealCommutingSwitch.idealCommutingSwitch[3].Ron) 38/42 (1): idealClosingSwitch.v[3].im = idealClosingSwitch.plugToPins_p.pin_p[3].v.im - idealClosingSwitch.plugToPins_n.pin_n[3].v.im 39/43 (1): idealClosingSwitch.v[3].im = idealClosingSwitch.idealClosingSwitch[3].s.im * (if booleanStep1[3].y then idealClosingSwitch.idealClosingSwitch[3].Ron else 1.0) 40/44 (1): idealClosingSwitch.i[3].im = idealClosingSwitch.idealClosingSwitch[3].s.im * (if booleanStep1[3].y then 1.0 else idealClosingSwitch.idealClosingSwitch[3].Goff) 41/45 (1): idealClosingSwitch.i[3].im = idealOpeningSwitch.idealOpeningSwitch[3].s.im * (if booleanStep4[3].y then idealOpeningSwitch.idealOpeningSwitch[3].Goff else 1.0) 42/46 (1): idealOpeningSwitch.v[3].im = idealOpeningSwitch.idealOpeningSwitch[3].s.im * (if booleanStep4[3].y then 1.0 else idealOpeningSwitch.idealOpeningSwitch[3].Ron) 43/47 (1): idealOpeningSwitch.v[3].im = voltageSource.v[3].im - idealClosingSwitch.plugToPins_p.pin_p[3].v.im 44/48 (1): idealClosingSwitch.plugToPins_n.pin_n[3].v.im - idealIntermediateSwitch.plugToPins_p2.pin_p[3].v.im = idealCommutingSwitch.idealCommutingSwitch[3].s2.im * (if booleanStep2[3].y then idealCommutingSwitch.idealCommutingSwitch[3].Ron else 1.0) 45/49 (1): idealCommutingSwitch.plug_n2.pin[3].i.im = (-idealCommutingSwitch.idealCommutingSwitch[3].s2.im) * (if booleanStep2[3].y then 1.0 else idealCommutingSwitch.idealCommutingSwitch[3].Goff) 46/50 (1): idealCommutingSwitch.plug_n1.pin[3].i.im = (-idealCommutingSwitch.idealCommutingSwitch[3].s1.im) * (if booleanStep2[3].y then idealCommutingSwitch.idealCommutingSwitch[3].Goff else 1.0) Variables: 1: idealCommutingSwitch.idealCommutingSwitch[3].s1.im:VARIABLE(unit = "1" protected = true ) "Imaginary part of complex number" type: Real [3] 2: idealCommutingSwitch.plug_n2.pin[3].i.im:VARIABLE(flow=true unit = "A" ) "Imaginary part of complex number" type: Real [3] 3: idealCommutingSwitch.idealCommutingSwitch[3].s2.im:VARIABLE(unit = "1" protected = true ) "Imaginary part of complex number" type: Real [3] 4: idealClosingSwitch.plugToPins_p.pin_p[3].v.im:VARIABLE(flow=false unit = "V" ) "Imaginary part of complex number" type: Real [3] 5: idealOpeningSwitch.v[3].im:VARIABLE(unit = "V" ) "Imaginary part of complex number" type: Real [3] 6: idealOpeningSwitch.idealOpeningSwitch[3].s.im:VARIABLE(unit = "1" protected = true ) "Imaginary part of complex number" type: Real [3] 7: idealClosingSwitch.i[3].im:VARIABLE(unit = "A" ) "Imaginary part of complex number" type: Real [3] 8: idealClosingSwitch.idealClosingSwitch[3].s.im:VARIABLE(unit = "1" protected = true ) "Imaginary part of complex number" type: Real [3] 9: idealClosingSwitch.v[3].im:VARIABLE(unit = "V" ) "Imaginary part of complex number" type: Real [3] 10: idealClosingSwitch.plugToPins_n.pin_n[3].v.im:VARIABLE(flow=false unit = "V" ) "Imaginary part of complex number" type: Real [3] 11: idealIntermediateSwitch.idealIntermediateSwitch[3].s1.re:VARIABLE(unit = "1" protected = true ) "Real part of complex number" type: Real [3] 12: idealCommutingSwitch.plug_n1.pin[3].i.re:VARIABLE(flow=true unit = "A" ) "Real part of complex number" type: Real [3] 13: idealCommutingSwitch.idealCommutingSwitch[3].s1.re:VARIABLE(unit = "1" protected = true ) "Real part of complex number" type: Real [3] 14: idealCommutingSwitch.idealCommutingSwitch[3].s2.re:VARIABLE(unit = "1" protected = true ) "Real part of complex number" type: Real [3] 15: idealCommutingSwitch.plug_n2.pin[3].i.re:VARIABLE(flow=true unit = "A" ) "Real part of complex number" type: Real [3] 16: idealClosingSwitch.plugToPins_p.pin_p[3].v.re:VARIABLE(flow=false unit = "V" ) "Real part of complex number" type: Real [3] 17: idealOpeningSwitch.v[3].re:VARIABLE(unit = "V" ) "Real part of complex number" type: Real [3] 18: idealOpeningSwitch.idealOpeningSwitch[3].s.re:VARIABLE(unit = "1" protected = true ) "Real part of complex number" type: Real [3] 19: idealClosingSwitch.i[3].re:VARIABLE(unit = "A" ) "Real part of complex number" type: Real [3] 20: idealClosingSwitch.idealClosingSwitch[3].s.re:VARIABLE(unit = "1" protected = true ) "Real part of complex number" type: Real [3] 21: idealClosingSwitch.v[3].re:VARIABLE(unit = "V" ) "Real part of complex number" type: Real [3] 22: idealClosingSwitch.plugToPins_n.pin_n[3].v.re:VARIABLE(flow=false unit = "V" ) "Real part of complex number" type: Real [3] 23: idealIntermediateSwitch.idealIntermediateSwitch[3].s4.re:VARIABLE(unit = "1" protected = true ) "Real part of complex number" type: Real [3] 24: idealIntermediateSwitch.plugToPins_p2.pin_p[3].v.re:VARIABLE(flow=false unit = "V" ) "Real part of complex number" type: Real [3] 25: idealIntermediateSwitch.idealIntermediateSwitch[3].s2.re:VARIABLE(unit = "1" protected = true ) "Real part of complex number" type: Real [3] 26: idealIntermediateSwitch.idealIntermediateSwitch[3].s2.im:VARIABLE(unit = "1" protected = true ) "Imaginary part of complex number" type: Real [3] 27: admittance.v[3].re:VARIABLE(unit = "V" ) "Real part of complex number" type: Real [3] 28: variableAdmittance.v[3].im:VARIABLE(unit = "V" ) "Imaginary part of complex number" type: Real [3] 29: admittance.i[3].im:VARIABLE(unit = "A" ) "Imaginary part of complex number" type: Real [3] 30: idealIntermediateSwitch.idealIntermediateSwitch[3].s4.im:VARIABLE(unit = "1" protected = true ) "Imaginary part of complex number" type: Real [3] 31: idealIntermediateSwitch.idealIntermediateSwitch[3].s1.im:VARIABLE(unit = "1" protected = true ) "Imaginary part of complex number" type: Real [3] 32: idealIntermediateSwitch.plugToPins_p1.pin_p[3].v.im:VARIABLE(flow=false unit = "V" ) "Imaginary part of complex number" type: Real [3] 33: impedance.v[3].im:VARIABLE(unit = "V" ) "Imaginary part of complex number" type: Real [3] 34: impedance.v[3].re:VARIABLE(unit = "V" ) "Real part of complex number" type: Real [3] 35: impedance.i[3].re:VARIABLE(unit = "A" ) "Real part of complex number" type: Real [3] 36: variableImpedance.v[3].im:VARIABLE(unit = "V" ) "Imaginary part of complex number" type: Real [3] 37: impedance.plugToPins_p.pin_p[3].v.im:VARIABLE(flow=false unit = "V" ) "Imaginary part of complex number" type: Real [3] 38: idealIntermediateSwitch.plugToPins_p2.pin_p[3].v.im:VARIABLE(flow=false unit = "V" ) "Imaginary part of complex number" type: Real [3] 39: admittance.plugToPins_p.pin_p[3].v.im:VARIABLE(flow=false unit = "V" ) "Imaginary part of complex number" type: Real [3] 40: admittance.v[3].im:VARIABLE(unit = "V" ) "Imaginary part of complex number" type: Real [3] 41: admittance.i[3].re:VARIABLE(unit = "A" ) "Real part of complex number" type: Real [3] 42: variableAdmittance.v[3].re:VARIABLE(unit = "V" ) "Real part of complex number" type: Real [3] 43: admittance.plugToPins_p.pin_p[3].v.re:VARIABLE(flow=false unit = "V" ) "Real part of complex number" type: Real [3] 44: idealIntermediateSwitch.plugToPins_p1.pin_p[3].v.re:VARIABLE(flow=false unit = "V" ) "Real part of complex number" type: Real [3] 45: impedance.plugToPins_p.pin_p[3].v.re:VARIABLE(flow=false unit = "V" ) "Real part of complex number" type: Real [3] 46: variableImpedance.v[3].re:VARIABLE(unit = "V" ) "Real part of complex number" type: Real [3] 47: impedance.i[3].im:VARIABLE(unit = "A" ) "Imaginary part of complex number" type: Real [3] 48: idealIntermediateSwitch.idealIntermediateSwitch[3].s3.im:VARIABLE(unit = "1" protected = true ) "Imaginary part of complex number" type: Real [3] 49: idealIntermediateSwitch.idealIntermediateSwitch[3].s3.re:VARIABLE(unit = "1" protected = true ) "Real part of complex number" type: Real [3] 50: idealCommutingSwitch.plug_n1.pin[3].i.im:VARIABLE(flow=true unit = "A" ) "Imaginary part of complex number" type: Real [3] [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/Compiler/BackEnd/BackendDAEUtil.mo:9703:5-9704:77:writable] Error: Internal error BackendDAEUtil.traverseEqSystemStrongComponents failed with function: omc_DAEMode_traverserStrongComponents Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.004774/2.692, allocations: 4.308 MB / 0.7634 GB, free: 119.8 MB / 0.5262 GB Error: post-optimization module createDAEmodeBDAE (simulation) failed.