Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_cpp_ModelicaTest.Electrical.QuasiStatic.Polyphase.Ideal.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) Using package ModelicaTest with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Running command: translateModel(ModelicaTest.Electrical.QuasiStatic.Polyphase.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_trunk_cpp_ModelicaTest.Electrical.QuasiStatic.Polyphase.Ideal") translateModel(ModelicaTest.Electrical.QuasiStatic.Polyphase.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_trunk_cpp_ModelicaTest.Electrical.QuasiStatic.Polyphase.Ideal") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001368/0.001368, allocations: 199.9 kB / 16.76 MB, free: 5.02 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.417/1.417, allocations: 226.5 MB / 244 MB, free: 8.227 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007279/0.0007278, allocations: 103.8 kB / 296.1 MB, free: 6.918 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2848/0.2848, allocations: 44.82 MB / 392.9 MB, free: 35.76 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003036/0.0003036, allocations: 8 kB / 465.9 MB, free: 12.69 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3114/0.3118, allocations: 62.96 MB / 0.5165 GB, free: 36.95 MB / 378.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Electrical.QuasiStatic.Polyphase.Ideal): time 0.01431/0.3261, allocations: 19.79 MB / 0.5358 GB, free: 22.42 MB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.009695/0.3359, allocations: 5.07 MB / 0.5408 GB, free: 18.68 MB / 378.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004038/0.3399, allocations: 173.9 kB / 0.5409 GB, free: 18.64 MB / 378.7 MB Notification: Performance of NFTyping.typeComponents: time 0.00374/0.3437, allocations: 1.009 MB / 0.5419 GB, free: 18.14 MB / 378.7 MB Notification: Performance of NFTyping.typeBindings: time 0.006559/0.3503, allocations: 1.854 MB / 0.5437 GB, free: 17.07 MB / 378.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.004043/0.3543, allocations: 1.456 MB / 0.5452 GB, free: 16.19 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 0.0146/0.3689, allocations: 13.59 MB / 0.5584 GB, free: 9.527 MB / 378.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.05004/0.419, allocations: 32.89 MB / 0.5905 GB, free: 13.41 MB / 410.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.01/0.4291, allocations: 5.505 MB / 0.5959 GB, free: 7.891 MB / 410.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01191/0.441, allocations: 6.198 MB / 0.602 GB, free: 1.668 MB / 410.7 MB Notification: Performance of NFPackage.collectConstants: time 0.003143/0.4442, allocations: 0.832 MB / 0.6028 GB, free: 0.8359 MB / 410.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.005767/0.45, allocations: 1.066 MB / 0.6038 GB, free: 15.77 MB / 426.7 MB Notification: Performance of NFScalarize.scalarize: time 0.004078/0.4541, allocations: 2.643 MB / 0.6064 GB, free: 13.12 MB / 426.7 MB Notification: Performance of NFVerifyModel.verify: time 0.01231/0.4664, allocations: 6.383 MB / 0.6126 GB, free: 6.699 MB / 426.7 MB Notification: Performance of NFConvertDAE.convert: time 0.02688/0.4933, allocations: 24.1 MB / 0.6362 GB, free: 14.53 MB / 458.7 MB Notification: Performance of FrontEnd - DAE generated: time 9.227e-06/0.4934, allocations: 0 / 0.6362 GB, free: 14.53 MB / 458.7 MB Notification: Performance of FrontEnd: time 3.647e-06/0.4934, allocations: 0 / 0.6362 GB, free: 14.53 MB / 458.7 MB Notification: Performance of Transformations before backend: time 0.00109/0.4945, allocations: 0 / 0.6362 GB, free: 14.53 MB / 458.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 3858 * Number of variables: 3858 Notification: Performance of Generate backend data structure: time 0.04862/0.5432, allocations: 15.52 MB / 0.6513 GB, free: 14.91 MB / 474.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.62e-05/0.5432, allocations: 8.031 kB / 0.6513 GB, free: 14.9 MB / 474.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.05844/0.6017, allocations: 11.77 MB / 0.6628 GB, free: 3.094 MB / 474.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01855/0.6203, allocations: 8.558 MB / 0.6712 GB, free: 10.45 MB / 490.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.00128/0.6216, allocations: 1.06 MB / 0.6722 GB, free: 9.383 MB / 490.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.005326/0.6269, allocations: 1.375 MB / 0.6736 GB, free: 8.012 MB / 490.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.4947/1.122, allocations: 23.5 MB / 0.6965 GB, free: 98.88 MB / 490.8 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000501/1.122, allocations: 14.77 kB / 0.6965 GB, free: 98.88 MB / 490.8 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.00495/1.127, allocations: 0.5685 MB / 0.6971 GB, free: 98.44 MB / 490.8 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0008595/1.128, allocations: 0.7041 MB / 0.6978 GB, free: 98.37 MB / 490.8 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.05063/1.179, allocations: 21.63 MB / 0.7189 GB, free: 90.88 MB / 490.8 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1241/1.303, allocations: 72.92 MB / 0.7901 GB, free: 27.22 MB / 490.8 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02018/1.323, allocations: 28.65 MB / 0.8181 GB, free: 11.89 MB / 0.4949 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.008171/1.331, allocations: 4.969 MB / 0.8229 GB, free: 6.895 MB / 0.4949 GB Notification: Performance of preOpt evalFunc (simulation): time 0.02942/1.361, allocations: 16.51 MB / 0.8391 GB, free: 6.148 MB / 0.5105 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.127e-05/1.361, allocations: 82.11 kB / 0.8391 GB, free: 6.059 MB / 0.5105 GB Notification: Performance of pre-optimization done (n=465): time 8.075e-06/1.361, allocations: 0 / 0.8391 GB, free: 6.059 MB / 0.5105 GB Notification: Performance of matching and sorting (n=465): time 0.03767/1.398, allocations: 15.82 MB / 0.8546 GB, free: 6.156 MB / 0.5262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.537e-05/1.399, allocations: 128.7 kB / 0.8547 GB, free: 6.012 MB / 0.5262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.009681/1.408, allocations: 5.074 MB / 0.8597 GB, free: 0.9336 MB / 0.5262 GB Notification: Performance of collectPreVariables (initialization): time 0.0009525/1.409, allocations: 97.7 kB / 0.8598 GB, free: 0.832 MB / 0.5262 GB Notification: Performance of collectInitialEqns (initialization): time 0.004444/1.414, allocations: 5.907 MB / 0.8655 GB, free: 10.96 MB / 0.5418 GB Notification: Performance of collectInitialBindings (initialization): time 0.002392/1.416, allocations: 1.579 MB / 0.8671 GB, free: 9.359 MB / 0.5418 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001197/1.417, allocations: 148 kB / 0.8672 GB, free: 9.215 MB / 0.5418 GB Notification: Performance of setup shared object (initialization): time 0.0008267/1.418, allocations: 0.616 MB / 0.8678 GB, free: 8.594 MB / 0.5418 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.007995/1.426, allocations: 4.144 MB / 0.8719 GB, free: 4.445 MB / 0.5418 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.009633/1.436, allocations: 7.262 MB / 0.879 GB, free: 11.73 MB / 0.5574 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01777/1.454, allocations: 11.94 MB / 0.8906 GB, free: 14.32 MB / 0.573 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001213/1.454, allocations: 32 kB / 0.8907 GB, free: 14.29 MB / 0.573 GB Notification: Performance of matching and sorting (n=961) (initialization): time 0.02851/1.482, allocations: 13.1 MB / 0.9034 GB, free: 1.168 MB / 0.573 GB Notification: Performance of prepare postOptimizeDAE: time 0.0002612/1.483, allocations: 52.22 kB / 0.9035 GB, free: 1.117 MB / 0.573 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0003466/1.483, allocations: 108 kB / 0.9036 GB, free: 1.012 MB / 0.573 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.4297/1.913, allocations: 3.084 MB / 0.9066 GB, free: 182.1 MB / 0.573 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006994/1.92, allocations: 1.597 MB / 0.9082 GB, free: 182.1 MB / 0.573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02868/1.949, allocations: 21.89 MB / 0.9295 GB, free: 171.8 MB / 0.573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01527/1.964, allocations: 1.078 MB / 0.9306 GB, free: 171.5 MB / 0.573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.003177/1.967, allocations: 391.4 kB / 0.931 GB, free: 171.4 MB / 0.573 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 473 * 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 (814): * Single equations (assignments): 811 * 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.0171/1.984, allocations: 5.38 MB / 0.9362 GB, free: 169 MB / 0.573 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001918/1.986, allocations: 0.4986 MB / 0.9367 GB, free: 168.9 MB / 0.573 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.03055/2.017, allocations: 9.661 MB / 0.9461 GB, free: 165.2 MB / 0.573 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.322e-05/2.017, allocations: 24.3 kB / 0.9462 GB, free: 165.2 MB / 0.573 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.721e-05/2.017, allocations: 7.938 kB / 0.9462 GB, free: 165.2 MB / 0.573 GB Notification: Performance of postOpt removeConstants (simulation): time 0.003896/2.021, allocations: 1.384 MB / 0.9475 GB, free: 164.5 MB / 0.573 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001306/2.022, allocations: 78.81 kB / 0.9476 GB, free: 164.4 MB / 0.573 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003919/2.026, allocations: 397.4 kB / 0.948 GB, free: 164.4 MB / 0.573 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0008204/2.027, allocations: 323.5 kB / 0.9483 GB, free: 164.3 MB / 0.573 GB [/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/Compiler/BackEnd/DAEMode.mo:522:7-524:90:writable] Error: Internal error DAEMode.traverserStrongComponents failed on equation: 1/1 (2): Modelica.Units.SI.ComplexCurrent(-idealCommutingSwitch.plug_n1.pin[3].i.re, -idealCommutingSwitch.plug_n1.pin[3].i.im) = 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) 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/jenkins1/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): Modelica.Units.SI.ComplexCurrent(-impedance.i[3].re, -impedance.i[3].im) = 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) 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): Modelica.Units.SI.ComplexCurrent(-admittance.i[3].re, -admittance.i[3].im) = 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) 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): Modelica.Units.SI.ComplexCurrent(-idealCommutingSwitch.plug_n2.pin[3].i.re, -idealCommutingSwitch.plug_n2.pin[3].i.im) = 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) 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): Modelica.Units.SI.ComplexCurrent(-idealCommutingSwitch.plug_n1.pin[3].i.re, -idealCommutingSwitch.plug_n1.pin[3].i.im) = 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) 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/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/Compiler/BackEnd/BackendDAEUtil.mo:9741:5-9742:77:writable] Error: Internal error BackendDAEUtil.traverseEqSystemStrongComponents failed with function: omc_DAEMode_traverserStrongComponents Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.003363/2.03, allocations: 4.282 MB / 0.9525 GB, free: 160.5 MB / 0.573 GB Error: post-optimization module createDAEmodeBDAE (simulation) failed.