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: "" <> buildModelFMU(OpenIPSL.Tests.Branches.PSAT.PhaseShiftingTransformer_Test,fileNamePrefix="OpenIPSL_OpenIPSL_Tests_Branches_PSAT_PhaseShiftingTransformer_Test",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(OpenIPSL.Tests.Branches.PSAT.PhaseShiftingTransformer_Test,fileNamePrefix="OpenIPSL_OpenIPSL_Tests_Branches_PSAT_PhaseShiftingTransformer_Test",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001237/0.001237, allocations: 108 kB / 15.6 MB, free: 132 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.381/1.381, allocations: 222.9 MB / 239.3 MB, free: 4.598 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.001675/0.001675, allocations: 192.5 kB / 289.6 MB, free: 2.324 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenIPSL 3.0.1/package.mo): time 0.4721/0.4721, allocations: 78.53 MB / 418.3 MB, free: 3.234 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001791/0.001791, allocations: 87.88 kB / 497.6 MB, free: 6.297 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1483/0.1502, allocations: 68.18 MB / 0.5525 GB, free: 2.086 MB / 430.1 MB Notification: Performance of NFInst.instantiate(OpenIPSL.Tests.Branches.PSAT.PhaseShiftingTransformer_Test): time 0.2876/0.4378, allocations: 3.385 MB / 0.5558 GB, free: 37.85 MB / 430.1 MB Notification: Performance of NFInst.instExpressions: time 0.001777/0.4397, allocations: 1.051 MB / 0.5568 GB, free: 37.51 MB / 430.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001885/0.4399, allocations: 2.906 kB / 0.5568 GB, free: 37.51 MB / 430.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003008/0.4402, allocations: 101.3 kB / 0.5569 GB, free: 37.5 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.0003791/0.4406, allocations: 168.4 kB / 0.5571 GB, free: 37.48 MB / 430.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000626/0.4412, allocations: 346.2 kB / 0.5574 GB, free: 37.4 MB / 430.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005138/0.4418, allocations: 0.6084 MB / 0.558 GB, free: 37.38 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002563/0.442, allocations: 144 kB / 0.5581 GB, free: 37.36 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002624/0.4423, allocations: 247.5 kB / 0.5584 GB, free: 37.31 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000273/0.4426, allocations: 275.9 kB / 0.5586 GB, free: 37.24 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 6.899e-05/0.4427, allocations: 52 kB / 0.5587 GB, free: 37.24 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001854/0.4429, allocations: 100.6 kB / 0.5588 GB, free: 37.24 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 8.424e-05/0.4429, allocations: 119 kB / 0.5589 GB, free: 37.22 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001826/0.4431, allocations: 264.7 kB / 0.5591 GB, free: 37.14 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005612/0.4437, allocations: 0.6701 MB / 0.5598 GB, free: 37 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.364e-06/0.4437, allocations: 6.656 kB / 0.5598 GB, free: 37 MB / 430.1 MB Notification: Performance of FrontEnd: time 1.593e-06/0.4437, allocations: 0 / 0.5598 GB, free: 37 MB / 430.1 MB Notification: Performance of Transformations before backend: time 8.306e-06/0.4437, allocations: 0.5 kB / 0.5598 GB, free: 37 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 * Number of variables: 71 Notification: Performance of Generate backend data structure: time 0.001295/0.445, allocations: 0.8327 MB / 0.5606 GB, free: 36.46 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.41e-05/0.4451, allocations: 9.25 kB / 0.5606 GB, free: 36.46 MB / 430.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.049e-05/0.4452, allocations: 70.17 kB / 0.5607 GB, free: 36.42 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009675/0.4461, allocations: 172.6 kB / 0.5609 GB, free: 36.39 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004216/0.4466, allocations: 393.4 kB / 0.5612 GB, free: 36.13 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000106/0.4467, allocations: 67.56 kB / 0.5613 GB, free: 36.09 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.351e-05/0.4468, allocations: 23.16 kB / 0.5613 GB, free: 36.09 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007364/0.4475, allocations: 385.3 kB / 0.5617 GB, free: 36.06 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.31e-05/0.4475, allocations: 0 / 0.5617 GB, free: 36.06 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.812e-05/0.4476, allocations: 11.59 kB / 0.5617 GB, free: 36.06 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.005e-05/0.4476, allocations: 8.406 kB / 0.5617 GB, free: 36.06 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006566/0.4483, allocations: 333.6 kB / 0.562 GB, free: 36.05 MB / 430.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.002425/0.4507, allocations: 1.87 MB / 0.5638 GB, free: 35.25 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008802/0.4516, allocations: 0.8159 MB / 0.5646 GB, free: 34.66 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004155/0.452, allocations: 187.9 kB / 0.5648 GB, free: 34.65 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.621e-05/0.4521, allocations: 3.5 kB / 0.5648 GB, free: 34.65 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.692e-05/0.4521, allocations: 38.25 kB / 0.5649 GB, free: 34.61 MB / 430.1 MB Notification: Performance of pre-optimization done (n=24): time 1.402e-06/0.4521, allocations: 0 / 0.5649 GB, free: 34.61 MB / 430.1 MB Notification: Performance of matching and sorting (n=24): time 0.004479/0.4566, allocations: 1.244 MB / 0.5661 GB, free: 34.44 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.591e-05/0.4566, allocations: 58.12 kB / 0.5661 GB, free: 34.38 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004005/0.457, allocations: 430.3 kB / 0.5665 GB, free: 34.27 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 2.689e-05/0.4571, allocations: 31.08 kB / 0.5666 GB, free: 34.23 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001419/0.4572, allocations: 256.7 kB / 0.5668 GB, free: 34.09 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.857e-05/0.4573, allocations: 91.58 kB / 0.5669 GB, free: 34.04 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001181/0.4574, allocations: 65.84 kB / 0.567 GB, free: 34.02 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 8.63e-05/0.4575, allocations: 357 kB / 0.5673 GB, free: 33.71 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003721/0.4579, allocations: 179 kB / 0.5675 GB, free: 33.71 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003901/0.4583, allocations: 235.2 kB / 0.5677 GB, free: 33.66 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004473/0.4628, allocations: 1.299 MB / 0.569 GB, free: 33.61 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.246e-06/0.4628, allocations: 0 / 0.569 GB, free: 33.61 MB / 430.1 MB Notification: Performance of matching and sorting (n=39) (initialization): time 0.002179/0.465, allocations: 0.8392 MB / 0.5698 GB, free: 33.54 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.007e-05/0.465, allocations: 14.12 kB / 0.5698 GB, free: 33.53 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.967e-06/0.465, allocations: 0 / 0.5698 GB, free: 33.53 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002071/0.4671, allocations: 0.5614 MB / 0.5704 GB, free: 33.5 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008115/0.4679, allocations: 138.2 kB / 0.5705 GB, free: 33.5 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006497/0.4744, allocations: 3.212 MB / 0.5736 GB, free: 32.09 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00047/0.4749, allocations: 50.48 kB / 0.5737 GB, free: 32.07 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.858e-05/0.475, allocations: 12.25 kB / 0.5737 GB, free: 32.07 MB / 430.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.0002739/0.4753, allocations: 173.8 kB / 0.5738 GB, free: 31.95 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001404/0.4754, allocations: 39.22 kB / 0.5739 GB, free: 31.93 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002325/0.4777, allocations: 0.7739 MB / 0.5746 GB, free: 31.86 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.658e-06/0.4777, allocations: 2.688 kB / 0.5746 GB, free: 31.86 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.994e-06/0.4778, allocations: 0 / 0.5746 GB, free: 31.86 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.851e-06/0.4778, allocations: 3.375 kB / 0.5746 GB, free: 31.86 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002992/0.4808, allocations: 1.484 MB / 0.5761 GB, free: 31.43 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.318e-06/0.4808, allocations: 0 / 0.5761 GB, free: 31.43 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008676/0.4817, allocations: 125 kB / 0.5762 GB, free: 31.43 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00252/0.4842, allocations: 0.6332 MB / 0.5768 GB, free: 31.39 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.9e-05/0.4842, allocations: 13.09 kB / 0.5768 GB, free: 31.39 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006324/0.4906, allocations: 3.18 MB / 0.5799 GB, free: 29.4 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.262e-06/0.4906, allocations: 4.875 kB / 0.58 GB, free: 29.4 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002685/0.4933, allocations: 1.047 MB / 0.581 GB, free: 28.97 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001523/0.4935, allocations: 114.3 kB / 0.5811 GB, free: 28.86 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001036/0.4936, allocations: 9.016 kB / 0.5811 GB, free: 28.85 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003658/0.4939, allocations: 22.41 kB / 0.5811 GB, free: 28.85 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001631/0.4941, allocations: 60.7 kB / 0.5812 GB, free: 28.83 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.294e-05/0.4941, allocations: 8.234 kB / 0.5812 GB, free: 28.83 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.0003633/0.4945, allocations: 302.9 kB / 0.5815 GB, free: 28.68 MB / 430.1 MB Notification: Performance of sort global known variables: time 2.6e-07/0.4945, allocations: 0 / 0.5815 GB, free: 28.68 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.0006939/0.4952, allocations: 137.1 kB / 0.5816 GB, free: 28.66 MB / 430.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.002831/0.4981, allocations: 1.511 MB / 0.5831 GB, free: 27.72 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.002805/0.5009, allocations: 0.7702 MB / 0.5838 GB, free: 27.43 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 3.336e-06/0.5009, allocations: 0 / 0.5838 GB, free: 27.43 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002257/0.5032, allocations: 0.5728 MB / 0.5844 GB, free: 27.2 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000445/0.5036, allocations: 39.5 kB / 0.5844 GB, free: 27.18 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01101/0.5146, allocations: 4.87 MB / 0.5892 GB, free: 24.59 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003512/0.515, allocations: 0.8203 MB / 0.59 GB, free: 23.89 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.0001529/0.5152, allocations: 35.91 kB / 0.59 GB, free: 23.88 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001967/0.5154, allocations: 147.6 kB / 0.5902 GB, free: 23.77 MB / 430.1 MB Notification: Performance of SimCode: time 1.062e-06/0.5154, allocations: 0 / 0.5902 GB, free: 23.77 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0524/0.5678, allocations: 11.85 MB / 0.6017 GB, free: 22.4 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.23/11.8, allocations: 10.62 kB / 0.6017 GB, free: 22.4 MB / 430.1 MB (rm -f OpenIPSL_OpenIPSL.Tests.Branches.PSAT.PhaseShiftingTransformer_Test.pipe ; mkfifo OpenIPSL_OpenIPSL.Tests.Branches.PSAT.PhaseShiftingTransformer_Test.pipe ; head -c 1048576 < OpenIPSL_OpenIPSL.Tests.Branches.PSAT.PhaseShiftingTransformer_Test.pipe >> ../files/OpenIPSL_OpenIPSL.Tests.Branches.PSAT.PhaseShiftingTransformer_Test.sim & python3 -m fmpy simulate --output-file OpenIPSL_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_OpenIPSL_Tests_Branches_PSAT_PhaseShiftingTransformer_Test.fmu > OpenIPSL_OpenIPSL.Tests.Branches.PSAT.PhaseShiftingTransformer_Test.pipe 2>&1)