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: "" <> buildModelFMU(OpenIPSL.Tests.Branches.PSAT.PhaseShiftingTransformer_Test,fileNamePrefix="OpenIPSL_2_0_0_OpenIPSL_Tests_Branches_PSAT_PhaseShiftingTransformer_Test",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(OpenIPSL.Tests.Branches.PSAT.PhaseShiftingTransformer_Test,fileNamePrefix="OpenIPSL_2_0_0_OpenIPSL_Tests_Branches_PSAT_PhaseShiftingTransformer_Test",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_Synchronous 0.93.0-master/package.mo): time 0.08792/0.08792, allocations: 12.6 MB / 28.1 MB, free: 184 kB / 19.63 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001084/0.001084, allocations: 107.5 kB / 31.7 MB, free: 3.492 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.313/1.313, allocations: 205.1 MB / 240.3 MB, free: 12.42 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.001439/0.001439, allocations: 184.5 kB / 290.6 MB, free: 13.45 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenIPSL 2.0.0/package.mo): time 0.4309/0.4309, allocations: 78.5 MB / 419.2 MB, free: 11.36 MB / 302.1 MB Notification: Modelica_Synchronous requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: OpenIPSL requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.002927/0.002928, allocations: 139.8 kB / 499.9 MB, free: 10.71 MB / 382.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2936/0.2966, allocations: 68.1 MB / 0.5547 GB, free: 32.61 MB / 398.1 MB Notification: Performance of NFInst.instantiate(OpenIPSL.Tests.Branches.PSAT.PhaseShiftingTransformer_Test): time 0.004024/0.3006, allocations: 3.437 MB / 0.558 GB, free: 30.11 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.001922/0.3026, allocations: 1.025 MB / 0.559 GB, free: 29.37 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000241/0.3028, allocations: 2.938 kB / 0.559 GB, free: 29.37 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003003/0.3032, allocations: 97.19 kB / 0.5591 GB, free: 29.32 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.0004095/0.3036, allocations: 164.6 kB / 0.5593 GB, free: 29.2 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006855/0.3043, allocations: 346.8 kB / 0.5596 GB, free: 29 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005017/0.3048, allocations: 0.5995 MB / 0.5602 GB, free: 28.68 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002626/0.3051, allocations: 161.5 kB / 0.5604 GB, free: 28.61 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003083/0.3054, allocations: 260 kB / 0.5606 GB, free: 28.47 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003076/0.3057, allocations: 264.5 kB / 0.5609 GB, free: 28.33 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 7.849e-05/0.3058, allocations: 53.66 kB / 0.5609 GB, free: 28.33 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002192/0.3061, allocations: 105.6 kB / 0.561 GB, free: 28.31 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 7.813e-05/0.3061, allocations: 120.6 kB / 0.5611 GB, free: 28.2 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001849/0.3063, allocations: 266.8 kB / 0.5614 GB, free: 28.01 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005228/0.3069, allocations: 0.6595 MB / 0.562 GB, free: 27.51 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.308e-06/0.3069, allocations: 0 / 0.562 GB, free: 27.51 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.382e-06/0.3069, allocations: 0 / 0.562 GB, free: 27.51 MB / 398.1 MB Notification: Performance of Transformations before backend: time 7.795e-06/0.3069, allocations: 0 / 0.562 GB, free: 27.51 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 * Number of variables: 71 Notification: Performance of Generate backend data structure: time 0.001311/0.3082, allocations: 0.8373 MB / 0.5628 GB, free: 26.81 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.592e-05/0.3083, allocations: 13.67 kB / 0.5628 GB, free: 26.81 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.094e-05/0.3083, allocations: 68.41 kB / 0.5629 GB, free: 26.74 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009741/0.3093, allocations: 173.2 kB / 0.5631 GB, free: 26.67 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004236/0.3098, allocations: 398.8 kB / 0.5635 GB, free: 26.3 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001044/0.3099, allocations: 65.41 kB / 0.5635 GB, free: 26.25 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.114e-05/0.3099, allocations: 27 kB / 0.5635 GB, free: 26.25 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007511/0.3107, allocations: 390.2 kB / 0.5639 GB, free: 26.01 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.182e-05/0.3107, allocations: 0 / 0.5639 GB, free: 26.01 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.663e-05/0.3108, allocations: 11.44 kB / 0.5639 GB, free: 26 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.738e-06/0.3108, allocations: 14.16 kB / 0.5639 GB, free: 26 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006652/0.3114, allocations: 328 kB / 0.5643 GB, free: 25.84 MB / 398.1 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.002418/0.3139, allocations: 1.855 MB / 0.5661 GB, free: 24.24 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009117/0.3148, allocations: 0.8208 MB / 0.5669 GB, free: 23.47 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004221/0.3152, allocations: 187.2 kB / 0.567 GB, free: 23.38 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.692e-05/0.3153, allocations: 11.62 kB / 0.5671 GB, free: 23.37 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.438e-05/0.3153, allocations: 32.47 kB / 0.5671 GB, free: 23.33 MB / 398.1 MB Notification: Performance of pre-optimization done (n=24): time 2.454e-06/0.3153, allocations: 0 / 0.5671 GB, free: 23.33 MB / 398.1 MB Notification: Performance of matching and sorting (n=24): time 0.004505/0.3198, allocations: 1.243 MB / 0.5683 GB, free: 22.62 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.987e-05/0.3199, allocations: 54.22 kB / 0.5684 GB, free: 22.56 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004902/0.3204, allocations: 430.7 kB / 0.5688 GB, free: 22.3 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 2.586e-05/0.3204, allocations: 34.83 kB / 0.5688 GB, free: 22.26 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001373/0.3206, allocations: 252.9 kB / 0.569 GB, free: 22.03 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.087e-05/0.3206, allocations: 90.67 kB / 0.5691 GB, free: 21.95 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001154/0.3208, allocations: 63.47 kB / 0.5692 GB, free: 21.91 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 7.664e-05/0.3208, allocations: 360.8 kB / 0.5695 GB, free: 21.55 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004046/0.3213, allocations: 185.3 kB / 0.5697 GB, free: 21.46 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004135/0.3217, allocations: 238.6 kB / 0.5699 GB, free: 21.31 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004599/0.3263, allocations: 1.297 MB / 0.5712 GB, free: 20.63 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.421e-06/0.3263, allocations: 0 / 0.5712 GB, free: 20.63 MB / 398.1 MB Notification: Performance of matching and sorting (n=39) (initialization): time 0.002327/0.3286, allocations: 0.8384 MB / 0.572 GB, free: 20.18 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.214e-05/0.3287, allocations: 13.97 kB / 0.572 GB, free: 20.17 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.798e-06/0.3287, allocations: 5.188 kB / 0.572 GB, free: 20.16 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002114/0.3308, allocations: 0.5642 MB / 0.5726 GB, free: 19.88 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008349/0.3317, allocations: 132.9 kB / 0.5727 GB, free: 19.84 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006514/0.3382, allocations: 3.212 MB / 0.5759 GB, free: 17.18 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004779/0.3387, allocations: 47.78 kB / 0.5759 GB, free: 17.13 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.501e-05/0.3387, allocations: 12 kB / 0.5759 GB, free: 17.12 MB / 398.1 MB Warning: Assuming fixed start value for the following 2 variables: phaseShiftingTransformer.phaseShifter.pmes:VARIABLE(start = phaseShiftingTransformer.phaseShifter.pmes0 unit = "1" fixed = true ) "Measured power flow" type: Real phaseShiftingTransformer.phaseShifter.alpha:VARIABLE(start = phaseShiftingTransformer.phaseShifter.alpha0 unit = "rad" fixed = true ) "Shifting angle" type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (30): * Single equations (assignments): 29 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(5,5)} Notification: Performance of prepare postOptimizeDAE: time 0.0002186/0.339, allocations: 166.1 kB / 0.5761 GB, free: 16.95 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.097e-05/0.339, allocations: 39.53 kB / 0.5761 GB, free: 16.91 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002176/0.3412, allocations: 0.7754 MB / 0.5769 GB, free: 16.12 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.298e-06/0.3412, allocations: 4 kB / 0.5769 GB, free: 16.12 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.793e-06/0.3412, allocations: 3.938 kB / 0.5769 GB, free: 16.12 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.08e-06/0.3412, allocations: 3.984 kB / 0.5769 GB, free: 16.11 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002693/0.3439, allocations: 1.492 MB / 0.5783 GB, free: 14.55 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.928e-06/0.344, allocations: 4 kB / 0.5783 GB, free: 14.54 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000848/0.3448, allocations: 127.8 kB / 0.5785 GB, free: 14.42 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002382/0.3472, allocations: 0.6369 MB / 0.5791 GB, free: 13.78 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.272e-05/0.3472, allocations: 15.97 kB / 0.5791 GB, free: 13.76 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005967/0.3532, allocations: 3.171 MB / 0.5822 GB, free: 10.45 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.545e-06/0.3532, allocations: 3.938 kB / 0.5822 GB, free: 10.45 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00264/0.3559, allocations: 1.042 MB / 0.5832 GB, free: 9.383 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001196/0.356, allocations: 124.6 kB / 0.5833 GB, free: 9.242 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.369e-05/0.3561, allocations: 4 kB / 0.5833 GB, free: 9.238 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003324/0.3564, allocations: 23.91 kB / 0.5834 GB, free: 9.215 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001391/0.3566, allocations: 59.92 kB / 0.5834 GB, free: 9.156 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.037e-05/0.3566, allocations: 7.984 kB / 0.5834 GB, free: 9.148 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0002617/0.3569, allocations: 307.2 kB / 0.5837 GB, free: 8.848 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.3569, allocations: 0 / 0.5837 GB, free: 8.848 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0005227/0.3574, allocations: 127.8 kB / 0.5838 GB, free: 8.723 MB / 398.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 2 (phaseShiftingTransformer.phaseShifter.pmes,phaseShiftingTransformer.phaseShifter.alpha) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (15): * Single equations (assignments): 14 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(5,5)} Notification: Performance of Backend phase and start with SimCode phase: time 0.002431/0.3598, allocations: 1.509 MB / 0.5853 GB, free: 7.184 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.002593/0.3625, allocations: 0.7752 MB / 0.5861 GB, free: 6.395 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.735e-06/0.3625, allocations: 0 / 0.5861 GB, free: 6.395 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002089/0.3646, allocations: 0.5768 MB / 0.5866 GB, free: 5.805 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003995/0.365, allocations: 40.72 kB / 0.5867 GB, free: 5.766 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008857/0.3738, allocations: 4.865 MB / 0.5914 GB, free: 0.793 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002577/0.3742, allocations: 0.823 MB / 0.5922 GB, free: 15.94 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0001421/0.3743, allocations: 34.97 kB / 0.5923 GB, free: 15.9 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002085/0.3745, allocations: 151.3 kB / 0.5924 GB, free: 15.76 MB / 414.1 MB Notification: Performance of SimCode: time 7.31e-07/0.3745, allocations: 4 kB / 0.5924 GB, free: 15.75 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03616/0.4107, allocations: 11.86 MB / 0.604 GB, free: 4 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.95/11.36, allocations: 7.531 kB / 0.604 GB, free: 3.996 MB / 414.1 MB (rm -f OpenIPSL_2.0.0_OpenIPSL.Tests.Branches.PSAT.PhaseShiftingTransformer_Test.pipe ; mkfifo OpenIPSL_2.0.0_OpenIPSL.Tests.Branches.PSAT.PhaseShiftingTransformer_Test.pipe ; head -c 1048576 < OpenIPSL_2.0.0_OpenIPSL.Tests.Branches.PSAT.PhaseShiftingTransformer_Test.pipe >> ../files/OpenIPSL_2.0.0_OpenIPSL.Tests.Branches.PSAT.PhaseShiftingTransformer_Test.sim & python3 -m fmpy simulate --output-file OpenIPSL_2.0.0_OpenIPSL.Tests.Branches.PSAT.PhaseShiftingTransformer_Test_res.csv --start-time 0 --stop-time 10000 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 4 OpenIPSL_2_0_0_OpenIPSL_Tests_Branches_PSAT_PhaseShiftingTransformer_Test.fmu > OpenIPSL_2.0.0_OpenIPSL.Tests.Branches.PSAT.PhaseShiftingTransformer_Test.pipe 2>&1)