Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr OpenIPSL_dev_OpenIPSL.Tests.Branches.PSAT.PhaseShiftingTransformer_Test.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenIPSL 3.1.0-master/package.mo", uses=false) Using package OpenIPSL with version 3.1.0-dev (/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenIPSL 3.1.0-master/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(OpenIPSL.Tests.Branches.PSAT.PhaseShiftingTransformer_Test,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="OpenIPSL_dev_OpenIPSL.Tests.Branches.PSAT.PhaseShiftingTransformer_Test") translateModel(OpenIPSL.Tests.Branches.PSAT.PhaseShiftingTransformer_Test,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="OpenIPSL_dev_OpenIPSL.Tests.Branches.PSAT.PhaseShiftingTransformer_Test") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001241/0.001241, allocations: 108.1 kB / 16.42 MB, free: 6.48 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.471/1.471, allocations: 222.9 MB / 240.1 MB, free: 4.195 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001703/0.001703, allocations: 192.5 kB / 290.4 MB, free: 1.938 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenIPSL 3.1.0-master/package.mo): time 0.5514/0.5514, allocations: 91.88 MB / 432.4 MB, free: 9.086 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.691e-05/2.692e-05, allocations: 2.281 kB / 0.5733 GB, free: 33.31 MB / 430.1 MB Notification: Performance of NFInst.instantiate(OpenIPSL.Tests.Branches.PSAT.PhaseShiftingTransformer_Test): time 0.004009/0.004045, allocations: 3.408 MB / 0.5766 GB, free: 31.04 MB / 430.1 MB Notification: Performance of NFInst.instExpressions: time 0.001947/0.006009, allocations: 1.067 MB / 0.5776 GB, free: 30.29 MB / 430.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003231/0.006348, allocations: 2.844 kB / 0.5776 GB, free: 30.29 MB / 430.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000352/0.006709, allocations: 98.62 kB / 0.5777 GB, free: 30.23 MB / 430.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004021/0.007119, allocations: 163.6 kB / 0.5779 GB, free: 30.12 MB / 430.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007156/0.007879, allocations: 347.8 kB / 0.5782 GB, free: 29.91 MB / 430.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005444/0.008432, allocations: 0.6805 MB / 0.5789 GB, free: 29.57 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002602/0.008701, allocations: 151.9 kB / 0.579 GB, free: 29.5 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002689/0.008978, allocations: 251.9 kB / 0.5793 GB, free: 29.38 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002708/0.009257, allocations: 272.2 kB / 0.5795 GB, free: 29.23 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 7.081e-05/0.009335, allocations: 54.17 kB / 0.5796 GB, free: 29.23 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002301/0.009571, allocations: 115 kB / 0.5797 GB, free: 29.2 MB / 430.1 MB Notification: Performance of combineBinaries: time 0.0005028/0.01008, allocations: 0.8671 MB / 0.5805 GB, free: 28.62 MB / 430.1 MB Notification: Performance of replaceArrayConstructors: time 0.0002398/0.01033, allocations: 0.5414 MB / 0.5811 GB, free: 28.23 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 7.046e-05/0.01041, allocations: 87.53 kB / 0.5812 GB, free: 28.18 MB / 430.1 MB Notification: Performance of FrontEnd: time 7.978e-05/0.01049, allocations: 11.22 kB / 0.5812 GB, free: 28.18 MB / 430.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 71 (68) * Number of variables: 71 (71) Notification: Performance of Bindings: time 0.001645/0.01214, allocations: 2.392 MB / 0.5835 GB, free: 26.44 MB / 430.1 MB Notification: Performance of FunctionAlias: time 0.0002044/0.01236, allocations: 176.4 kB / 0.5837 GB, free: 26.34 MB / 430.1 MB Notification: Performance of Early Inline: time 0.001389/0.01375, allocations: 1.533 MB / 0.5852 GB, free: 25.36 MB / 430.1 MB Notification: Performance of simplify1: time 8.856e-05/0.01385, allocations: 101.9 kB / 0.5853 GB, free: 25.31 MB / 430.1 MB Notification: Performance of Alias: time 0.002575/0.01643, allocations: 1.957 MB / 0.5872 GB, free: 24.02 MB / 430.1 MB Notification: Performance of simplify2: time 7.134e-05/0.01652, allocations: 68.97 kB / 0.5872 GB, free: 23.99 MB / 430.1 MB Notification: Performance of Events: time 0.000127/0.01665, allocations: 107.6 kB / 0.5873 GB, free: 23.93 MB / 430.1 MB Notification: Performance of Detect States: time 0.0003047/0.01697, allocations: 287.6 kB / 0.5876 GB, free: 23.74 MB / 430.1 MB Notification: Performance of Partitioning: time 0.0003985/0.01737, allocations: 380.1 kB / 0.588 GB, free: 23.53 MB / 430.1 MB Notification: Performance of Causalize: time 0.001808/0.01919, allocations: 1.524 MB / 0.5895 GB, free: 22.98 MB / 430.1 MB Notification: Performance of After Index Reduction Inline: time 0.000826/0.02002, allocations: 0.9404 MB / 0.5904 GB, free: 22.36 MB / 430.1 MB Notification: Performance of Inline: time 0.002329/0.02236, allocations: 2.09 MB / 0.5924 GB, free: 21.04 MB / 430.1 MB Notification: Performance of Partitioning: time 0.0001212/0.02249, allocations: 91.08 kB / 0.5925 GB, free: 20.97 MB / 430.1 MB Notification: Performance of Cleanup: time 7.775e-05/0.02258, allocations: 81 kB / 0.5926 GB, free: 20.92 MB / 430.1 MB Notification: Performance of Causalize: time 0.006498/0.02908, allocations: 4.509 MB / 0.597 GB, free: 19.24 MB / 430.1 MB Error: Internal error NBEquation.IfEquationBody.getResidualExp failed for: if $SEV_0 then [SCAL] (1) phaseShiftingTransformer.twoWindingTransformer.n.vi = lOADPQ.p.vr * sin(phaseShiftingTransformer.phaseShifter.alpha_max) + lOADPQ.p.vi * cos(phaseShiftingTransformer.phaseShifter.alpha_max) ($RES_SIM_8) [SCAL] (1) phaseShiftingTransformer.twoWindingTransformer.n.vr = lOADPQ.p.vr * cos(phaseShiftingTransformer.phaseShifter.alpha_max) - lOADPQ.p.vi * sin(phaseShiftingTransformer.phaseShifter.alpha_max) ($RES_SIM_9) [SCAL] (1) $DER.phaseShiftingTransformer.phaseShifter.pmes = (phaseShiftingTransformer.pk - phaseShiftingTransformer.phaseShifter.pmes) / phaseShiftingTransformer.phaseShifter.Tm ($RES_SIM_10) [SCAL] (1) $DER.phaseShiftingTransformer.phaseShifter.alpha = 0.0 ($RES_SIM_11) elseif $SEV_1 then [SCAL] (1) phaseShiftingTransformer.twoWindingTransformer.n.vi = lOADPQ.p.vr * sin(phaseShiftingTransformer.phaseShifter.alpha_min) + lOADPQ.p.vi * cos(phaseShiftingTransformer.phaseShifter.alpha_min) ($RES_SIM_12) [SCAL] (1) phaseShiftingTransformer.twoWindingTransformer.n.vr = lOADPQ.p.vr * cos(phaseShiftingTransformer.phaseShifter.alpha_min) - lOADPQ.p.vi * sin(phaseShiftingTransformer.phaseShifter.alpha_min) ($RES_SIM_13) [SCAL] (1) $DER.phaseShiftingTransformer.phaseShifter.pmes = (phaseShiftingTransformer.pk - phaseShiftingTransformer.phaseShifter.pmes) / phaseShiftingTransformer.phaseShifter.Tm ($RES_SIM_14) [SCAL] (1) $DER.phaseShiftingTransformer.phaseShifter.alpha = 0.0 ($RES_SIM_15) else [SCAL] (1) phaseShiftingTransformer.twoWindingTransformer.n.vi = lOADPQ.p.vr * sin(phaseShiftingTransformer.phaseShifter.alpha) + lOADPQ.p.vi * cos(phaseShiftingTransformer.phaseShifter.alpha) ($RES_SIM_16) [SCAL] (1) phaseShiftingTransformer.twoWindingTransformer.n.vr = lOADPQ.p.vr * cos(phaseShiftingTransformer.phaseShifter.alpha) - lOADPQ.p.vi * sin(phaseShiftingTransformer.phaseShifter.alpha) ($RES_SIM_17) [SCAL] (1) $DER.phaseShiftingTransformer.phaseShifter.pmes = (phaseShiftingTransformer.pk - phaseShiftingTransformer.phaseShifter.pmes) / phaseShiftingTransformer.phaseShifter.Tm ($RES_SIM_18) [SCAL] (1) $DER.phaseShiftingTransformer.phaseShifter.alpha = ((phaseShiftingTransformer.pk - phaseShiftingTransformer.phaseShifter.pmes) * phaseShiftingTransformer.phaseShifter.Kp) / phaseShiftingTransformer.phaseShifter.Tm + phaseShiftingTransformer.phaseShifter.Ki * (phaseShiftingTransformer.phaseShifter.pmes - phaseShiftingTransformer.phaseShifter.pref) ($RES_SIM_19) end if; Error: Internal error NBInitialization.main failed to apply modules!