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.001061/0.001061, allocations: 115.1 kB / 16.63 MB, free: 6.812 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.001214/0.001214, allocations: 186 kB / 17.55 MB, free: 5.934 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.268/1.268, allocations: 222.9 MB / 241.2 MB, free: 15.43 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.1587/0.1587, allocations: 38.03 MB / 329.4 MB, free: 9.035 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001152/0.001152, allocations: 62.09 kB / 398.4 MB, free: 34.34 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07454/0.0757, allocations: 58.07 MB / 456.5 MB, free: 8.324 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Transformation.TapChanger): time 0.00978/0.08552, allocations: 10.71 MB / 467.2 MB, free: 13.56 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.005625/0.09116, allocations: 3.852 MB / 471 MB, free: 9.699 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008461/0.09203, allocations: 71.5 kB / 471.1 MB, free: 9.629 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002174/0.09422, allocations: 0.983 MB / 472.1 MB, free: 8.645 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001895/0.09613, allocations: 1.039 MB / 473.1 MB, free: 7.602 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001308/0.09745, allocations: 0.6318 MB / 473.7 MB, free: 6.969 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.002252/0.09971, allocations: 2.386 MB / 476.1 MB, free: 4.574 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001006/0.1007, allocations: 0.8737 MB / 477 MB, free: 3.68 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001251/0.102, allocations: 1 MB / 478 MB, free: 2.676 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001682/0.1037, allocations: 1.464 MB / 479.5 MB, free: 1.207 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001734/0.1039, allocations: 131.9 kB / 479.6 MB, free: 1.078 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0008458/0.1047, allocations: 0.5851 MB / 480.2 MB, free: 0.4922 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0006907/0.1054, allocations: 0.9275 MB / 481.1 MB, free: 15.56 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0006931/0.1061, allocations: 0.9057 MB / 482 MB, free: 14.65 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001718/0.1078, allocations: 2.305 MB / 484.3 MB, free: 12.34 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.308e-06/0.1079, allocations: 3.984 kB / 484.3 MB, free: 12.34 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.092e-06/0.1079, allocations: 0 / 484.3 MB, free: 12.34 MB / 366.1 MB Notification: Performance of Transformations before backend: time 1.425e-05/0.1079, allocations: 0 / 484.3 MB, free: 12.34 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.002759/0.1107, allocations: 2.015 MB / 486.3 MB, free: 10.25 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.338e-05/0.1107, allocations: 15.89 kB / 486.4 MB, free: 10.23 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002353/0.1109, allocations: 240.8 kB / 486.6 MB, free: 9.988 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001574/0.1125, allocations: 350.4 kB / 486.9 MB, free: 9.645 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001446/0.114, allocations: 1.024 MB / 488 MB, free: 8.574 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.546e-05/0.114, allocations: 103.1 kB / 488.1 MB, free: 8.473 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002768/0.1143, allocations: 163.8 kB / 488.2 MB, free: 8.312 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002818/0.1172, allocations: 2.328 MB / 490.5 MB, free: 5.828 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.778e-05/0.1172, allocations: 15.84 kB / 490.6 MB, free: 5.812 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001242/0.1173, allocations: 63.97 kB / 490.6 MB, free: 5.75 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0004431/0.1178, allocations: 222.8 kB / 490.8 MB, free: 5.531 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00245/0.1202, allocations: 1.842 MB / 492.7 MB, free: 3.684 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.008831/0.1291, allocations: 9.575 MB / 0.4905 GB, free: 9.598 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001919/0.131, allocations: 1.548 MB / 0.492 GB, free: 8 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007874/0.1318, allocations: 0.6029 MB / 0.4926 GB, free: 7.395 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.69e-05/0.1319, allocations: 21 kB / 0.4926 GB, free: 7.375 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001004/0.1329, allocations: 0.8528 MB / 0.4934 GB, free: 6.477 MB / 382.1 MB Notification: Performance of pre-optimization done (n=130): time 2.465e-06/0.1329, allocations: 0 / 0.4934 GB, free: 6.477 MB / 382.1 MB Notification: Performance of matching and sorting (n=131): time 0.00499/0.1379, allocations: 4.011 MB / 0.4974 GB, free: 2.363 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001168/0.138, allocations: 294.5 kB / 0.4976 GB, free: 2.016 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008655/0.1389, allocations: 0.9146 MB / 0.4985 GB, free: 1.078 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 6.647e-05/0.139, allocations: 49.7 kB / 0.4986 GB, free: 1.023 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004304/0.1394, allocations: 0.7628 MB / 0.4993 GB, free: 252 kB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003117/0.1397, allocations: 453.9 kB / 0.4998 GB, free: 15.79 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003641/0.1401, allocations: 319.2 kB / 0.5001 GB, free: 15.47 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001211/0.1402, allocations: 361.9 kB / 0.5004 GB, free: 15.11 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007887/0.141, allocations: 0.5739 MB / 0.501 GB, free: 14.54 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001109/0.1422, allocations: 1.182 MB / 0.5021 GB, free: 13.1 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00206/0.1442, allocations: 2.004 MB / 0.5041 GB, free: 10.8 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.313e-06/0.1442, allocations: 4 kB / 0.5041 GB, free: 10.79 MB / 398.1 MB Notification: Performance of matching and sorting (n=227) (initialization): time 0.003775/0.148, allocations: 2.497 MB / 0.5065 GB, free: 8.262 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.446e-05/0.1481, allocations: 67.41 kB / 0.5066 GB, free: 8.184 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.002539/0.1506, allocations: 1.569 MB / 0.5081 GB, free: 6.605 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001429/0.1521, allocations: 0.5525 MB / 0.5087 GB, free: 6.043 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009053/0.153, allocations: 323.5 kB / 0.509 GB, free: 5.727 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.1468/0.2998, allocations: 9.459 MB / 0.5182 GB, free: 66.43 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009274/0.3007, allocations: 74.38 kB / 0.5183 GB, free: 66.43 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001208/0.3009, allocations: 103.7 kB / 0.5184 GB, free: 66.43 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.0006426/0.3015, allocations: 0.5881 MB / 0.5189 GB, free: 66.25 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001314/0.3017, allocations: 126.5 kB / 0.5191 GB, free: 66.25 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001934/0.3036, allocations: 1.548 MB / 0.5206 GB, free: 65.64 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.774e-06/0.3036, allocations: 12.03 kB / 0.5206 GB, free: 65.64 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.256e-06/0.3036, allocations: 1.062 kB / 0.5206 GB, free: 65.64 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.263e-05/0.3037, allocations: 7.391 kB / 0.5206 GB, free: 65.64 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003566/0.3072, allocations: 3.07 MB / 0.5236 GB, free: 64.36 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.929e-06/0.3072, allocations: 2.844 kB / 0.5236 GB, free: 64.36 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001185/0.3084, allocations: 298.2 kB / 0.5239 GB, free: 64.35 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.583e-06/0.3084, allocations: 8.562 kB / 0.5239 GB, free: 64.35 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.161e-05/0.3085, allocations: 35.48 kB / 0.5239 GB, free: 64.33 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.965e-06/0.3085, allocations: 9.078 kB / 0.5239 GB, free: 64.33 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.104e-06/0.3085, allocations: 4.812 kB / 0.5239 GB, free: 64.33 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00265/0.3112, allocations: 2.316 MB / 0.5262 GB, free: 63.4 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003484/0.3116, allocations: 295.1 kB / 0.5265 GB, free: 63.27 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001322/0.3117, allocations: 33.66 kB / 0.5265 GB, free: 63.25 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004924/0.3122, allocations: 42.8 kB / 0.5266 GB, free: 63.24 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001394/0.3123, allocations: 78.59 kB / 0.5266 GB, free: 63.23 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001087/0.3125, allocations: 81.88 kB / 0.5267 GB, free: 63.21 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.000577/0.313, allocations: 0.5982 MB / 0.5273 GB, free: 62.98 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.313, allocations: 4.594 kB / 0.5273 GB, free: 62.98 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.001028/0.3141, allocations: 421.5 kB / 0.5277 GB, free: 62.93 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.002689/0.3168, allocations: 2.917 MB / 0.5305 GB, free: 61.4 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.003795/0.3206, allocations: 2.991 MB / 0.5335 GB, free: 60.22 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.805e-06/0.3206, allocations: 4 kB / 0.5335 GB, free: 60.21 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008118/0.3214, allocations: 0.8819 MB / 0.5343 GB, free: 59.83 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008742/0.3223, allocations: 220.1 kB / 0.5345 GB, free: 59.76 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01285/0.3352, allocations: 14.25 MB / 0.5485 GB, free: 49.77 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006685/0.3358, allocations: 1.459 MB / 0.5499 GB, free: 48.28 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.00085/0.3367, allocations: 464.1 kB / 0.5503 GB, free: 47.84 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004759/0.3372, allocations: 0.5704 MB / 0.5509 GB, free: 47.27 MB / 398.1 MB Notification: Performance of SimCode: time 6.22e-07/0.3372, allocations: 0 / 0.5509 GB, free: 47.27 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 1.097/1.434, allocations: 26.54 MB / 0.5768 GB, free: 21.02 MB / 398.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000219/1.435, allocations: 234.9 kB / 0.577 GB, free: 20.77 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.572/4.006, allocations: 0 / 0.577 GB, free: 20.77 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