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.001589/0.001589, allocations: 107.7 kB / 17.06 MB, free: 5.992 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.001785/0.001785, allocations: 197.3 kB / 18.01 MB, free: 5.066 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.44/1.44, allocations: 222.9 MB / 241.7 MB, free: 15.13 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.1814/0.1814, allocations: 38.05 MB / 329.9 MB, free: 8.734 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002021/0.002021, allocations: 71.89 kB / 457.7 MB, free: 7.336 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3277/0.3297, allocations: 58.05 MB / 0.5036 GB, free: 7.555 MB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Transformation.TapChanger): time 0.007677/0.3374, allocations: 9.08 MB / 0.5125 GB, free: 1.172 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.005661/0.3431, allocations: 3.376 MB / 0.5158 GB, free: 14.79 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0009349/0.3441, allocations: 39.09 kB / 0.5158 GB, free: 14.78 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002769/0.3469, allocations: 1.029 MB / 0.5168 GB, free: 14.18 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002671/0.3496, allocations: 1.102 MB / 0.5179 GB, free: 13.59 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001902/0.3515, allocations: 0.6887 MB / 0.5186 GB, free: 13.29 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.003384/0.3549, allocations: 2.383 MB / 0.5209 GB, free: 12.31 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001177/0.3561, allocations: 0.823 MB / 0.5217 GB, free: 11.95 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001836/0.358, allocations: 0.9835 MB / 0.5227 GB, free: 11.52 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001968/0.3599, allocations: 1.337 MB / 0.524 GB, free: 11.05 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002208/0.3602, allocations: 129.1 kB / 0.5241 GB, free: 11.05 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001235/0.3614, allocations: 0.5774 MB / 0.5247 GB, free: 10.9 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0009851/0.3624, allocations: 0.9246 MB / 0.5256 GB, free: 10.62 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001047/0.3635, allocations: 0.9078 MB / 0.5265 GB, free: 10.08 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002803/0.3663, allocations: 2.345 MB / 0.5287 GB, free: 9.039 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.891e-06/0.3663, allocations: 5.219 kB / 0.5287 GB, free: 9.035 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.593e-06/0.3663, allocations: 3.938 kB / 0.5288 GB, free: 9.031 MB / 398.1 MB Notification: Performance of Transformations before backend: time 3.761e-05/0.3663, allocations: 0 / 0.5288 GB, free: 9.031 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.003634/0.37, allocations: 2.067 MB / 0.5308 GB, free: 7.488 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.741e-05/0.37, allocations: 18.23 kB / 0.5308 GB, free: 7.48 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002886/0.3703, allocations: 238 kB / 0.531 GB, free: 7.301 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001795/0.3721, allocations: 362 kB / 0.5314 GB, free: 7.121 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001837/0.374, allocations: 1.079 MB / 0.5324 GB, free: 6.352 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.229e-05/0.3741, allocations: 107.8 kB / 0.5325 GB, free: 6.301 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003327/0.3744, allocations: 170.2 kB / 0.5327 GB, free: 6.234 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003437/0.3779, allocations: 2.324 MB / 0.5349 GB, free: 4.742 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.55e-05/0.3779, allocations: 9.062 kB / 0.535 GB, free: 4.738 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001524/0.3781, allocations: 64 kB / 0.535 GB, free: 4.691 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0005248/0.3786, allocations: 225.3 kB / 0.5352 GB, free: 4.617 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002896/0.3815, allocations: 1.84 MB / 0.537 GB, free: 3.75 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.01167/0.3932, allocations: 9.541 MB / 0.5463 GB, free: 11.67 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002446/0.3957, allocations: 1.541 MB / 0.5479 GB, free: 10.47 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009306/0.3966, allocations: 0.6136 MB / 0.5485 GB, free: 9.855 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.844e-05/0.3967, allocations: 16.98 kB / 0.5485 GB, free: 9.84 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001195/0.3979, allocations: 0.8567 MB / 0.5493 GB, free: 8.938 MB / 414.1 MB Notification: Performance of pre-optimization done (n=130): time 5.12e-06/0.3979, allocations: 0 / 0.5493 GB, free: 8.938 MB / 414.1 MB Notification: Performance of matching and sorting (n=131): time 0.006487/0.4044, allocations: 4.068 MB / 0.5533 GB, free: 4.773 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001818/0.4046, allocations: 286.3 kB / 0.5535 GB, free: 4.434 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001198/0.4058, allocations: 0.9187 MB / 0.5544 GB, free: 3.492 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 7.849e-05/0.4059, allocations: 49.7 kB / 0.5545 GB, free: 3.438 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006849/0.4066, allocations: 0.7888 MB / 0.5553 GB, free: 2.637 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004163/0.407, allocations: 480 kB / 0.5557 GB, free: 2.164 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004625/0.4075, allocations: 327.6 kB / 0.556 GB, free: 1.84 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0002302/0.4077, allocations: 361.9 kB / 0.5564 GB, free: 1.48 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009372/0.4087, allocations: 0.5777 MB / 0.5569 GB, free: 0.9023 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001452/0.4101, allocations: 1.174 MB / 0.5581 GB, free: 15.46 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002646/0.4128, allocations: 2.004 MB / 0.56 GB, free: 13.17 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.848e-06/0.4128, allocations: 4 kB / 0.5601 GB, free: 13.17 MB / 430.1 MB Notification: Performance of matching and sorting (n=227) (initialization): time 0.004612/0.4174, allocations: 2.498 MB / 0.5625 GB, free: 10.64 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.718e-05/0.4175, allocations: 63.41 kB / 0.5626 GB, free: 10.56 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.002925/0.4205, allocations: 1.571 MB / 0.5641 GB, free: 8.977 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001642/0.4221, allocations: 0.5446 MB / 0.5646 GB, free: 8.422 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001091/0.4232, allocations: 323.5 kB / 0.5649 GB, free: 8.105 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01101/0.4342, allocations: 9.463 MB / 0.5742 GB, free: 14.09 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001286/0.4356, allocations: 79.8 kB / 0.5742 GB, free: 14.01 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002292/0.4358, allocations: 107.9 kB / 0.5743 GB, free: 13.91 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.001099/0.4369, allocations: 0.5959 MB / 0.5749 GB, free: 13.29 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002425/0.4372, allocations: 131.2 kB / 0.5751 GB, free: 13.16 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002543/0.4397, allocations: 1.535 MB / 0.5766 GB, free: 11.6 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.344e-05/0.4398, allocations: 12 kB / 0.5766 GB, free: 11.59 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.39e-06/0.4398, allocations: 3.938 kB / 0.5766 GB, free: 11.59 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.375e-05/0.4398, allocations: 7.969 kB / 0.5766 GB, free: 11.58 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004941/0.4447, allocations: 3.068 MB / 0.5796 GB, free: 8.422 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.887e-06/0.4448, allocations: 8.125 kB / 0.5796 GB, free: 8.414 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001353/0.4461, allocations: 295.6 kB / 0.5799 GB, free: 8.125 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.14e-05/0.4461, allocations: 8 kB / 0.5799 GB, free: 8.117 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.518e-05/0.4462, allocations: 39.98 kB / 0.5799 GB, free: 8.078 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.568e-06/0.4463, allocations: 8 kB / 0.5799 GB, free: 8.07 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.268e-06/0.4463, allocations: 4 kB / 0.5799 GB, free: 8.066 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003266/0.4495, allocations: 2.326 MB / 0.5822 GB, free: 5.691 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005491/0.4501, allocations: 304.2 kB / 0.5825 GB, free: 5.375 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001463/0.4503, allocations: 31.98 kB / 0.5825 GB, free: 5.344 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005327/0.4508, allocations: 43.97 kB / 0.5826 GB, free: 5.301 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000172/0.451, allocations: 76.84 kB / 0.5826 GB, free: 5.227 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001361/0.4511, allocations: 91.83 kB / 0.5827 GB, free: 5.137 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.0008312/0.452, allocations: 0.5947 MB / 0.5833 GB, free: 4.531 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.452, allocations: 0 / 0.5833 GB, free: 4.531 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.001336/0.4533, allocations: 428 kB / 0.5837 GB, free: 4.113 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.003602/0.4569, allocations: 2.906 MB / 0.5865 GB, free: 1.141 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.003564/0.4605, allocations: 2.34 MB / 0.5888 GB, free: 14.73 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 2.885e-06/0.4605, allocations: 0 / 0.5888 GB, free: 14.73 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001155/0.4617, allocations: 0.8793 MB / 0.5897 GB, free: 13.82 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001079/0.4628, allocations: 230.1 kB / 0.5899 GB, free: 13.61 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01934/0.4821, allocations: 13.12 MB / 0.6027 GB, free: 15.75 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00129/0.4834, allocations: 1.461 MB / 0.6041 GB, free: 14.26 MB / 478.1 MB Notification: Performance of simCode: alias equations: time 0.001156/0.4846, allocations: 466.3 kB / 0.6046 GB, free: 13.8 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007561/0.4854, allocations: 0.5657 MB / 0.6051 GB, free: 13.23 MB / 478.1 MB Notification: Performance of SimCode: time 7.41e-07/0.4854, allocations: 0 / 0.6051 GB, free: 13.23 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.09802/0.5834, allocations: 27.26 MB / 0.6318 GB, free: 2.199 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.52/13.11, allocations: 4 kB / 0.6318 GB, free: 2.195 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 & /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