Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr OpenIPSL_2.0.0_OpenIPSL.Tests.Branches.PSAT.PhaseShiftingTransformer_Test.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_Synchronous 0.93.0-master/package.mo", uses=false) 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 3.2.3+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 2.0.0/package.mo", uses=false) Using package OpenIPSL with version 2.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenIPSL 2.0.0/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 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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) Using package Modelica_Synchronous with version 0.93.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_Synchronous 0.93.0-master/package.mo) Running command: translateModel(OpenIPSL.Tests.Branches.PSAT.PhaseShiftingTransformer_Test,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="OpenIPSL_2.0.0_OpenIPSL.Tests.Branches.PSAT.PhaseShiftingTransformer_Test") translateModel(OpenIPSL.Tests.Branches.PSAT.PhaseShiftingTransformer_Test,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="OpenIPSL_2.0.0_OpenIPSL.Tests.Branches.PSAT.PhaseShiftingTransformer_Test") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_Synchronous 0.93.0-master/package.mo): time 0.0624/0.0624, allocations: 12.6 MB / 28.92 MB, free: 0.6367 MB / 19.63 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008461/0.0008462, allocations: 111.5 kB / 32.52 MB, free: 3.578 MB / 26.18 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.093/1.093, allocations: 205.1 MB / 241.1 MB, free: 12.39 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.00114/0.00114, allocations: 196.4 kB / 291.4 MB, free: 13.41 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenIPSL 2.0.0/package.mo): time 0.3602/0.3602, allocations: 78.49 MB / 420 MB, free: 11.27 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.752e-05/1.753e-05, allocations: 2.281 kB / 0.5564 GB, free: 28.6 MB / 398.1 MB Notification: Performance of NFInst.instantiate(OpenIPSL.Tests.Branches.PSAT.PhaseShiftingTransformer_Test): time 0.002981/0.003007, allocations: 3.431 MB / 0.5597 GB, free: 26.12 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.001574/0.004592, allocations: 1.016 MB / 0.5607 GB, free: 25.39 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002803/0.004884, allocations: 4.219 kB / 0.5607 GB, free: 25.39 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002814/0.005172, allocations: 105.2 kB / 0.5608 GB, free: 25.33 MB / 398.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenIPSL 2.0.0/Electrical/Branches/PSAT/TwoWindingTransformer.mo:44:3-44:83:writable] Warning: In relation phaseShiftingTransformer.twoWindingTransformer.m <> 1.0, <> on Real numbers is only allowed inside functions. Notification: Performance of NFTyping.typeBindings: time 0.0004341/0.005614, allocations: 158.9 kB / 0.561 GB, free: 25.21 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006302/0.006258, allocations: 355 kB / 0.5613 GB, free: 25 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005591/0.006826, allocations: 0.6763 MB / 0.562 GB, free: 24.65 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002111/0.007043, allocations: 158.1 kB / 0.5621 GB, free: 24.57 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003014/0.007351, allocations: 253.3 kB / 0.5623 GB, free: 24.45 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000288/0.007647, allocations: 265.8 kB / 0.5626 GB, free: 24.3 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 7.595e-05/0.00773, allocations: 56.16 kB / 0.5627 GB, free: 24.3 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002104/0.007946, allocations: 117.9 kB / 0.5628 GB, free: 24.27 MB / 398.1 MB Notification: Performance of combineBinaries: time 0.0004558/0.008409, allocations: 0.8745 MB / 0.5636 GB, free: 23.68 MB / 398.1 MB Notification: Performance of replaceArrayConstructors: time 0.000211/0.008625, allocations: 0.5382 MB / 0.5641 GB, free: 23.29 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001162/0.008747, allocations: 81.66 kB / 0.5642 GB, free: 23.25 MB / 398.1 MB Notification: Performance of FrontEnd: time 6.159e-05/0.008814, allocations: 10.72 kB / 0.5642 GB, free: 23.25 MB / 398.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.001576/0.01039, allocations: 2.386 MB / 0.5666 GB, free: 21.51 MB / 398.1 MB Notification: Performance of FunctionAlias: time 0.0002046/0.01061, allocations: 174.6 kB / 0.5667 GB, free: 21.41 MB / 398.1 MB Notification: Performance of Early Inline: time 0.001215/0.01183, allocations: 1.533 MB / 0.5682 GB, free: 20.39 MB / 398.1 MB Notification: Performance of simplify1: time 7.815e-05/0.01191, allocations: 96.27 kB / 0.5683 GB, free: 20.32 MB / 398.1 MB Notification: Performance of Alias: time 0.001743/0.01366, allocations: 1.966 MB / 0.5702 GB, free: 18.87 MB / 398.1 MB Notification: Performance of simplify2: time 7.432e-05/0.01375, allocations: 72.84 kB / 0.5703 GB, free: 18.82 MB / 398.1 MB Notification: Performance of Events: time 0.000106/0.01386, allocations: 114.7 kB / 0.5704 GB, free: 18.73 MB / 398.1 MB Notification: Performance of Detect States: time 0.0002055/0.01407, allocations: 275.5 kB / 0.5707 GB, free: 18.5 MB / 398.1 MB Notification: Performance of Partitioning: time 0.0003183/0.01439, allocations: 365 kB / 0.571 GB, free: 18.28 MB / 398.1 MB Notification: Performance of Causalize: time 0.001463/0.01586, allocations: 1.543 MB / 0.5725 GB, free: 17.63 MB / 398.1 MB Notification: Performance of After Index Reduction Inline: time 0.0006298/0.0165, allocations: 0.9409 MB / 0.5735 GB, free: 16.89 MB / 398.1 MB Notification: Performance of Inline: time 0.001465/0.01797, allocations: 2.085 MB / 0.5755 GB, free: 15.27 MB / 398.1 MB Notification: Performance of Partitioning: time 7.477e-05/0.01805, allocations: 89.06 kB / 0.5756 GB, free: 15.2 MB / 398.1 MB Notification: Performance of Cleanup: time 7.672e-05/0.01814, allocations: 86.81 kB / 0.5757 GB, free: 15.13 MB / 398.1 MB Notification: Performance of Causalize: time 0.003777/0.02192, allocations: 4.511 MB / 0.5801 GB, free: 10.96 MB / 398.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!