Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.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.AC1ph_DC.Transformation.TapChanger,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_AC1ph_DC_Transformation_TapChanger",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC1ph_DC.Transformation.TapChanger,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_AC1ph_DC_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.001229/0.001229, allocations: 106.5 kB / 16.92 MB, free: 5.781 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.001315/0.001315, allocations: 191.3 kB / 17.85 MB, free: 5.164 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.341/1.341, allocations: 222.9 MB / 241.6 MB, free: 15.27 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.1822/0.1822, allocations: 38.03 MB / 329.7 MB, free: 8.867 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001378/0.001378, allocations: 59.77 kB / 398.9 MB, free: 34 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0948/0.0962, allocations: 58.07 MB / 457 MB, free: 7.98 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Transformation.TapChanger): time 0.00997/0.1062, allocations: 7.294 MB / 464.3 MB, free: 0.6484 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.003375/0.1096, allocations: 1.714 MB / 466 MB, free: 14.93 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000669/0.1103, allocations: 27.81 kB / 466 MB, free: 14.9 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0007698/0.1111, allocations: 238.4 kB / 466.2 MB, free: 14.67 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001407/0.1126, allocations: 0.5754 MB / 466.8 MB, free: 14.09 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004954/0.1131, allocations: 207.7 kB / 467 MB, free: 13.89 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001529/0.1146, allocations: 1.266 MB / 468.3 MB, free: 12.62 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005549/0.1152, allocations: 354.5 kB / 468.6 MB, free: 12.27 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001112/0.1163, allocations: 0.5407 MB / 469.2 MB, free: 11.73 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001223/0.1176, allocations: 0.6501 MB / 469.8 MB, free: 11.08 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001852/0.1178, allocations: 60 kB / 469.9 MB, free: 11.02 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002557/0.118, allocations: 64 kB / 469.9 MB, free: 10.96 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003378/0.1184, allocations: 331.1 kB / 470.3 MB, free: 10.63 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005921/0.119, allocations: 429.8 kB / 470.7 MB, free: 10.21 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0009233/0.1199, allocations: 0.9031 MB / 471.6 MB, free: 9.305 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.861e-06/0.1199, allocations: 0 / 471.6 MB, free: 9.305 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.084e-06/0.1199, allocations: 0 / 471.6 MB, free: 9.305 MB / 350.1 MB Notification: Performance of Transformations before backend: time 5.084e-05/0.12, allocations: 0 / 471.6 MB, free: 9.305 MB / 350.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 166 * Number of variables: 166 Notification: Performance of Generate backend data structure: time 0.002301/0.1223, allocations: 1.225 MB / 472.8 MB, free: 8.012 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.21e-05/0.1224, allocations: 19.89 kB / 472.8 MB, free: 7.992 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001656/0.1225, allocations: 106.7 kB / 472.9 MB, free: 7.879 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001587/0.1227, allocations: 91.81 kB / 473 MB, free: 7.789 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001117/0.1238, allocations: 0.6756 MB / 473.7 MB, free: 7.074 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.523e-05/0.1239, allocations: 49.3 kB / 473.8 MB, free: 7.027 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.504e-05/0.124, allocations: 60 kB / 473.8 MB, free: 6.969 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001106/0.1251, allocations: 0.806 MB / 474.6 MB, free: 6.125 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.8e-05/0.1251, allocations: 4 kB / 474.6 MB, free: 6.121 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.362e-05/0.1252, allocations: 27.94 kB / 474.7 MB, free: 6.094 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.518e-05/0.1252, allocations: 37.3 kB / 474.7 MB, free: 6.055 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009255/0.1262, allocations: 0.6179 MB / 475.3 MB, free: 5.434 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003285/0.1295, allocations: 2.63 MB / 477.9 MB, free: 2.688 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009024/0.1304, allocations: 0.6114 MB / 478.5 MB, free: 2.062 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000634/0.131, allocations: 372 kB / 478.9 MB, free: 1.691 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.472e-05/0.1311, allocations: 12.36 kB / 478.9 MB, free: 1.68 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005874/0.1317, allocations: 487.1 kB / 479.4 MB, free: 1.16 MB / 350.1 MB Notification: Performance of pre-optimization done (n=63): time 3.386e-06/0.1317, allocations: 0 / 479.4 MB, free: 1.16 MB / 350.1 MB Notification: Performance of matching and sorting (n=64): time 0.002941/0.1346, allocations: 1.989 MB / 481.4 MB, free: 15.08 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001191/0.1348, allocations: 255.8 kB / 481.6 MB, free: 14.77 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005894/0.1354, allocations: 0.5586 MB / 482.2 MB, free: 14.21 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 3.952e-05/0.1354, allocations: 41.69 kB / 482.2 MB, free: 14.16 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002857/0.1357, allocations: 399.6 kB / 482.6 MB, free: 13.76 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001681/0.1359, allocations: 213 kB / 482.8 MB, free: 13.55 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001911/0.1361, allocations: 146.6 kB / 483 MB, free: 13.4 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001613/0.1363, allocations: 382.8 kB / 483.4 MB, free: 13.02 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003687/0.1366, allocations: 225.9 kB / 483.6 MB, free: 12.8 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004794/0.1371, allocations: 461.8 kB / 484 MB, free: 12.25 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008373/0.138, allocations: 0.7934 MB / 484.8 MB, free: 11.32 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.44e-06/0.138, allocations: 8 kB / 484.8 MB, free: 11.32 MB / 366.1 MB Notification: Performance of matching and sorting (n=102) (initialization): time 0.001539/0.1395, allocations: 0.948 MB / 485.8 MB, free: 10.34 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.459e-05/0.1396, allocations: 59.41 kB / 485.8 MB, free: 10.27 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.609e-05/0.1396, allocations: 11.94 kB / 485.8 MB, free: 10.26 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003985/0.14, allocations: 110.1 kB / 485.9 MB, free: 10.15 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004974/0.1405, allocations: 151.7 kB / 486.1 MB, free: 10 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002977/0.1435, allocations: 3.232 MB / 489.3 MB, free: 6.488 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004684/0.144, allocations: 35.97 kB / 489.4 MB, free: 6.453 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.948e-05/0.1441, allocations: 55.91 kB / 489.4 MB, free: 6.398 MB / 366.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 32 * 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 (90): * Single equations (assignments): 86 * Array equations: 0 * Algorithm blocks: 2 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(1,5,100.0%), (1,5,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0004276/0.1446, allocations: 354.7 kB / 489.8 MB, free: 6.031 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001098/0.1447, allocations: 75.09 kB / 489.8 MB, free: 5.957 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001077/0.1458, allocations: 0.7858 MB / 490.6 MB, free: 5.152 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.36e-06/0.1458, allocations: 4 kB / 490.6 MB, free: 5.148 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.366e-06/0.1458, allocations: 4 kB / 490.6 MB, free: 5.145 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.013e-06/0.1458, allocations: 3.984 kB / 490.6 MB, free: 5.141 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001984/0.1478, allocations: 1.539 MB / 492.2 MB, free: 3.527 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.116e-06/0.1478, allocations: 7.969 kB / 492.2 MB, free: 3.52 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005342/0.1483, allocations: 107.9 kB / 492.3 MB, free: 3.414 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.132e-05/0.1484, allocations: 7.984 kB / 492.3 MB, free: 3.406 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.078e-05/0.1484, allocations: 16 kB / 492.3 MB, free: 3.391 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.628e-06/0.1484, allocations: 4 kB / 492.3 MB, free: 3.387 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.437e-06/0.1484, allocations: 4.125 kB / 492.3 MB, free: 3.383 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001541/0.15, allocations: 1.218 MB / 493.5 MB, free: 2.129 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002545/0.1502, allocations: 184.2 kB / 493.7 MB, free: 1.93 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001013/0.1504, allocations: 20 kB / 493.7 MB, free: 1.91 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003475/0.1507, allocations: 31.95 kB / 493.8 MB, free: 1.879 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001058/0.1508, allocations: 40.39 kB / 493.8 MB, free: 1.84 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.86e-05/0.1509, allocations: 63.8 kB / 493.9 MB, free: 1.777 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0004474/0.1514, allocations: 391.1 kB / 494.3 MB, free: 1.402 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.1514, allocations: 0 / 494.3 MB, free: 1.402 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0006681/0.1521, allocations: 184 kB / 494.4 MB, free: 1.223 MB / 366.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 2 (trafo1.i1,trafo2.i1) * 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 (55): * Single equations (assignments): 52 * 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.001993/0.1541, allocations: 1.784 MB / 496.2 MB, free: 15.39 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0018/0.1559, allocations: 1.097 MB / 497.3 MB, free: 14.25 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 4.138e-06/0.1559, allocations: 0 / 497.3 MB, free: 14.25 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005942/0.1565, allocations: 497.2 kB / 497.8 MB, free: 13.73 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008758/0.1574, allocations: 160.1 kB / 498 MB, free: 13.58 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00905/0.1664, allocations: 6.444 MB / 0.4926 GB, free: 6.809 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006195/0.1671, allocations: 1.009 MB / 0.4936 GB, free: 5.773 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0005028/0.1676, allocations: 153.8 kB / 0.4937 GB, free: 5.621 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003711/0.168, allocations: 279.3 kB / 0.494 GB, free: 5.352 MB / 382.1 MB Notification: Performance of SimCode: time 7.32e-07/0.168, allocations: 4 kB / 0.494 GB, free: 5.348 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03886/0.2069, allocations: 13.89 MB / 0.5075 GB, free: 7.672 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 9.476/9.683, allocations: 8 kB / 0.5076 GB, free: 7.664 MB / 398.1 MB (rm -f PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Transformation.TapChanger.pipe ; mkfifo PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Transformation.TapChanger.pipe ; head -c 1048576 < PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Transformation.TapChanger.pipe >> ../files/PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Transformation.TapChanger.sim & python3 -m fmpy simulate --output-file PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Transformation.TapChanger_res.csv --start-time 0 --stop-time 4 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.001 PowerSystems_latest_PowerSystems_Examples_AC1ph_DC_Transformation_TapChanger.fmu > PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Transformation.TapChanger.pipe 2>&1) diffSimulationResults("PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Transformation.TapChanger_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/ReferenceFiles/PowerSystems/PowerSystems.Examples.AC1ph_DC.Transformation.TapChanger.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Transformation.TapChanger.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches