Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr OpenIPSL_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.0.1/package.mo", uses=false) Using package OpenIPSL with version 3.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenIPSL 3.0.1/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_OpenIPSL.Tests.Branches.PSAT.PhaseShiftingTransformer_Test") translateModel(OpenIPSL.Tests.Branches.PSAT.PhaseShiftingTransformer_Test,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="OpenIPSL_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.001132/0.001132, allocations: 110.8 kB / 16.42 MB, free: 6.461 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.374/1.374, allocations: 222.9 MB / 240.1 MB, free: 4.527 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.001526/0.001526, allocations: 184.5 kB / 290.4 MB, free: 2.238 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenIPSL 3.0.1/package.mo): time 0.4572/0.4572, allocations: 78.53 MB / 419.1 MB, free: 3.125 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.254e-05/2.254e-05, allocations: 2.281 kB / 0.5542 GB, free: 1.039 MB / 430.1 MB Notification: Performance of NFInst.instantiate(OpenIPSL.Tests.Branches.PSAT.PhaseShiftingTransformer_Test): time 0.2489/0.2489, allocations: 3.394 MB / 0.5575 GB, free: 37.45 MB / 430.1 MB Notification: Performance of NFInst.instExpressions: time 0.001871/0.2509, allocations: 1.052 MB / 0.5585 GB, free: 37.11 MB / 430.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002021/0.2511, allocations: 2.656 kB / 0.5585 GB, free: 37.11 MB / 430.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003041/0.2514, allocations: 92.33 kB / 0.5586 GB, free: 37.11 MB / 430.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenIPSL 3.0.1/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.0004079/0.2519, allocations: 172.9 kB / 0.5588 GB, free: 37.08 MB / 430.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006504/0.2525, allocations: 342.7 kB / 0.5591 GB, free: 37.01 MB / 430.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006707/0.2532, allocations: 0.6798 MB / 0.5598 GB, free: 36.98 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002955/0.2535, allocations: 149.5 kB / 0.5599 GB, free: 36.96 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002939/0.2538, allocations: 257.5 kB / 0.5602 GB, free: 36.91 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002861/0.2541, allocations: 275 kB / 0.5604 GB, free: 36.84 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 7.042e-05/0.2542, allocations: 50.59 kB / 0.5605 GB, free: 36.84 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002076/0.2544, allocations: 103 kB / 0.5606 GB, free: 36.84 MB / 430.1 MB Notification: Performance of combineBinaries: time 0.0006135/0.255, allocations: 0.8723 MB / 0.5614 GB, free: 36.38 MB / 430.1 MB Notification: Performance of replaceArrayConstructors: time 0.000224/0.2552, allocations: 0.5455 MB / 0.5619 GB, free: 36.01 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 7.417e-05/0.2553, allocations: 80.59 kB / 0.562 GB, free: 35.99 MB / 430.1 MB Notification: Performance of FrontEnd: time 6.873e-05/0.2554, allocations: 12.06 kB / 0.562 GB, free: 35.99 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.001895/0.2573, allocations: 2.395 MB / 0.5644 GB, free: 34.99 MB / 430.1 MB Notification: Performance of FunctionAlias: time 0.0002609/0.2576, allocations: 186.4 kB / 0.5646 GB, free: 34.97 MB / 430.1 MB Notification: Performance of Early Inline: time 0.001509/0.2591, allocations: 1.518 MB / 0.566 GB, free: 34.87 MB / 430.1 MB Notification: Performance of simplify1: time 9.187e-05/0.2592, allocations: 102.6 kB / 0.5661 GB, free: 34.87 MB / 430.1 MB Notification: Performance of Alias: time 0.002329/0.2615, allocations: 1.964 MB / 0.5681 GB, free: 34.25 MB / 430.1 MB Notification: Performance of simplify2: time 6.628e-05/0.2616, allocations: 68.12 kB / 0.5681 GB, free: 34.25 MB / 430.1 MB Notification: Performance of Events: time 0.0001332/0.2617, allocations: 111.3 kB / 0.5682 GB, free: 34.23 MB / 430.1 MB Notification: Performance of Detect States: time 0.0003021/0.2621, allocations: 282.7 kB / 0.5685 GB, free: 34.18 MB / 430.1 MB Notification: Performance of Partitioning: time 0.0003387/0.2624, allocations: 362.1 kB / 0.5688 GB, free: 34.13 MB / 430.1 MB Notification: Performance of Causalize: time 0.001475/0.2639, allocations: 1.531 MB / 0.5703 GB, free: 33.86 MB / 430.1 MB Notification: Performance of After Index Reduction Inline: time 0.0006775/0.2646, allocations: 0.9465 MB / 0.5713 GB, free: 33.74 MB / 430.1 MB Notification: Performance of Inline: time 0.001625/0.2662, allocations: 2.085 MB / 0.5733 GB, free: 32.78 MB / 430.1 MB Notification: Performance of Partitioning: time 7.775e-05/0.2663, allocations: 94.17 kB / 0.5734 GB, free: 32.71 MB / 430.1 MB Notification: Performance of Cleanup: time 5.298e-05/0.2663, allocations: 90.44 kB / 0.5735 GB, free: 32.65 MB / 430.1 MB Notification: Performance of Causalize: time 0.004925/0.2713, allocations: 4.497 MB / 0.5779 GB, free: 31.02 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!