Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_latest_PowerSystems.Examples.AC3ph.Transformation.TapChanger.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/Complex 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/PowerSystems 2.0.0-master/package.mo", uses=false) Using package PowerSystems with version 2.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/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 Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 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(PowerSystems.Examples.AC3ph.Transformation.TapChanger,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_AC3ph_Transformation_TapChanger",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC3ph.Transformation.TapChanger,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_AC3ph_Transformation_TapChanger",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.001197/0.001197, allocations: 106.5 kB / 17.06 MB, free: 6.102 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001401/0.001401, allocations: 194.9 kB / 18 MB, free: 5.172 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.372/1.372, allocations: 222.9 MB / 241.7 MB, free: 15.08 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.1796/0.1796, allocations: 38.05 MB / 329.9 MB, free: 8.742 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001437/0.001437, allocations: 63.91 kB / 457.7 MB, free: 7.355 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3321/0.3336, allocations: 58.06 MB / 0.5036 GB, free: 7.441 MB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Transformation.TapChanger): time 0.00756/0.3412, allocations: 9.068 MB / 0.5125 GB, free: 1.078 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.005691/0.3469, allocations: 3.384 MB / 0.5158 GB, free: 14.69 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007888/0.3477, allocations: 33.66 kB / 0.5158 GB, free: 14.68 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002808/0.3505, allocations: 1.036 MB / 0.5168 GB, free: 14.08 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003062/0.3536, allocations: 1.114 MB / 0.5179 GB, free: 13.48 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002119/0.3557, allocations: 0.6891 MB / 0.5186 GB, free: 13.18 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.004437/0.3602, allocations: 2.386 MB / 0.5209 GB, free: 12.19 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001293/0.3615, allocations: 0.8267 MB / 0.5217 GB, free: 11.82 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001939/0.3635, allocations: 1.002 MB / 0.5227 GB, free: 11.39 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002618/0.3661, allocations: 1.33 MB / 0.524 GB, free: 10.93 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002986/0.3664, allocations: 129.2 kB / 0.5241 GB, free: 10.93 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001773/0.3682, allocations: 0.5807 MB / 0.5247 GB, free: 10.78 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001322/0.3695, allocations: 0.9292 MB / 0.5256 GB, free: 10.49 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001379/0.3709, allocations: 0.8958 MB / 0.5265 GB, free: 9.961 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003915/0.3748, allocations: 2.348 MB / 0.5288 GB, free: 8.938 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.233e-06/0.3749, allocations: 0 / 0.5288 GB, free: 8.938 MB / 398.1 MB Notification: Performance of FrontEnd: time 2.805e-06/0.3749, allocations: 1.125 kB / 0.5288 GB, free: 8.938 MB / 398.1 MB Notification: Performance of Transformations before backend: time 4.407e-05/0.3749, allocations: 0 / 0.5288 GB, free: 8.938 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: 423 * Number of variables: 423 Notification: Performance of Generate backend data structure: time 0.004506/0.3794, allocations: 2.068 MB / 0.5308 GB, free: 7.395 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.527e-05/0.3795, allocations: 7.781 kB / 0.5308 GB, free: 7.395 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003327/0.3798, allocations: 242.7 kB / 0.531 GB, free: 7.211 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001929/0.3818, allocations: 360.3 kB / 0.5314 GB, free: 7.035 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002327/0.3841, allocations: 1.085 MB / 0.5324 GB, free: 6.258 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.662e-05/0.3842, allocations: 110.9 kB / 0.5325 GB, free: 6.203 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003609/0.3846, allocations: 167.6 kB / 0.5327 GB, free: 6.141 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003578/0.3882, allocations: 2.323 MB / 0.535 GB, free: 4.648 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.741e-05/0.3882, allocations: 8.281 kB / 0.535 GB, free: 4.645 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001434/0.3884, allocations: 60.41 kB / 0.535 GB, free: 4.602 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0005293/0.3889, allocations: 226.7 kB / 0.5353 GB, free: 4.527 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003138/0.392, allocations: 1.851 MB / 0.5371 GB, free: 3.648 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.01248/0.4045, allocations: 9.533 MB / 0.5464 GB, free: 11.58 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002207/0.4068, allocations: 1.549 MB / 0.5479 GB, free: 10.48 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008201/0.4076, allocations: 0.6058 MB / 0.5485 GB, free: 9.871 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.273e-05/0.4077, allocations: 28.95 kB / 0.5485 GB, free: 9.844 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001204/0.4089, allocations: 0.8489 MB / 0.5493 GB, free: 8.949 MB / 414.1 MB Notification: Performance of pre-optimization done (n=130): time 3.687e-06/0.4089, allocations: 4 kB / 0.5493 GB, free: 8.945 MB / 414.1 MB Notification: Performance of matching and sorting (n=131): time 0.006268/0.4152, allocations: 4.068 MB / 0.5533 GB, free: 4.781 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001911/0.4154, allocations: 286.3 kB / 0.5536 GB, free: 4.441 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001244/0.4167, allocations: 0.9147 MB / 0.5545 GB, free: 3.504 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 7.353e-05/0.4168, allocations: 53.69 kB / 0.5545 GB, free: 3.445 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006198/0.4174, allocations: 0.7929 MB / 0.5553 GB, free: 2.641 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003646/0.4177, allocations: 480 kB / 0.5558 GB, free: 2.168 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004223/0.4182, allocations: 319.4 kB / 0.5561 GB, free: 1.852 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001651/0.4183, allocations: 361.9 kB / 0.5564 GB, free: 1.492 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008722/0.4192, allocations: 0.5777 MB / 0.557 GB, free: 0.9141 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00129/0.4205, allocations: 1.178 MB / 0.5581 GB, free: 15.47 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002368/0.4229, allocations: 2.001 MB / 0.5601 GB, free: 13.18 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.518e-06/0.4229, allocations: 4 kB / 0.5601 GB, free: 13.18 MB / 430.1 MB Notification: Performance of matching and sorting (n=227) (initialization): time 0.004279/0.4272, allocations: 2.498 MB / 0.5625 GB, free: 10.65 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.735e-05/0.4273, allocations: 67.39 kB / 0.5626 GB, free: 10.57 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.002753/0.4301, allocations: 1.567 MB / 0.5641 GB, free: 8.988 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00158/0.4316, allocations: 0.5406 MB / 0.5646 GB, free: 8.438 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001026/0.4327, allocations: 323.5 kB / 0.5649 GB, free: 8.121 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01066/0.4434, allocations: 9.469 MB / 0.5742 GB, free: 14.1 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00125/0.4446, allocations: 75.86 kB / 0.5743 GB, free: 14.03 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001695/0.4448, allocations: 104 kB / 0.5744 GB, free: 13.93 MB / 446.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 86 * Number of states: 0 () * Number of discrete variables: 21 (system.initime,tapRelay1.cnt_2,$PRE.tapRelay1.cnt_2,tapRelay1.cnt_1,$PRE.tapRelay1.cnt_1,$whenCondition4,$whenCondition3,tapRelay2.cnt_2,$PRE.tapRelay2.cnt_2,tapRelay2.cnt_1,$PRE.tapRelay2.cnt_1,$whenCondition2,$whenCondition1,tapRelay1.tap_2,$PRE.tapRelay1.tap_2,tapRelay1.tap_1,$PRE.tapRelay1.tap_1,tapRelay2.tap_2,$PRE.tapRelay2.tap_2,tapRelay2.tap_1,$PRE.tapRelay2.tap_1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (175): * Single equations (assignments): 169 * Array equations: 0 * Algorithm blocks: 2 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 4 systems {(2,12,100.0%), (2,11,100.0%), (2,12,100.0%), (2,11,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.001059/0.4459, allocations: 0.5959 MB / 0.575 GB, free: 13.31 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002031/0.4461, allocations: 131.2 kB / 0.5751 GB, free: 13.18 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002345/0.4485, allocations: 1.543 MB / 0.5766 GB, free: 11.61 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.531e-05/0.4485, allocations: 12 kB / 0.5766 GB, free: 11.6 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.488e-06/0.4485, allocations: 7.938 kB / 0.5766 GB, free: 11.59 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.377e-05/0.4485, allocations: 7.969 kB / 0.5766 GB, free: 11.59 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005189/0.4537, allocations: 3.068 MB / 0.5796 GB, free: 8.43 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.456e-06/0.4537, allocations: 4 kB / 0.5796 GB, free: 8.426 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001369/0.4551, allocations: 291.6 kB / 0.5799 GB, free: 8.141 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.978e-06/0.4551, allocations: 12.19 kB / 0.5799 GB, free: 8.129 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.678e-05/0.4552, allocations: 35.98 kB / 0.5799 GB, free: 8.094 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.245e-06/0.4553, allocations: 4 kB / 0.5799 GB, free: 8.09 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.601e-06/0.4553, allocations: 7.984 kB / 0.5799 GB, free: 8.082 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003202/0.4585, allocations: 2.322 MB / 0.5822 GB, free: 5.711 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008544/0.4593, allocations: 308.2 kB / 0.5825 GB, free: 5.391 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001625/0.4595, allocations: 28 kB / 0.5825 GB, free: 5.363 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005784/0.4601, allocations: 47.91 kB / 0.5826 GB, free: 5.316 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000176/0.4603, allocations: 88.77 kB / 0.5827 GB, free: 5.23 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001472/0.4605, allocations: 79.91 kB / 0.5827 GB, free: 5.152 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.0009472/0.4614, allocations: 0.5947 MB / 0.5833 GB, free: 4.547 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.4614, allocations: 4 kB / 0.5833 GB, free: 4.543 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.001618/0.463, allocations: 424 kB / 0.5837 GB, free: 4.129 MB / 446.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * Number of states: 6 (trafo1.i1[1],trafo1.i1[2],trafo1.i1[3],trafo2.i1[1],trafo2.i1[2],trafo2.i1[3]) * Number of discrete variables: 13 ($whenCondition1,$whenCondition2,$whenCondition3,$whenCondition4,tapRelay2.tap_1,tapRelay2.tap_2,tapRelay2.cnt_1,tapRelay2.cnt_2,tapRelay1.tap_1,tapRelay1.tap_2,tapRelay1.cnt_1,tapRelay1.cnt_2,system.initime) * Number of discrete states: 12 (tapRelay1.tap_2,tapRelay1.cnt_2,$whenCondition4,tapRelay1.tap_1,tapRelay1.cnt_1,$whenCondition3,tapRelay2.tap_2,tapRelay2.cnt_2,$whenCondition2,tapRelay2.tap_1,tapRelay2.cnt_1,$whenCondition1) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (121): * Single equations (assignments): 118 * Array equations: 0 * Algorithm blocks: 2 * Record equations: 0 * When equations: 1 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.003583/0.4666, allocations: 2.917 MB / 0.5866 GB, free: 1.145 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.003615/0.4703, allocations: 2.332 MB / 0.5889 GB, free: 14.74 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 4.909e-06/0.4703, allocations: 0 / 0.5889 GB, free: 14.74 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001183/0.4715, allocations: 0.8752 MB / 0.5897 GB, free: 13.84 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00134/0.4728, allocations: 226.4 kB / 0.5899 GB, free: 13.62 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01995/0.4928, allocations: 13.13 MB / 0.6028 GB, free: 15.76 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001153/0.494, allocations: 1.465 MB / 0.6042 GB, free: 14.26 MB / 478.1 MB Notification: Performance of simCode: alias equations: time 0.001096/0.4951, allocations: 458.3 kB / 0.6046 GB, free: 13.81 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007068/0.4958, allocations: 0.5696 MB / 0.6052 GB, free: 13.24 MB / 478.1 MB Notification: Performance of SimCode: time 5.81e-07/0.4958, allocations: 4 kB / 0.6052 GB, free: 13.23 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06504/0.5609, allocations: 27.24 MB / 0.6318 GB, free: 2.211 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.03/12.59, allocations: 8.062 kB / 0.6318 GB, free: 2.203 MB / 494.1 MB (rm -f PowerSystems_latest_PowerSystems.Examples.AC3ph.Transformation.TapChanger.pipe ; mkfifo PowerSystems_latest_PowerSystems.Examples.AC3ph.Transformation.TapChanger.pipe ; head -c 1048576 < PowerSystems_latest_PowerSystems.Examples.AC3ph.Transformation.TapChanger.pipe >> ../files/PowerSystems_latest_PowerSystems.Examples.AC3ph.Transformation.TapChanger.sim & python3 -m fmpy simulate --output-file PowerSystems_latest_PowerSystems.Examples.AC3ph.Transformation.TapChanger_res.csv --start-time 0 --stop-time 4 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0016 PowerSystems_latest_PowerSystems_Examples_AC3ph_Transformation_TapChanger.fmu > PowerSystems_latest_PowerSystems.Examples.AC3ph.Transformation.TapChanger.pipe 2>&1) diffSimulationResults("PowerSystems_latest_PowerSystems.Examples.AC3ph.Transformation.TapChanger_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/ReferenceFiles/PowerSystems/PowerSystems.Examples.AC3ph.Transformation.TapChanger.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/PowerSystems_latest_PowerSystems.Examples.AC3ph.Transformation.TapChanger.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches