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.001109/0.001113, allocations: 107.3 kB / 16.92 MB, free: 6.145 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.001058/0.001058, allocations: 187.4 kB / 17.85 MB, free: 5.285 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.319/1.319, allocations: 222.9 MB / 241.5 MB, free: 15.21 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.1798/0.1798, allocations: 38.04 MB / 329.7 MB, free: 8.816 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002334/0.002334, allocations: 64.16 kB / 398.9 MB, free: 33.96 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1152/0.1175, allocations: 58.06 MB / 457 MB, free: 7.957 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Transformation.TapChanger): time 0.01081/0.1284, allocations: 9.083 MB / 466.1 MB, free: 14.83 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.006154/0.1346, allocations: 3.357 MB / 469.4 MB, free: 11.46 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0009646/0.1356, allocations: 39.81 kB / 469.4 MB, free: 11.43 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002728/0.1383, allocations: 1.044 MB / 470.5 MB, free: 10.38 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002497/0.1408, allocations: 1.093 MB / 471.6 MB, free: 9.281 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001672/0.1425, allocations: 0.6938 MB / 472.3 MB, free: 8.586 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0026/0.1451, allocations: 2.382 MB / 474.7 MB, free: 6.195 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001095/0.1462, allocations: 0.8268 MB / 475.5 MB, free: 5.352 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001497/0.1478, allocations: 0.9884 MB / 476.5 MB, free: 4.359 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001799/0.1496, allocations: 1.336 MB / 477.8 MB, free: 3.02 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003198/0.1499, allocations: 132 kB / 477.9 MB, free: 2.891 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001162/0.1511, allocations: 0.5734 MB / 478.5 MB, free: 2.316 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0008788/0.152, allocations: 0.9275 MB / 479.4 MB, free: 1.387 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001135/0.1531, allocations: 0.894 MB / 480.3 MB, free: 500 kB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002393/0.1555, allocations: 2.301 MB / 482.6 MB, free: 14.18 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.771e-06/0.1555, allocations: 4 kB / 482.6 MB, free: 14.18 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.403e-06/0.1556, allocations: 0 / 482.6 MB, free: 14.18 MB / 366.1 MB Notification: Performance of Transformations before backend: time 6.359e-05/0.1556, allocations: 0 / 482.6 MB, free: 14.18 MB / 366.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.003721/0.1593, allocations: 2.011 MB / 484.7 MB, free: 12.09 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.973e-05/0.1594, allocations: 11.89 kB / 484.7 MB, free: 12.08 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003036/0.1597, allocations: 240.8 kB / 484.9 MB, free: 11.84 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001849/0.1616, allocations: 350.3 kB / 485.2 MB, free: 11.49 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001793/0.1634, allocations: 1.032 MB / 486.3 MB, free: 10.41 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001086/0.1635, allocations: 103.1 kB / 486.4 MB, free: 10.31 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003908/0.1639, allocations: 163.7 kB / 486.5 MB, free: 10.15 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004006/0.1679, allocations: 2.324 MB / 488.9 MB, free: 7.672 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.697e-05/0.168, allocations: 15.94 kB / 488.9 MB, free: 7.656 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001544/0.1682, allocations: 59.97 kB / 488.9 MB, free: 7.598 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0005527/0.1687, allocations: 222.8 kB / 489.1 MB, free: 7.379 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003157/0.1719, allocations: 1.85 MB / 491 MB, free: 5.523 MB / 366.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.012/0.1839, allocations: 9.567 MB / 0.4888 GB, free: 11.45 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002387/0.1863, allocations: 1.548 MB / 0.4903 GB, free: 9.848 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008729/0.1872, allocations: 0.6184 MB / 0.491 GB, free: 9.227 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.969e-05/0.1873, allocations: 20.92 kB / 0.491 GB, free: 9.207 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001191/0.1885, allocations: 0.8529 MB / 0.4918 GB, free: 8.305 MB / 382.1 MB Notification: Performance of pre-optimization done (n=130): time 2.945e-06/0.1885, allocations: 0 / 0.4918 GB, free: 8.305 MB / 382.1 MB Notification: Performance of matching and sorting (n=131): time 0.006236/0.1948, allocations: 4.015 MB / 0.4957 GB, free: 4.188 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000237/0.195, allocations: 286.3 kB / 0.496 GB, free: 3.848 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001146/0.1962, allocations: 0.9149 MB / 0.4969 GB, free: 2.91 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 7.975e-05/0.1963, allocations: 53.7 kB / 0.4969 GB, free: 2.852 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005971/0.1969, allocations: 0.7628 MB / 0.4977 GB, free: 2.074 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003612/0.1972, allocations: 449.7 kB / 0.4981 GB, free: 1.629 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004247/0.1977, allocations: 331.2 kB / 0.4984 GB, free: 1.297 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0002218/0.1979, allocations: 353.9 kB / 0.4988 GB, free: 0.9453 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008837/0.1988, allocations: 0.5778 MB / 0.4993 GB, free: 376 kB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001277/0.2001, allocations: 1.174 MB / 0.5005 GB, free: 14.93 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002391/0.2025, allocations: 1.997 MB / 0.5024 GB, free: 12.64 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.807e-05/0.2025, allocations: 4 kB / 0.5024 GB, free: 12.64 MB / 398.1 MB Notification: Performance of matching and sorting (n=227) (initialization): time 0.004664/0.2072, allocations: 2.5 MB / 0.5049 GB, free: 10.11 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.753e-05/0.2073, allocations: 71.39 kB / 0.5049 GB, free: 10.02 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.00292/0.2102, allocations: 1.566 MB / 0.5065 GB, free: 8.445 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001681/0.2119, allocations: 0.5529 MB / 0.507 GB, free: 7.883 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001043/0.2129, allocations: 327.5 kB / 0.5073 GB, free: 7.562 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.1776/0.3906, allocations: 9.454 MB / 0.5166 GB, free: 67.09 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001825/0.3924, allocations: 71.45 kB / 0.5166 GB, free: 67.09 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002609/0.3927, allocations: 105.8 kB / 0.5167 GB, free: 67.09 MB / 398.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.001209/0.3939, allocations: 0.5963 MB / 0.5173 GB, free: 66.91 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002703/0.3942, allocations: 125.3 kB / 0.5174 GB, free: 66.91 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003789/0.398, allocations: 1.541 MB / 0.5189 GB, free: 66.74 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.984e-05/0.3981, allocations: 13.97 kB / 0.5189 GB, free: 66.74 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.366e-06/0.3981, allocations: 1.984 kB / 0.5189 GB, free: 66.74 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.234e-05/0.3981, allocations: 10.06 kB / 0.519 GB, free: 66.74 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007487/0.4056, allocations: 3.07 MB / 0.522 GB, free: 65.46 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.069e-05/0.4057, allocations: 4.875 kB / 0.522 GB, free: 65.46 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002476/0.4082, allocations: 298.4 kB / 0.5222 GB, free: 65.45 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.837e-05/0.4082, allocations: 5.844 kB / 0.5223 GB, free: 65.45 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001366/0.4084, allocations: 43.05 kB / 0.5223 GB, free: 65.43 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.486e-05/0.4084, allocations: 5.688 kB / 0.5223 GB, free: 65.43 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.23e-06/0.4084, allocations: 3.438 kB / 0.5223 GB, free: 65.43 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00525/0.4137, allocations: 2.321 MB / 0.5246 GB, free: 64.49 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008511/0.4146, allocations: 288.3 kB / 0.5248 GB, free: 64.37 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002538/0.4148, allocations: 30.41 kB / 0.5249 GB, free: 64.35 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001019/0.4159, allocations: 43.56 kB / 0.5249 GB, free: 64.34 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002691/0.4161, allocations: 82.91 kB / 0.525 GB, free: 64.32 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002159/0.4164, allocations: 81.98 kB / 0.5251 GB, free: 64.31 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.001409/0.4178, allocations: 0.6038 MB / 0.5257 GB, free: 64.07 MB / 398.1 MB Notification: Performance of sort global known variables: time 3.31e-07/0.4178, allocations: 0 / 0.5257 GB, free: 64.07 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.002207/0.42, allocations: 423.1 kB / 0.5261 GB, free: 64.02 MB / 398.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.005475/0.4255, allocations: 2.92 MB / 0.5289 GB, free: 62.52 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.008363/0.4339, allocations: 2.99 MB / 0.5318 GB, free: 61.33 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 6.171e-06/0.434, allocations: 1.219 kB / 0.5318 GB, free: 61.33 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001748/0.4357, allocations: 0.8779 MB / 0.5327 GB, free: 60.96 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002007/0.4378, allocations: 219.9 kB / 0.5329 GB, free: 60.87 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02709/0.4649, allocations: 13.62 MB / 0.5462 GB, free: 52.01 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001369/0.4663, allocations: 1.462 MB / 0.5476 GB, free: 50.64 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.00195/0.4683, allocations: 472.9 kB / 0.5481 GB, free: 50.19 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009416/0.4692, allocations: 0.5696 MB / 0.5486 GB, free: 49.62 MB / 398.1 MB Notification: Performance of SimCode: time 9.12e-07/0.4692, allocations: 0 / 0.5486 GB, free: 49.62 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.075/0.5443, allocations: 26.77 MB / 0.5748 GB, free: 23.1 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 9.672/10.22, allocations: 7.125 kB / 0.5748 GB, free: 23.1 MB / 398.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