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.001129/0.001129, allocations: 104.5 kB / 16.92 MB, free: 6.199 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.001234/0.001234, allocations: 191.4 kB / 17.85 MB, free: 5.301 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.291/1.291, allocations: 222.9 MB / 241.5 MB, free: 15.23 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.1723/0.1723, allocations: 38.04 MB / 329.7 MB, free: 8.867 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001231/0.001232, allocations: 65.59 kB / 398.9 MB, free: 33.99 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09905/0.1003, allocations: 58.06 MB / 457 MB, free: 7.992 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Transformation.TapChanger): time 0.009013/0.1094, allocations: 9.084 MB / 466 MB, free: 14.87 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.005007/0.1144, allocations: 3.357 MB / 469.4 MB, free: 11.5 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005691/0.115, allocations: 39.75 kB / 469.4 MB, free: 11.46 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0023/0.1173, allocations: 1.044 MB / 470.5 MB, free: 10.41 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001995/0.1193, allocations: 1.089 MB / 471.6 MB, free: 9.32 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001441/0.1208, allocations: 0.6938 MB / 472.3 MB, free: 8.625 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.002121/0.1229, allocations: 2.39 MB / 474.7 MB, free: 6.227 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0009185/0.1238, allocations: 0.819 MB / 475.5 MB, free: 5.391 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001152/0.125, allocations: 0.9885 MB / 476.5 MB, free: 4.398 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001481/0.1265, allocations: 1.344 MB / 477.8 MB, free: 3.051 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001938/0.1267, allocations: 132 kB / 477.9 MB, free: 2.922 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0009706/0.1277, allocations: 0.5656 MB / 478.5 MB, free: 2.355 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0007017/0.1284, allocations: 0.9314 MB / 479.4 MB, free: 1.422 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0007858/0.1292, allocations: 0.8979 MB / 480.3 MB, free: 0.5195 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001952/0.1311, allocations: 2.294 MB / 482.6 MB, free: 14.22 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.37e-06/0.1312, allocations: 4 kB / 482.6 MB, free: 14.21 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.563e-06/0.1312, allocations: 3.938 kB / 482.6 MB, free: 14.21 MB / 366.1 MB Notification: Performance of Transformations before backend: time 1.955e-05/0.1312, allocations: 4 kB / 482.6 MB, free: 14.21 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.002996/0.1342, allocations: 2.013 MB / 484.7 MB, free: 12.12 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.687e-05/0.1342, allocations: 11.89 kB / 484.7 MB, free: 12.11 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002335/0.1345, allocations: 240.8 kB / 484.9 MB, free: 11.87 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001657/0.1361, allocations: 350.3 kB / 485.2 MB, free: 11.52 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00153/0.1377, allocations: 1.024 MB / 486.3 MB, free: 10.45 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.356e-05/0.1378, allocations: 107.1 kB / 486.4 MB, free: 10.35 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003139/0.1381, allocations: 167.7 kB / 486.5 MB, free: 10.18 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002995/0.1411, allocations: 2.336 MB / 488.9 MB, free: 7.691 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.006e-05/0.1412, allocations: 7.938 kB / 488.9 MB, free: 7.684 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001234/0.1413, allocations: 59.98 kB / 488.9 MB, free: 7.625 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0004914/0.1418, allocations: 222.8 kB / 489.2 MB, free: 7.406 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002522/0.1443, allocations: 1.846 MB / 491 MB, free: 5.555 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.0098/0.1541, allocations: 9.575 MB / 0.4888 GB, free: 11.47 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002005/0.1561, allocations: 1.552 MB / 0.4904 GB, free: 9.867 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007663/0.1569, allocations: 0.6068 MB / 0.491 GB, free: 9.258 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.649e-05/0.157, allocations: 20.97 kB / 0.491 GB, free: 9.238 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0009917/0.158, allocations: 0.849 MB / 0.4918 GB, free: 8.34 MB / 382.1 MB Notification: Performance of pre-optimization done (n=130): time 3.206e-06/0.158, allocations: 0 / 0.4918 GB, free: 8.34 MB / 382.1 MB Notification: Performance of matching and sorting (n=131): time 0.005406/0.1634, allocations: 4.011 MB / 0.4957 GB, free: 4.227 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001311/0.1636, allocations: 290.3 kB / 0.496 GB, free: 3.883 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009742/0.1646, allocations: 0.9108 MB / 0.4969 GB, free: 2.949 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 6.544e-05/0.1646, allocations: 49.95 kB / 0.4969 GB, free: 2.895 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005049/0.1651, allocations: 0.7706 MB / 0.4977 GB, free: 2.109 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002896/0.1654, allocations: 445.8 kB / 0.4981 GB, free: 1.668 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003633/0.1658, allocations: 331.2 kB / 0.4984 GB, free: 1.336 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001152/0.1659, allocations: 353.9 kB / 0.4988 GB, free: 0.9844 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007882/0.1667, allocations: 0.5816 MB / 0.4993 GB, free: 412 kB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001105/0.1678, allocations: 1.171 MB / 0.5005 GB, free: 14.97 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002083/0.1699, allocations: 1.997 MB / 0.5024 GB, free: 12.68 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.165e-05/0.17, allocations: 7.984 kB / 0.5024 GB, free: 12.67 MB / 398.1 MB Notification: Performance of matching and sorting (n=227) (initialization): time 0.003953/0.1739, allocations: 2.504 MB / 0.5049 GB, free: 10.13 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.735e-05/0.174, allocations: 69.59 kB / 0.5049 GB, free: 10.05 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.002569/0.1766, allocations: 1.569 MB / 0.5065 GB, free: 8.473 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00146/0.178, allocations: 0.5451 MB / 0.507 GB, free: 7.918 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001001/0.1791, allocations: 327.5 kB / 0.5073 GB, free: 7.598 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.1776/0.3566, allocations: 9.457 MB / 0.5166 GB, free: 67.18 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001175/0.3579, allocations: 73.16 kB / 0.5166 GB, free: 67.18 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001707/0.3581, allocations: 101 kB / 0.5167 GB, free: 67.18 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.0009115/0.359, allocations: 0.6 MB / 0.5173 GB, free: 67 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001938/0.3592, allocations: 129.8 kB / 0.5174 GB, free: 67 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002291/0.3615, allocations: 1.538 MB / 0.5189 GB, free: 66.81 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.117e-05/0.3615, allocations: 12.78 kB / 0.5189 GB, free: 66.81 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.138e-06/0.3615, allocations: 5.062 kB / 0.519 GB, free: 66.81 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.638e-05/0.3615, allocations: 11.28 kB / 0.519 GB, free: 66.81 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00451/0.366, allocations: 3.067 MB / 0.522 GB, free: 65.53 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.761e-06/0.3661, allocations: 4.906 kB / 0.522 GB, free: 65.53 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00133/0.3674, allocations: 294.7 kB / 0.5222 GB, free: 65.52 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.192e-05/0.3674, allocations: 8.312 kB / 0.5223 GB, free: 65.52 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.563e-05/0.3675, allocations: 40.62 kB / 0.5223 GB, free: 65.5 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.177e-05/0.3675, allocations: 5.469 kB / 0.5223 GB, free: 65.5 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.479e-06/0.3676, allocations: 6.438 kB / 0.5223 GB, free: 65.5 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002957/0.3705, allocations: 2.317 MB / 0.5246 GB, free: 64.56 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004945/0.371, allocations: 295.3 kB / 0.5248 GB, free: 64.44 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001564/0.3712, allocations: 30.16 kB / 0.5249 GB, free: 64.42 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005476/0.3717, allocations: 42.69 kB / 0.5249 GB, free: 64.41 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001881/0.3719, allocations: 86.08 kB / 0.525 GB, free: 64.39 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001773/0.3721, allocations: 77.67 kB / 0.5251 GB, free: 64.38 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.001286/0.3734, allocations: 0.6024 MB / 0.5257 GB, free: 64.14 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.703e-06/0.3734, allocations: 1.844 kB / 0.5257 GB, free: 64.14 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.001897/0.3753, allocations: 426.2 kB / 0.5261 GB, free: 64.09 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.003545/0.3789, allocations: 2.909 MB / 0.5289 GB, free: 62.59 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.005166/0.3841, allocations: 2.991 MB / 0.5318 GB, free: 61.4 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 6.723e-06/0.3841, allocations: 1.125 kB / 0.5318 GB, free: 61.4 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009945/0.3851, allocations: 0.8733 MB / 0.5327 GB, free: 61.03 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001141/0.3863, allocations: 228.8 kB / 0.5329 GB, free: 60.94 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01443/0.4007, allocations: 13.62 MB / 0.5462 GB, free: 52.13 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007635/0.4015, allocations: 1.461 MB / 0.5476 GB, free: 50.69 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.001043/0.4026, allocations: 466.6 kB / 0.5481 GB, free: 50.24 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005008/0.4031, allocations: 0.5696 MB / 0.5486 GB, free: 49.67 MB / 398.1 MB Notification: Performance of SimCode: time 7.01e-07/0.4031, allocations: 0 / 0.5486 GB, free: 49.67 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04449/0.4476, allocations: 26.78 MB / 0.5748 GB, free: 23.15 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 9.295/9.742, allocations: 16 kB / 0.5748 GB, free: 23.14 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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=PowerSystems_latest_PowerSystems.Examples.AC3ph.Transformation.TapChanger_res.mat --tempDir=temp_PowerSystems_latest_PowerSystems_Examples_AC3ph_Transformation_TapChanger_fmu --startTime=0 --stopTime=4 --timeout=50 --tolerance=1e-06 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.mat","/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